Skip to content

Commit a638ff2

Browse files
Merge pull request #2462 from chrischdi/pr-machinehealthcheck-maxunhealthy-godoc
OCPBUGS-60901: Add default value for MachineHealthCheck's maxUnhealthy to the description
2 parents 4a165b2 + e034945 commit a638ff2

File tree

6 files changed

+6
-3
lines changed

6 files changed

+6
-3
lines changed

machine/v1beta1/types_machinehealthcheck.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ type MachineHealthCheckSpec struct {
7676
// Expects either a postive integer value or a percentage value.
7777
// Percentage values must be positive whole numbers and are capped at 100%.
7878
// Both 0 and 0% are valid and will block all remediation.
79+
// Defaults to 100% if not set.
7980
// +kubebuilder:default:="100%"
8081
// +kubebuilder:validation:XIntOrString
8182
// +kubebuilder:validation:Pattern="^((100|[0-9]{1,2})%|[0-9]+)$"

machine/v1beta1/zz_generated.crd-manifests/0000_10_machine-api_01_machinehealthchecks.crd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ spec:
7171
Expects either a postive integer value or a percentage value.
7272
Percentage values must be positive whole numbers and are capped at 100%.
7373
Both 0 and 0% are valid and will block all remediation.
74+
Defaults to 100% if not set.
7475
pattern: ^((100|[0-9]{1,2})%|[0-9]+)$
7576
x-kubernetes-int-or-string: true
7677
nodeStartupTimeout:

machine/v1beta1/zz_generated.featuregated-crd-manifests/machinehealthchecks.machine.openshift.io/AAA_ungated.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ spec:
7474
Expects either a postive integer value or a percentage value.
7575
Percentage values must be positive whole numbers and are capped at 100%.
7676
Both 0 and 0% are valid and will block all remediation.
77+
Defaults to 100% if not set.
7778
pattern: ^((100|[0-9]{1,2})%|[0-9]+)$
7879
x-kubernetes-int-or-string: true
7980
nodeStartupTimeout:

machine/v1beta1/zz_generated.swagger_doc_generated.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/generated_openapi/zz_generated.openapi.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23243,7 +23243,7 @@
2324323243
],
2324423244
"properties": {
2324523245
"maxUnhealthy": {
23246-
"description": "Any farther remediation is only allowed if at most \"MaxUnhealthy\" machines selected by \"selector\" are not healthy. Expects either a postive integer value or a percentage value. Percentage values must be positive whole numbers and are capped at 100%. Both 0 and 0% are valid and will block all remediation.",
23246+
"description": "Any farther remediation is only allowed if at most \"MaxUnhealthy\" machines selected by \"selector\" are not healthy. Expects either a postive integer value or a percentage value. Percentage values must be positive whole numbers and are capped at 100%. Both 0 and 0% are valid and will block all remediation. Defaults to 100% if not set.",
2324723247
"$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString"
2324823248
},
2324923249
"nodeStartupTimeout": {

0 commit comments

Comments
 (0)