2020-07-28 23:55:50 +00:00
|
|
|
#@ load("@ytt:data", "data")
|
|
|
|
|
2020-08-21 16:55:44 +00:00
|
|
|
#! Example of valid CredentialIssuerConfig object:
|
2020-07-29 20:14:50 +00:00
|
|
|
#! ---
|
2020-08-20 17:54:15 +00:00
|
|
|
#! apiVersion: crd.pinniped.dev/v1alpha1
|
2020-08-21 16:55:44 +00:00
|
|
|
#! kind: CredentialIssuerConfig
|
2020-07-29 20:14:50 +00:00
|
|
|
#! metadata:
|
2020-08-21 16:55:44 +00:00
|
|
|
#! name: credential-issuer-config
|
2020-07-29 20:14:50 +00:00
|
|
|
#! namespace: integration
|
2020-08-22 00:00:42 +00:00
|
|
|
#! status:
|
|
|
|
#! strategies:
|
|
|
|
#! - type: KubeClusterSigningCertificate
|
|
|
|
#! lastUpdateTime: 2020-08-21T20:08:18Z
|
|
|
|
#! status: Error
|
|
|
|
#! reason: CouldNotFetchKey
|
|
|
|
#! message: "There was an error getting the signing cert"
|
|
|
|
#! kubeConfigInfo:
|
|
|
|
#! server: https://foo
|
|
|
|
#! certificateAuthorityData: bar
|
2020-07-29 20:14:50 +00:00
|
|
|
|
2020-07-28 23:55:50 +00:00
|
|
|
---
|
|
|
|
apiVersion: apiextensions.k8s.io/v1
|
|
|
|
kind: CustomResourceDefinition
|
|
|
|
metadata:
|
2020-08-21 16:55:44 +00:00
|
|
|
name: credentialissuerconfigs.crd.pinniped.dev
|
2020-07-28 23:55:50 +00:00
|
|
|
spec:
|
2020-08-20 17:54:15 +00:00
|
|
|
group: crd.pinniped.dev
|
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)
|
2020-07-28 23:55:50 +00:00
|
|
|
- name: v1alpha1
|
|
|
|
served: true
|
|
|
|
storage: true
|
|
|
|
schema:
|
|
|
|
openAPIV3Schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
2020-08-22 00:00:42 +00:00
|
|
|
status:
|
2020-07-28 23:55:50 +00:00
|
|
|
type: object
|
|
|
|
properties:
|
2020-08-22 00:00:42 +00:00
|
|
|
strategies:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: object
|
|
|
|
required: [ type, status,reason, message, lastUpdateTime ]
|
|
|
|
properties:
|
|
|
|
type: #! this property is called "type"
|
|
|
|
type: string
|
|
|
|
minLength: 1
|
|
|
|
pattern: '^KubeClusterSigningCertificate$'
|
|
|
|
status:
|
|
|
|
type: string
|
|
|
|
minLength: 1
|
|
|
|
pattern: '^Success$|^Error$'
|
|
|
|
reason:
|
|
|
|
type: string
|
|
|
|
minLength: 1
|
|
|
|
pattern: '^CouldNotFetchKey$|^FetchedKey$'
|
|
|
|
message:
|
|
|
|
type: string
|
|
|
|
minLength: 1
|
|
|
|
lastUpdateTime:
|
|
|
|
type: string
|
|
|
|
format: date-time
|
|
|
|
minLength: 1
|
|
|
|
kubeConfigInfo:
|
|
|
|
type: object
|
|
|
|
required: [ server, certificateAuthorityData ]
|
|
|
|
properties:
|
|
|
|
server:
|
|
|
|
type: string
|
|
|
|
minLength: 1
|
|
|
|
pattern: '^https://|^http://'
|
|
|
|
certificateAuthorityData:
|
|
|
|
type: string
|
|
|
|
minLength: 1
|
2020-07-28 23:55:50 +00:00
|
|
|
scope: Namespaced
|
|
|
|
names:
|
2020-08-21 16:55:44 +00:00
|
|
|
plural: credentialissuerconfigs
|
|
|
|
singular: credentialissuerconfig
|
|
|
|
kind: CredentialIssuerConfig
|
2020-07-28 23:55:50 +00:00
|
|
|
shortNames:
|
2020-08-21 16:55:44 +00:00
|
|
|
- cic
|