2020-07-28 23:55:50 +00:00
|
|
|
#@ load("@ytt:data", "data")
|
|
|
|
|
2020-07-29 20:14:50 +00:00
|
|
|
#! Example of valid LoginDiscoveryConfig object:
|
|
|
|
#! ---
|
|
|
|
#! apiVersion: suzerain-io.github.io/v1alpha1
|
|
|
|
#! kind: LoginDiscoveryConfig
|
|
|
|
#! metadata:
|
|
|
|
#! name: login-discovery
|
|
|
|
#! namespace: integration
|
|
|
|
#! spec:
|
|
|
|
#! server: https://foo
|
|
|
|
#! certificateAuthorityData: bar
|
|
|
|
|
2020-07-28 23:55:50 +00:00
|
|
|
---
|
|
|
|
apiVersion: apiextensions.k8s.io/v1
|
|
|
|
kind: CustomResourceDefinition
|
|
|
|
metadata:
|
2020-08-01 00:22:12 +00:00
|
|
|
name: logindiscoveryconfigs.crds.placeholder.suzerain-io.github.io
|
2020-07-28 23:55:50 +00:00
|
|
|
spec:
|
2020-08-01 00:22:12 +00:00
|
|
|
group: crds.placeholder.suzerain-io.github.io
|
2020-07-28 23:55:50 +00:00
|
|
|
versions:
|
2020-07-29 20:14:50 +00:00
|
|
|
#! Any changes to these schemas should also be reflected in the types.go file(s)
|
|
|
|
#! in https://github.com/suzerain-io/placeholder-name-api/tree/main/pkg/apis/placeholder
|
2020-07-28 23:55:50 +00:00
|
|
|
- name: v1alpha1
|
|
|
|
served: true
|
|
|
|
storage: true
|
|
|
|
schema:
|
|
|
|
openAPIV3Schema:
|
|
|
|
type: object
|
2020-07-29 20:14:50 +00:00
|
|
|
required: [spec]
|
2020-07-28 23:55:50 +00:00
|
|
|
properties:
|
|
|
|
spec:
|
|
|
|
type: object
|
2020-07-29 20:17:55 +00:00
|
|
|
required: [server, certificateAuthorityData]
|
2020-07-28 23:55:50 +00:00
|
|
|
properties:
|
|
|
|
server:
|
|
|
|
type: string
|
|
|
|
minLength: 1
|
2020-08-17 23:29:21 +00:00
|
|
|
pattern: '^https://|^http://'
|
2020-07-28 23:55:50 +00:00
|
|
|
certificateAuthorityData:
|
|
|
|
type: string
|
|
|
|
minLength: 1
|
|
|
|
scope: Namespaced
|
|
|
|
names:
|
|
|
|
plural: logindiscoveryconfigs
|
|
|
|
singular: logindiscoveryconfig
|
|
|
|
kind: LoginDiscoveryConfig
|
|
|
|
shortNames:
|
|
|
|
- ldc
|