Skip to content

Commit

Permalink
Remove healthURL to use healthHook only (#58)
Browse files Browse the repository at this point in the history
healthURL has been deprecated and replaced with healthHook.
healthHook is more powerful as it provides more configuration
and it sends the nodeDisruption in the POST body.
  • Loading branch information
geobeau authored Mar 29, 2024
1 parent a1ad67c commit 1ef9f97
Show file tree
Hide file tree
Showing 13 changed files with 161 additions and 192 deletions.
83 changes: 56 additions & 27 deletions DOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,9 @@ ApplicationDisruptionBudgetSpec defines the desired state of ApplicationDisrupti
<td><b><a href="#applicationdisruptionbudgetspechealthhook">healthHook</a></b></td>
<td>object</td>
<td>
Define a optional hook to call when validating a NodeDisruption. It perform a POST http request containing the NodeDisruption that is being validated. Maintenance will proceed only if the endpoint responds 2XX.<br/>
</td>
<td>false</td>
</tr><tr>
<td><b>healthURL</b></td>
<td>string</td>
<td>
Health URL is deprecated and will be removed in next version, please use healthHook instead. Health URL is an optional URL to call to validate the state of the application. Maintenance will proceed only if the endpoint responds 2XX.<br/>
Define a optional hook to call when validating a NodeDisruption.
It perform a POST http request containing the NodeDisruption that is being validated.
Maintenance will proceed only if the endpoint responds 2XX.<br/>
</td>
<td>false</td>
</tr><tr>
Expand All @@ -131,7 +126,9 @@ ApplicationDisruptionBudgetSpec defines the desired state of ApplicationDisrupti



Define a optional hook to call when validating a NodeDisruption. It perform a POST http request containing the NodeDisruption that is being validated. Maintenance will proceed only if the endpoint responds 2XX.
Define a optional hook to call when validating a NodeDisruption.
It perform a POST http request containing the NodeDisruption that is being validated.
Maintenance will proceed only if the endpoint responds 2XX.

<table>
<thead>
Expand Down Expand Up @@ -187,7 +184,9 @@ PodSelector query over pods whose nodes are managed by the disruption budget.
<td><b>matchLabels</b></td>
<td>map[string]string</td>
<td>
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.<br/>
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed.<br/>
</td>
<td>false</td>
</tr></tbody>
Expand All @@ -199,7 +198,8 @@ PodSelector query over pods whose nodes are managed by the disruption budget.



A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
A label selector requirement is a selector that contains values, a key, and an operator that
relates the key and values.

<table>
<thead>
Expand All @@ -221,14 +221,18 @@ A label selector requirement is a selector that contains values, a key, and an o
<td><b>operator</b></td>
<td>string</td>
<td>
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.<br/>
operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist.<br/>
</td>
<td>true</td>
</tr><tr>
<td><b>values</b></td>
<td>[]string</td>
<td>
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.<br/>
values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch.<br/>
</td>
<td>false</td>
</tr></tbody>
Expand Down Expand Up @@ -262,7 +266,9 @@ PVCSelector query over PVCs whose nodes are managed by the disruption budget.
<td><b>matchLabels</b></td>
<td>map[string]string</td>
<td>
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.<br/>
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed.<br/>
</td>
<td>false</td>
</tr></tbody>
Expand All @@ -274,7 +280,8 @@ PVCSelector query over PVCs whose nodes are managed by the disruption budget.



A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
A label selector requirement is a selector that contains values, a key, and an operator that
relates the key and values.

<table>
<thead>
Expand All @@ -296,14 +303,18 @@ A label selector requirement is a selector that contains values, a key, and an o
<td><b>operator</b></td>
<td>string</td>
<td>
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.<br/>
operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist.<br/>
</td>
<td>true</td>
</tr><tr>
<td><b>values</b></td>
<td>[]string</td>
<td>
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.<br/>
values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch.<br/>
</td>
<td>false</td>
</tr></tbody>
Expand Down Expand Up @@ -355,7 +366,9 @@ DisruptionBudgetStatus defines the observed state of ApplicationDisruptionBudget
<td><b>watchedNodes</b></td>
<td>[]string</td>
<td>
List of nodes that are being watched by the controller Disruption on this nodes will will be made according to the budget of this cluster.<br/>
List of nodes that are being watched by the controller
Disruption on this nodes will will be made according to the budget
of this cluster.<br/>
</td>
<td>false</td>
</tr></tbody>
Expand Down Expand Up @@ -517,7 +530,9 @@ NodeSelector query over pods whose nodes are managed by the disruption budget.
<td><b>matchLabels</b></td>
<td>map[string]string</td>
<td>
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.<br/>
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed.<br/>
</td>
<td>false</td>
</tr></tbody>
Expand All @@ -529,7 +544,8 @@ NodeSelector query over pods whose nodes are managed by the disruption budget.



A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
A label selector requirement is a selector that contains values, a key, and an operator that
relates the key and values.

<table>
<thead>
Expand All @@ -551,14 +567,18 @@ A label selector requirement is a selector that contains values, a key, and an o
<td><b>operator</b></td>
<td>string</td>
<td>
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.<br/>
operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist.<br/>
</td>
<td>true</td>
</tr><tr>
<td><b>values</b></td>
<td>[]string</td>
<td>
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.<br/>
values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch.<br/>
</td>
<td>false</td>
</tr></tbody>
Expand Down Expand Up @@ -610,7 +630,9 @@ DisruptionBudgetStatus defines the observed state of ApplicationDisruptionBudget
<td><b>watchedNodes</b></td>
<td>[]string</td>
<td>
List of nodes that are being watched by the controller Disruption on this nodes will will be made according to the budget of this cluster.<br/>
List of nodes that are being watched by the controller
Disruption on this nodes will will be made according to the budget
of this cluster.<br/>
</td>
<td>false</td>
</tr></tbody>
Expand Down Expand Up @@ -765,7 +787,9 @@ Label query over nodes that will be impacted by the disruption
<td><b>matchLabels</b></td>
<td>map[string]string</td>
<td>
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.<br/>
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed.<br/>
</td>
<td>false</td>
</tr></tbody>
Expand All @@ -777,7 +801,8 @@ Label query over nodes that will be impacted by the disruption



A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
A label selector requirement is a selector that contains values, a key, and an operator that
relates the key and values.

<table>
<thead>
Expand All @@ -799,14 +824,18 @@ A label selector requirement is a selector that contains values, a key, and an o
<td><b>operator</b></td>
<td>string</td>
<td>
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.<br/>
operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist.<br/>
</td>
<td>true</td>
</tr><tr>
<td><b>values</b></td>
<td>[]string</td>
<td>
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.<br/>
values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch.<br/>
</td>
<td>false</td>
</tr></tbody>
Expand Down
5 changes: 0 additions & 5 deletions api/v1alpha1/applicationdisruptionbudget_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ type ApplicationDisruptionBudgetSpec struct {
PodSelector metav1.LabelSelector `json:"podSelector,omitempty"`
// PVCSelector query over PVCs whose nodes are managed by the disruption budget.
PVCSelector metav1.LabelSelector `json:"pvcSelector,omitempty"`
// Health URL is deprecated and will be removed in next version, please use healthHook instead.
// Health URL is an optional URL to call to validate the state of the application.
// Maintenance will proceed only if the endpoint responds 2XX.
// +kubebuilder:validation:Optional
HealthURL *string `json:"healthURL,omitempty"`
// Define a optional hook to call when validating a NodeDisruption.
// It perform a POST http request containing the NodeDisruption that is being validated.
// Maintenance will proceed only if the endpoint responds 2XX.
Expand Down
5 changes: 0 additions & 5 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1ef9f97

Please sign in to comment.