mirror of https://github.com/kubernetes/kops.git
Generate v1 CRDs
This commit is contained in:
parent
6ed48c1349
commit
10e4fb499a
2
Makefile
2
Makefile
|
|
@ -868,7 +868,7 @@ dev-upload: dev-upload-nodeup dev-upload-protokube dev-upload-dns-controller dev
|
||||||
|
|
||||||
.PHONY: crds
|
.PHONY: crds
|
||||||
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
|
# kops-controller
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -1,8 +1,10 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
|
annotations:
|
||||||
|
controller-gen.kubebuilder.io/version: (devel)
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
name: keysets.kops.k8s.io
|
name: keysets.kops.k8s.io
|
||||||
spec:
|
spec:
|
||||||
|
|
@ -12,57 +14,57 @@ spec:
|
||||||
listKind: KeysetList
|
listKind: KeysetList
|
||||||
plural: keysets
|
plural: keysets
|
||||||
singular: keyset
|
singular: keyset
|
||||||
scope: ""
|
scope: Namespaced
|
||||||
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
|
|
||||||
versions:
|
versions:
|
||||||
- name: v1alpha2
|
- 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
|
served: true
|
||||||
storage: true
|
storage: true
|
||||||
status:
|
status:
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
|
annotations:
|
||||||
|
controller-gen.kubebuilder.io/version: (devel)
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
name: sshcredentials.kops.k8s.io
|
name: sshcredentials.kops.k8s.io
|
||||||
spec:
|
spec:
|
||||||
|
|
@ -12,32 +14,31 @@ spec:
|
||||||
listKind: SSHCredentialList
|
listKind: SSHCredentialList
|
||||||
plural: sshcredentials
|
plural: sshcredentials
|
||||||
singular: sshcredential
|
singular: sshcredential
|
||||||
scope: ""
|
scope: Namespaced
|
||||||
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
|
|
||||||
versions:
|
versions:
|
||||||
- name: v1alpha2
|
- 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
|
served: true
|
||||||
storage: true
|
storage: true
|
||||||
status:
|
status:
|
||||||
|
|
|
||||||
|
|
@ -20,4 +20,5 @@ limitations under the License.
|
||||||
// +k8s:defaulter-gen=TypeMeta
|
// +k8s:defaulter-gen=TypeMeta
|
||||||
|
|
||||||
// +groupName=kops.k8s.io
|
// +groupName=kops.k8s.io
|
||||||
|
// +versionName=v1alpha2
|
||||||
package v1alpha2 // import "k8s.io/kops/pkg/apis/kops/v1alpha2"
|
package v1alpha2 // import "k8s.io/kops/pkg/apis/kops/v1alpha2"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue