Generate v1 CRDs

This commit is contained in:
Peter Rifel 2020-04-08 15:21:18 -05:00
parent 6ed48c1349
commit 10e4fb499a
6 changed files with 4236 additions and 4093 deletions

View File

@ -868,7 +868,7 @@ dev-upload: dev-upload-nodeup dev-upload-protokube dev-upload-dns-controller dev
.PHONY: crds
crds:
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go crd paths=k8s.io/kops/pkg/apis/kops/v1alpha2 output:dir=k8s/crds/
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go crd paths=k8s.io/kops/pkg/apis/kops/v1alpha2 output:dir=k8s/crds/ crd:crdVersions=v1
#------------------------------------------------------
# kops-controller

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,10 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: keysets.kops.k8s.io
spec:
@ -12,57 +14,57 @@ spec:
listKind: KeysetList
plural: keysets
singular: keyset
scope: ""
validation:
openAPIV3Schema:
description: Keyset is a set of system keypairs, or other secret material. It
is a set to support credential rotation etc.
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: KeysetSpec is the spec for a Keyset
properties:
keys:
description: Keys is the set of keys that make up the keyset
items:
description: KeysetItem is an item (keypair or other secret material)
in a Keyset
properties:
id:
description: Id is the unique identifier for this key in the keyset
type: string
privateMaterial:
description: PrivateMaterial holds secret material (e.g. a private
key, or symmetric token)
format: byte
type: string
publicMaterial:
description: PublicMaterial holds non-secret material (e.g. a
certificate)
format: byte
type: string
type: object
type: array
type:
description: Type is the type of the Keyset (PKI keypair, or secret
token)
type: string
type: object
type: object
version: v1alpha2
scope: Namespaced
versions:
- name: v1alpha2
schema:
openAPIV3Schema:
description: Keyset is a set of system keypairs, or other secret material.
It is a set to support credential rotation etc.
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: KeysetSpec is the spec for a Keyset
properties:
keys:
description: Keys is the set of keys that make up the keyset
items:
description: KeysetItem is an item (keypair or other secret material)
in a Keyset
properties:
id:
description: Id is the unique identifier for this key in the
keyset
type: string
privateMaterial:
description: PrivateMaterial holds secret material (e.g. a private
key, or symmetric token)
format: byte
type: string
publicMaterial:
description: PublicMaterial holds non-secret material (e.g.
a certificate)
format: byte
type: string
type: object
type: array
type:
description: Type is the type of the Keyset (PKI keypair, or secret
token)
type: string
type: object
type: object
served: true
storage: true
status:

View File

@ -1,8 +1,10 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
creationTimestamp: null
name: sshcredentials.kops.k8s.io
spec:
@ -12,32 +14,31 @@ spec:
listKind: SSHCredentialList
plural: sshcredentials
singular: sshcredential
scope: ""
validation:
openAPIV3Schema:
description: SSHCredential represent a set of kops secrets
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
publicKey:
type: string
type: object
type: object
version: v1alpha2
scope: Namespaced
versions:
- name: v1alpha2
schema:
openAPIV3Schema:
description: SSHCredential represent a set of kops secrets
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
publicKey:
type: string
type: object
type: object
served: true
storage: true
status:

View File

@ -20,4 +20,5 @@ limitations under the License.
// +k8s:defaulter-gen=TypeMeta
// +groupName=kops.k8s.io
// +versionName=v1alpha2
package v1alpha2 // import "k8s.io/kops/pkg/apis/kops/v1alpha2"