Skip to content

Commit 4374347

Browse files
Merge pull request #161 from contentful-labs/update-example-crd
feat: [MEC-1673] - update example CRD
2 parents cf33349 + ec3ed7d commit 4374347

File tree

1 file changed

+116
-93
lines changed

1 file changed

+116
-93
lines changed
Lines changed: 116 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
apiVersion: apiextensions.k8s.io/v1beta1
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
23
kind: CustomResourceDefinition
34
metadata:
45
annotations:
5-
controller-gen.kubebuilder.io/version: v0.2.4
6-
creationTimestamp: null
6+
controller-gen.kubebuilder.io/version: v0.17.1
77
name: syncedsecrets.secrets.contentful.com
88
spec:
99
group: secrets.contentful.com
@@ -13,101 +13,124 @@ spec:
1313
plural: syncedsecrets
1414
singular: syncedsecret
1515
scope: Namespaced
16-
subresources:
17-
status: {}
18-
validation:
19-
openAPIV3Schema:
20-
description: SyncedSecret is the Schema for the SyncedSecrets API
21-
properties:
22-
apiVersion:
23-
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'
24-
type: string
25-
kind:
26-
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'
27-
type: string
28-
metadata:
29-
type: object
30-
spec:
31-
description: SyncedSecretSpec defines the desired state of SyncedSecret
32-
properties:
33-
IAMRole:
34-
description: IAMRole
35-
type: string
36-
data:
37-
description: Data
38-
items:
39-
properties:
40-
name:
41-
type: string
42-
value:
43-
description: Value
44-
type: string
45-
valueFrom:
46-
description: ValueFrom
47-
properties:
48-
secretKeyRef:
49-
description: SecretKeyRef
50-
properties:
51-
key:
52-
type: string
53-
name:
54-
type: string
55-
required:
56-
- key
57-
- name
58-
type: object
59-
secretRef:
60-
description: SecretRef
61-
properties:
62-
name:
63-
type: string
64-
required:
65-
- name
66-
type: object
67-
template:
68-
description: Template
69-
type: string
70-
type: object
71-
required:
72-
- name
73-
type: object
74-
type: array
75-
dataFrom:
76-
description: DataFrom
77-
properties:
78-
secretRef:
16+
versions:
17+
- name: v1
18+
schema:
19+
openAPIV3Schema:
20+
description: SyncedSecret is the Schema for the SyncedSecrets API
21+
properties:
22+
apiVersion:
23+
description: |-
24+
APIVersion defines the versioned schema of this representation of an object.
25+
Servers should convert recognized schemas to the latest internal value, and
26+
may reject unrecognized values.
27+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
28+
type: string
29+
kind:
30+
description: |-
31+
Kind is a string value representing the REST resource this object represents.
32+
Servers may infer this from the endpoint the client submits requests to.
33+
Cannot be updated.
34+
In CamelCase.
35+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
36+
type: string
37+
metadata:
38+
type: object
39+
spec:
40+
description: SyncedSecretSpec defines the desired state of SyncedSecret
41+
properties:
42+
AWSAccountID:
43+
description: AWSAccountID
44+
type: string
45+
IAMRole:
46+
description: IAMRole
47+
type: string
48+
data:
49+
description: Data
50+
items:
7951
properties:
8052
name:
8153
type: string
54+
value:
55+
description: Value
56+
type: string
57+
valueFrom:
58+
description: ValueFrom
59+
properties:
60+
secretKeyRef:
61+
description: SecretKeyRef
62+
properties:
63+
key:
64+
type: string
65+
name:
66+
type: string
67+
required:
68+
- key
69+
- name
70+
type: object
71+
secretRef:
72+
description: SecretRef
73+
properties:
74+
name:
75+
type: string
76+
required:
77+
- name
78+
type: object
79+
template:
80+
description: Template
81+
type: string
82+
type: object
8283
required:
8384
- name
8485
type: object
85-
type: object
86-
secretMetadata:
87-
description: Secret Metadata
88-
type: object
89-
type: object
90-
status:
91-
description: SyncedSecretStatus defines the observed state of SyncedSecret
92-
properties:
93-
currentVersionID:
94-
description: this is the version of the secret that is present in k8s secret this should be coming from the local cache
95-
type: string
96-
generatedSecretHash:
97-
description: hash(secret.data) that was generated, used for checking of a Secret has diverged and if it needs reconciling
98-
type: string
99-
required:
100-
- currentVersionID
101-
type: object
102-
type: object
103-
version: v1
104-
versions:
105-
- name: v1
86+
type: array
87+
dataFrom:
88+
description: DataFrom
89+
properties:
90+
secretRef:
91+
properties:
92+
name:
93+
type: string
94+
required:
95+
- name
96+
type: object
97+
type: object
98+
secretMetadata:
99+
description: Secret Metadata
100+
properties:
101+
annotations:
102+
additionalProperties:
103+
type: string
104+
type: object
105+
creationTimestamp:
106+
format: date-time
107+
type: string
108+
labels:
109+
additionalProperties:
110+
type: string
111+
type: object
112+
name:
113+
type: string
114+
namespace:
115+
type: string
116+
type: object
117+
type: object
118+
status:
119+
description: SyncedSecretStatus defines the observed state of SyncedSecret
120+
properties:
121+
currentVersionID:
122+
description: this is the version of the secret that is present in
123+
k8s secret this should be coming from the local cache
124+
type: string
125+
generatedSecretHash:
126+
description: hash(secret.data) that was generated, used for checking
127+
of a Secret has diverged and if it needs reconciling
128+
type: string
129+
required:
130+
- currentVersionID
131+
type: object
132+
type: object
106133
served: true
107134
storage: true
108-
status:
109-
acceptedNames:
110-
kind: ""
111-
plural: ""
112-
conditions: []
113-
storedVersions: []
135+
subresources:
136+
status: {}

0 commit comments

Comments
 (0)