diff --git a/DOC.md b/DOC.md new file mode 100644 index 0000000..9d0c7c7 --- /dev/null +++ b/DOC.md @@ -0,0 +1,984 @@ +# API Reference + +Packages: + +- [nodedisruption.criteo.com/v1alpha1](#nodedisruptioncriteocomv1alpha1) + +# nodedisruption.criteo.com/v1alpha1 + +Resource Types: + +- [ApplicationDisruptionBudget](#applicationdisruptionbudget) + +- [NodeDisruptionBudget](#nodedisruptionbudget) + +- [NodeDisruption](#nodedisruption) + + + + +## ApplicationDisruptionBudget +[↩ Parent](#nodedisruptioncriteocomv1alpha1 ) + + + + + + +ApplicationDisruptionBudget is the Schema for the applicationdisruptionbudgets API + +
Name | +Type | +Description | +Required | +
---|---|---|---|
apiVersion | +string | +nodedisruption.criteo.com/v1alpha1 | +true | +
kind | +string | +ApplicationDisruptionBudget | +true | +
metadata | +object | +Refer to the Kubernetes API documentation for the fields of the `metadata` field. | +true | +
spec | +object | +
+ ApplicationDisruptionBudgetSpec defines the desired state of ApplicationDisruptionBudget + |
+ false | +
status | +object | +
+ DisruptionBudgetStatus defines the observed state of ApplicationDisruptionBudget + |
+ false | +
Name | +Type | +Description | +Required | +
---|---|---|---|
maxDisruptions | +integer | +
+ A NodeDisruption is allowed if at most "maxDisruptions" nodes selected by selectors are unavailable after the disruption. + |
+ true | +
healthHook | +object | +
+ 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. + |
+ false | +
healthURL | +string | +
+ 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. + |
+ false | +
podSelector | +object | +
+ PodSelector query over pods whose nodes are managed by the disruption budget. + |
+ false | +
pvcSelector | +object | +
+ PVCSelector query over PVCs whose nodes are managed by the disruption budget. + |
+ false | +
Name | +Type | +Description | +Required | +
---|---|---|---|
caBundle | +string | +
+ a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + |
+ false | +
url | +string | +
+ URL that will be called by the hook, in standard URL form (`scheme://host:port/path`). + |
+ false | +
Name | +Type | +Description | +Required | +
---|---|---|---|
matchExpressions | +[]object | +
+ matchExpressions is a list of label selector requirements. The requirements are ANDed. + |
+ false | +
matchLabels | +map[string]string | +
+ 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. + |
+ false | +
Name | +Type | +Description | +Required | +
---|---|---|---|
key | +string | +
+ key is the label key that the selector applies to. + |
+ true | +
operator | +string | +
+ operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + |
+ true | +
values | +[]string | +
+ 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. + |
+ false | +
Name | +Type | +Description | +Required | +
---|---|---|---|
matchExpressions | +[]object | +
+ matchExpressions is a list of label selector requirements. The requirements are ANDed. + |
+ false | +
matchLabels | +map[string]string | +
+ 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. + |
+ false | +
Name | +Type | +Description | +Required | +
---|---|---|---|
key | +string | +
+ key is the label key that the selector applies to. + |
+ true | +
operator | +string | +
+ operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + |
+ true | +
values | +[]string | +
+ 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. + |
+ false | +
Name | +Type | +Description | +Required | +
---|---|---|---|
currentDisruptions | +integer | +
+ Number of disruption currently seen on the cluster + + Default: 0 + |
+ true | +
disruptions | +[]object | +
+ Disruptions contains a list of disruptions that are related to the budget + |
+ true | +
disruptionsAllowed | +integer | +
+ Number of disruption allowed on the nodes of this + + Default: 0 + |
+ true | +
watchedNodes | +[]string | +
+ 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. + |
+ false | +
Name | +Type | +Description | +Required | +
---|---|---|---|
name | +string | +
+ Name of the disruption + |
+ true | +
state | +string | +
+ State of the disruption + |
+ true | +
Name | +Type | +Description | +Required | +
---|---|---|---|
apiVersion | +string | +nodedisruption.criteo.com/v1alpha1 | +true | +
kind | +string | +NodeDisruptionBudget | +true | +
metadata | +object | +Refer to the Kubernetes API documentation for the fields of the `metadata` field. | +true | +
spec | +object | +
+ NodeDisruptionBudgetSpec defines the desired state of NodeDisruptionBudget + |
+ false | +
status | +object | +
+ DisruptionBudgetStatus defines the observed state of ApplicationDisruptionBudget + |
+ false | +
Name | +Type | +Description | +Required | +
---|---|---|---|
maxDisruptedNodes | +integer | +
+ A NodeDisruption is allowed if at most "maxDisruptedNodes" nodes selected by selectors are unavailable after the disruption. + |
+ true | +
minUndisruptedNodes | +integer | +
+ A NodeDisruption is allowed if at most "minUndisruptedNodes" nodes selected by selectors are unavailable after the disruption. + |
+ true | +
nodeSelector | +object | +
+ NodeSelector query over pods whose nodes are managed by the disruption budget. + |
+ false | +
Name | +Type | +Description | +Required | +
---|---|---|---|
matchExpressions | +[]object | +
+ matchExpressions is a list of label selector requirements. The requirements are ANDed. + |
+ false | +
matchLabels | +map[string]string | +
+ 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. + |
+ false | +
Name | +Type | +Description | +Required | +
---|---|---|---|
key | +string | +
+ key is the label key that the selector applies to. + |
+ true | +
operator | +string | +
+ operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + |
+ true | +
values | +[]string | +
+ 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. + |
+ false | +
Name | +Type | +Description | +Required | +
---|---|---|---|
currentDisruptions | +integer | +
+ Number of disruption currently seen on the cluster + + Default: 0 + |
+ true | +
disruptions | +[]object | +
+ Disruptions contains a list of disruptions that are related to the budget + |
+ true | +
disruptionsAllowed | +integer | +
+ Number of disruption allowed on the nodes of this + + Default: 0 + |
+ true | +
watchedNodes | +[]string | +
+ 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. + |
+ false | +
Name | +Type | +Description | +Required | +
---|---|---|---|
name | +string | +
+ Name of the disruption + |
+ true | +
state | +string | +
+ State of the disruption + |
+ true | +
Name | +Type | +Description | +Required | +
---|---|---|---|
apiVersion | +string | +nodedisruption.criteo.com/v1alpha1 | +true | +
kind | +string | +NodeDisruption | +true | +
metadata | +object | +Refer to the Kubernetes API documentation for the fields of the `metadata` field. | +true | +
spec | +object | +
+ NodeDisruptionSpec defines the desired state of NodeDisruption + |
+ false | +
status | +object | +
+ NodeDisruptionStatus defines the observed state of NodeDisruption (/!\ it is eventually consistent) + |
+ false | +
Name | +Type | +Description | +Required | +
---|---|---|---|
nodeSelector | +object | +
+ Label query over nodes that will be impacted by the disruption + |
+ false | +
retry | +object | +
+ Configure the retrying behavior of a NodeDisruption + |
+ false | +
Name | +Type | +Description | +Required | +
---|---|---|---|
matchExpressions | +[]object | +
+ matchExpressions is a list of label selector requirements. The requirements are ANDed. + |
+ false | +
matchLabels | +map[string]string | +
+ 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. + |
+ false | +
Name | +Type | +Description | +Required | +
---|---|---|---|
key | +string | +
+ key is the label key that the selector applies to. + |
+ true | +
operator | +string | +
+ operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + |
+ true | +
values | +[]string | +
+ 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. + |
+ false | +
Name | +Type | +Description | +Required | +
---|---|---|---|
deadline | +string | +
+ Deadline after which the disruption is not retried + + Format: date-time + |
+ false | +
enabled | +boolean | +
+ Enable retrying + |
+ false | +
Name | +Type | +Description | +Required | +
---|---|---|---|
disruptedDisruptionBudgets | +[]object | +
+ List of all the budgets disrupted by the NodeDisruption + |
+ false | +
disruptedNodes | +[]string | +
+ List of all the nodes that are disrupted by this NodeDisruption + |
+ false | +
nextRetryDate | +string | +
+ Date of the next attempt + + Format: date-time + |
+ false | +
state | +enum | +
+ Disruption status + + Enum: pending, granted, rejected + Default: pending + |
+ false | +
Name | +Type | +Description | +Required | +
---|---|---|---|
ok | +boolean | +
+ + |
+ true | +
reason | +string | +
+ + |
+ true | +
reference | +object | +
+ This is the same as types.NamespacedName but serialisable to JSON + |
+ false | +
Name | +Type | +Description | +Required | +
---|---|---|---|
kind | +string | +
+ + |
+ true | +
name | +string | +
+ + |
+ true | +
namespace | +string | +
+ + |
+ true | +