2020-08-25 01:07:34 +00:00
|
|
|
#! Copyright 2020 VMware, Inc.
|
|
|
|
#! SPDX-License-Identifier: Apache-2.0
|
2020-07-28 23:55:50 +00:00
|
|
|
|
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:
|
2020-08-25 01:07:34 +00:00
|
|
|
#! kubeConfigInfo:
|
|
|
|
#! server: https://foo
|
|
|
|
#! certificateAuthorityData: bar
|
2020-08-22 00:00:42 +00:00
|
|
|
#! strategies:
|
|
|
|
#! - type: KubeClusterSigningCertificate
|
|
|
|
#! status: Error
|
|
|
|
#! reason: CouldNotFetchKey
|
|
|
|
#! message: "There was an error getting the signing cert"
|
2020-08-25 01:07:34 +00:00
|
|
|
#! lastUpdateTime: 2020-08-21T20:08:18Z
|
|
|
|
|
|
|
|
#@ load("@ytt:data", "data")
|
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
|
2020-08-25 01:07:34 +00:00
|
|
|
required: [ type, status, reason, message, lastUpdateTime ]
|
2020-08-22 00:00:42 +00:00
|
|
|
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
|