You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Description of the change**
Code generation wasn't working. This PR fixes it and updates the
generated code:
- Use latest version of `controller-gen` to generate the manifests for
the CRD
- Use `kube_codegen.sh` to generate the client code. The
`generate_groups.sh` script we were using previously has been deprecated
and removed.
- Code generation is now done from a `hack` directory following the
[Kubernetes sample-controller
example](https://github.com/kubernetes/sample-controller/blob/master/hack/update-codegen.sh).
- `make manifests` has been run to update the manifests.
- `make generate` has been run to update the generated code.
---------
Signed-off-by: Alejandro Moreno <[email protected]>
description: SealedSecret is the K8s representation of a "sealed Secret" -
30
-
a regular k8s Secret that has been sealed (encrypted) using the controller's
31
-
key.
29
+
description: |-
30
+
SealedSecret is the K8s representation of a "sealed Secret" - a
31
+
regular k8s Secret that has been sealed (encrypted) using the
32
+
controller's key.
32
33
properties:
33
34
apiVersion:
34
-
description: 'APIVersion defines the versioned schema of this representation
35
-
of an object. Servers should convert recognized schemas to the latest
36
-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
35
+
description: |-
36
+
APIVersion defines the versioned schema of this representation of an object.
37
+
Servers should convert recognized schemas to the latest internal value, and
38
+
may reject unrecognized values.
39
+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
37
40
type: string
38
41
kind:
39
-
description: 'Kind is a string value representing the REST resource this
40
-
object represents. Servers may infer this from the endpoint the client
41
-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
42
+
description: |-
43
+
Kind is a string value representing the REST resource this object represents.
44
+
Servers may infer this from the endpoint the client submits requests to.
45
+
Cannot be updated.
46
+
In CamelCase.
47
+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
42
48
type: string
43
49
metadata:
44
50
type: object
45
51
spec:
46
-
description: SealedSecretSpec is the specification of a SealedSecret
52
+
description: SealedSecretSpec is the specification of a SealedSecret.
47
53
properties:
48
54
data:
49
55
description: Data is deprecated and will be removed eventually. Use
@@ -56,17 +62,27 @@ spec:
56
62
type: object
57
63
x-kubernetes-preserve-unknown-fields: true
58
64
template:
59
-
description: Template defines the structure of the Secret that will
60
-
be created from this sealed secret.
65
+
description: |-
66
+
Template defines the structure of the Secret that will be
67
+
created from this sealed secret.
61
68
properties:
62
69
data:
63
70
additionalProperties:
64
71
type: string
65
-
description: Keys that should be templated using decrypted data
72
+
description: Keys that should be templated using decrypted data.
66
73
nullable: true
67
74
type: object
75
+
immutable:
76
+
description: |-
77
+
Immutable, if set to true, ensures that data stored in the Secret cannot
78
+
be updated (only object metadata can be modified).
79
+
If not set to true, the field can be modified at any time.
80
+
Defaulted to nil.
81
+
type: boolean
68
82
metadata:
69
-
description: 'Standard object''s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata'
83
+
description: |-
84
+
Standard object's metadata.
85
+
More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
70
86
nullable: true
71
87
properties:
72
88
annotations:
@@ -91,10 +107,6 @@ spec:
91
107
description: Used to facilitate programmatic handling of secret
92
108
data.
93
109
type: string
94
-
immutable:
95
-
description: 'Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified).
96
-
If not set to true, the field can be modified at any time. Defaulted to nil.'
97
-
type: boolean
98
110
type: object
99
111
required:
100
112
- encryptedData
@@ -127,12 +139,14 @@ spec:
127
139
description: The reason for the condition's last transition.
128
140
type: string
129
141
status:
130
-
description: 'Status of the condition for a sealed secret. Valid
131
-
values for "Synced": "True", "False", or "Unknown".'
142
+
description: |-
143
+
Status of the condition for a sealed secret.
144
+
Valid values for "Synced": "True", "False", or "Unknown".
132
145
type: string
133
146
type:
134
-
description: 'Type of condition for a sealed secret. Valid value:
Copy file name to clipboardExpand all lines: schema-v1alpha1.yaml
+36-12
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,28 @@
1
1
openAPIV3Schema:
2
-
description: SealedSecret is the K8s representation of a "sealed Secret" - a regular k8s Secret that has been sealed (encrypted) using the controller's key.
2
+
description: |-
3
+
SealedSecret is the K8s representation of a "sealed Secret" - a
4
+
regular k8s Secret that has been sealed (encrypted) using the
5
+
controller's key.
3
6
properties:
4
7
apiVersion:
5
-
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'
8
+
description: |-
9
+
APIVersion defines the versioned schema of this representation of an object.
10
+
Servers should convert recognized schemas to the latest internal value, and
11
+
may reject unrecognized values.
12
+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
6
13
type: string
7
14
kind:
8
-
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'
15
+
description: |-
16
+
Kind is a string value representing the REST resource this object represents.
17
+
Servers may infer this from the endpoint the client submits requests to.
18
+
Cannot be updated.
19
+
In CamelCase.
20
+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
9
21
type: string
10
22
metadata:
11
23
type: object
12
24
spec:
13
-
description: SealedSecretSpec is the specification of a SealedSecret
25
+
description: SealedSecretSpec is the specification of a SealedSecret.
14
26
properties:
15
27
data:
16
28
description: Data is deprecated and will be removed eventually. Use per-value EncryptedData instead.
@@ -22,16 +34,27 @@ openAPIV3Schema:
22
34
type: object
23
35
x-kubernetes-preserve-unknown-fields: true
24
36
template:
25
-
description: Template defines the structure of the Secret that will be created from this sealed secret.
37
+
description: |-
38
+
Template defines the structure of the Secret that will be
39
+
created from this sealed secret.
26
40
properties:
27
41
data:
28
42
additionalProperties:
29
43
type: string
30
-
description: Keys that should be templated using decrypted data
44
+
description: Keys that should be templated using decrypted data.
31
45
nullable: true
32
46
type: object
47
+
immutable:
48
+
description: |-
49
+
Immutable, if set to true, ensures that data stored in the Secret cannot
50
+
be updated (only object metadata can be modified).
51
+
If not set to true, the field can be modified at any time.
52
+
Defaulted to nil.
53
+
type: boolean
33
54
metadata:
34
-
description: 'Standard object''s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata'
55
+
description: |-
56
+
Standard object's metadata.
57
+
More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
35
58
nullable: true
36
59
properties:
37
60
annotations:
@@ -55,9 +78,6 @@ openAPIV3Schema:
55
78
type:
56
79
description: Used to facilitate programmatic handling of secret data.
57
80
type: string
58
-
immutable:
59
-
description: 'Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.'
60
-
type: boolean
61
81
type: object
62
82
required:
63
83
- encryptedData
@@ -85,10 +105,14 @@ openAPIV3Schema:
85
105
description: The reason for the condition's last transition.
86
106
type: string
87
107
status:
88
-
description: 'Status of the condition for a sealed secret. Valid values for "Synced": "True", "False", or "Unknown".'
108
+
description: |-
109
+
Status of the condition for a sealed secret.
110
+
Valid values for "Synced": "True", "False", or "Unknown".
89
111
type: string
90
112
type:
91
-
description: 'Type of condition for a sealed secret. Valid value: "Synced"'
0 commit comments