Skip to content

Commit cb252e7

Browse files
Update CRDs in the Helm chart (#79)
to include the changes made in: - fa0944f - a82f007
1 parent 28cf927 commit cb252e7

3 files changed

Lines changed: 61 additions & 10 deletions

File tree

chart/templates/applicationdisruptionbudget-crd.yaml

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ spec:
5151
metadata:
5252
type: object
5353
spec:
54-
description: ApplicationDisruptionBudgetSpec defines the desired state of
55-
ApplicationDisruptionBudget
54+
description: ApplicationDisruptionBudgetSpec defines the desired state
55+
of ApplicationDisruptionBudget
5656
properties:
5757
healthHook:
5858
description: |-
@@ -66,8 +66,24 @@ spec:
6666
roots on the apiserver are used.
6767
type: string
6868
url:
69-
description: URL that will be called by the hook, in standard URL
70-
form (`scheme://host:port/path`).
69+
description: URL that will be called by the hook, in standard
70+
URL form (`scheme://host:port/path`).
71+
type: string
72+
type: object
73+
hookV2BasePath:
74+
description: |-
75+
HookV2BasePath holds the base path for the prepare, ready, cancel hooks that will be
76+
called at different stages of the NodeDisruption lifecycle.
77+
A POST http request containing a Disruption that is being reconciled is sent ot each of the hooks.
78+
properties:
79+
caBundle:
80+
description: a PEM encoded CA bundle which will be used to validate
81+
the webhook's server certificate. If unspecified, system trust
82+
roots on the apiserver are used.
83+
type: string
84+
url:
85+
description: URL that will be called by the hook, in standard
86+
URL form (`scheme://host:port/path`).
7187
type: string
7288
type: object
7389
maxDisruptions:
@@ -104,11 +120,13 @@ spec:
104120
items:
105121
type: string
106122
type: array
123+
x-kubernetes-list-type: atomic
107124
required:
108125
- key
109126
- operator
110127
type: object
111128
type: array
129+
x-kubernetes-list-type: atomic
112130
matchLabels:
113131
additionalProperties:
114132
type: string
@@ -149,11 +167,13 @@ spec:
149167
items:
150168
type: string
151169
type: array
170+
x-kubernetes-list-type: atomic
152171
required:
153172
- key
154173
- operator
155174
type: object
156175
type: array
176+
x-kubernetes-list-type: atomic
157177
matchLabels:
158178
additionalProperties:
159179
type: string
@@ -164,6 +184,14 @@ spec:
164184
type: object
165185
type: object
166186
x-kubernetes-map-type: atomic
187+
supportedNodeDisruptionTypes:
188+
description: |-
189+
SupportedNodeDisruptionTypes is the list of node disruption types that this budget supports.
190+
When set, this budget will only be considered during reconciliation of NodeDisruptions whose type
191+
is in this list. When empty, the controller's default node disruption types are used.
192+
items:
193+
type: string
194+
type: array
167195
required:
168196
- maxDisruptions
169197
type: object
@@ -218,4 +246,4 @@ status:
218246
kind: ""
219247
plural: ""
220248
conditions: []
221-
storedVersions: []
249+
storedVersions: []

chart/templates/nodedisruption-crd.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ spec:
4646
spec:
4747
description: NodeDisruptionSpec defines the desired state of NodeDisruption
4848
properties:
49+
duration:
50+
description: Duration of the disruption once granted
51+
type: string
4952
nodeSelector:
5053
description: Label query over nodes that will be impacted by the disruption
5154
properties:
@@ -75,11 +78,13 @@ spec:
7578
items:
7679
type: string
7780
type: array
81+
x-kubernetes-list-type: atomic
7882
required:
7983
- key
8084
- operator
8185
type: object
8286
type: array
87+
x-kubernetes-list-type: atomic
8388
matchLabels:
8489
additionalProperties:
8590
type: string
@@ -91,7 +96,8 @@ spec:
9196
type: object
9297
x-kubernetes-map-type: atomic
9398
retry:
94-
description: Configure the retrying behavior of a NodeDisruption
99+
description: Retry configuration allows to retry a disruption after
100+
rejection until the given deadline
95101
properties:
96102
deadline:
97103
description: Deadline after which the disruption is not retried
@@ -101,6 +107,10 @@ spec:
101107
description: Enable retrying
102108
type: boolean
103109
type: object
110+
startDate:
111+
description: StartDate when the disruption should start
112+
format: date-time
113+
type: string
104114
type:
105115
description: Type of the node disruption
106116
type: string
@@ -115,6 +125,8 @@ spec:
115125
properties:
116126
ok:
117127
type: boolean
128+
preparing:
129+
type: boolean
118130
reason:
119131
type: string
120132
reference:
@@ -134,6 +146,7 @@ spec:
134146
type: object
135147
required:
136148
- ok
149+
- preparing
137150
- reason
138151
type: object
139152
type: array
@@ -165,4 +178,4 @@ status:
165178
kind: ""
166179
plural: ""
167180
conditions: []
168-
storedVersions: []
181+
storedVersions: []

chart/templates/nodedisruptionbudget-crd.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ spec:
6565
nodes selected by selectors are unavailable after the disruption.
6666
type: integer
6767
nodeSelector:
68-
description: NodeSelector query over pods whose nodes are managed by
69-
the disruption budget.
68+
description: NodeSelector query over pods whose nodes are managed
69+
by the disruption budget.
7070
properties:
7171
matchExpressions:
7272
description: matchExpressions is a list of label selector requirements.
@@ -94,11 +94,13 @@ spec:
9494
items:
9595
type: string
9696
type: array
97+
x-kubernetes-list-type: atomic
9798
required:
9899
- key
99100
- operator
100101
type: object
101102
type: array
103+
x-kubernetes-list-type: atomic
102104
matchLabels:
103105
additionalProperties:
104106
type: string
@@ -109,6 +111,14 @@ spec:
109111
type: object
110112
type: object
111113
x-kubernetes-map-type: atomic
114+
supportedNodeDisruptionTypes:
115+
description: |-
116+
SupportedNodeDisruptionTypes is the list of node disruption types that this budget supports.
117+
When set, this budget will only be considered during reconciliation of NodeDisruptions whose type
118+
is in this list. When empty, the controller's default node disruption types are used.
119+
items:
120+
type: string
121+
type: array
112122
required:
113123
- maxDisruptedNodes
114124
- minUndisruptedNodes
@@ -164,4 +174,4 @@ status:
164174
kind: ""
165175
plural: ""
166176
conditions: []
167-
storedVersions: []
177+
storedVersions: []

0 commit comments

Comments
 (0)