ContainerImage.Pinniped/deploy/crd.yaml

50 lines
1.3 KiB
YAML
Raw Normal View History

#@ load("@ytt:data", "data")
2020-08-20 17:54:15 +00:00
#! Example of valid PinnipedDiscoveryInfo object:
#! ---
2020-08-20 17:54:15 +00:00
#! apiVersion: crd.pinniped.dev/v1alpha1
#! kind: PinnipedDiscoveryInfo
#! metadata:
#! name: login-discovery
#! namespace: integration
#! spec:
#! server: https://foo
#! certificateAuthorityData: bar
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
2020-08-20 17:54:15 +00:00
name: pinnipeddiscoveryinfos.crd.pinniped.dev
spec:
2020-08-20 17:54:15 +00:00
group: crd.pinniped.dev
versions:
#! Any changes to these schemas should also be reflected in the types.go file(s)
2020-08-20 17:54:15 +00:00
#! in https://github.com/suzerain-io/pinniped-api/tree/main/pkg/apis/pinniped
- name: v1alpha1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
required: [spec]
properties:
spec:
type: object
required: [server, certificateAuthorityData]
properties:
server:
type: string
minLength: 1
pattern: '^https://|^http://'
certificateAuthorityData:
type: string
minLength: 1
scope: Namespaced
names:
2020-08-20 17:54:15 +00:00
plural: pinnipeddiscoveryinfos
singular: pinnipeddiscoveryinfo
kind: PinnipedDiscoveryInfo
shortNames:
- ldc