Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 11, 2020 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/baacb972a46af7ea18ecac2e43853337 to your computer and use it in GitHub Desktop.
Save velotiotech/baacb972a46af7ea18ecac2e43853337 to your computer and use it in GitHub Desktop.
sslconfig-crd.yaml contains the definition for custom resource
apiVersion: "apiextensions.k8s.io/v1beta1"
kind: "CustomResourceDefinition"
metadata:
name: "sslconfigs.blog.velotio.com"
spec:
group: "blog.velotio.com"
version: "v1alpha1"
scope: "Namespaced"
names:
plural: "sslconfigs"
singular: "sslconfig"
kind: "SslConfig"
validation:
openAPIV3Schema:
required: ["spec"]
properties:
spec:
required: ["cert","key","domain"]
properties:
cert:
type: "string"
minimum: 1
key:
type: "string"
minimum: 1
domain:
type: "string"
minimum: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment