Skip to content

Commit 81527d5

Browse files
authored
Merge pull request #7092 from ykakarap/add-validations-clusterclass-mhc
🌱 add missing validations to MHC in ClusterClass
2 parents 0017077 + 1302dee commit 81527d5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

api/v1beta1/clusterclass_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ type MachineHealthCheckClass struct {
158158
// (a) there are at least 3 unhealthy machines (and)
159159
// (b) there are at most 5 unhealthy machines
160160
// +optional
161+
// +kubebuilder:validation:Pattern=^\[[0-9]+-[0-9]+\]$
161162
UnhealthyRange *string `json:"unhealthyRange,omitempty"`
162163

163164
// Machines older than this duration without a node will be considered to have

config/crd/bases/cluster.x-k8s.io_clusterclasses.yaml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)