Skip to content
This repository was archived by the owner on Mar 26, 2021. It is now read-only.

Commit 93a849e

Browse files
authored
Merge pull request #236 from perotinus/yaml
Some small updates to the cluster CRD YAML
2 parents b4c4e6f + 133d65e commit 93a849e

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

cluster-registry-crd.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
apiVersion: apiextensions.k8s.io/v1beta1
22
kind: CustomResourceDefinition
33
metadata:
4+
creationTimestamp: null
5+
labels:
6+
api: ""
7+
kubebuilder.k8s.io: 0.1.9
48
name: clusters.clusterregistry.k8s.io
59
spec:
610
group: clusterregistry.k8s.io
@@ -31,7 +35,7 @@ spec:
3135
caBundle:
3236
items:
3337
type: byte
34-
type: array
38+
type: string
3539
serverEndpoints:
3640
items:
3741
properties:
@@ -67,3 +71,8 @@ spec:
6771
type: object
6872
type: object
6973
version: v1alpha1
74+
status:
75+
acceptedNames:
76+
kind: ""
77+
plural: ""
78+
conditions: null

docs/development.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ These will update the generated client code, update the generated docs and
6262
OpenAPI spec in `docs/reference/openapi-spec`, and update the CRD YAML
6363
definition in the repo root.
6464

65-
After running the commands, edit `cluster-registry-crd.yaml` to remove the
66-
`status` field, and the `creationTimestamp` and `labels` from the `metadata`.
65+
After running the commands, edit `cluster-registry-crd.yaml` to modify the
66+
`type` of the `caBundle` field from `array` to `string`. (See
67+
https://github.com/kubernetes-sigs/kubebuilder/issues/220 for more details).
6768

6869
## Verify Go source files
6970

0 commit comments

Comments
 (0)