Skip to content

Commit

Permalink
set default value for PiePorbe
Browse files Browse the repository at this point in the history
Signed-off-by: Ryotaro Banno <[email protected]>
  • Loading branch information
ushitora-anqou committed Jun 11, 2024
1 parent 931eb47 commit 8aed789
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/pie/v1alpha1/pieprobe_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type PieProbeSpec struct {

NodeSelector corev1.NodeSelector `json:"nodeSelector"`

//+kubebuilder:default:=1
//+kubebuilder:validation:Maximum:=59
//+kubebuilder:validation:Minimum:=1
ProbePeriod int `json:"probePeriod"`
Expand Down
1 change: 1 addition & 0 deletions charts/pie/templates/pie.topolvm.io_pieprobes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ spec:
type: object
x-kubernetes-map-type: atomic
probePeriod:
default: 1
maximum: 59
minimum: 1
type: integer
Expand Down
1 change: 1 addition & 0 deletions config/crd/bases/pie.topolvm.io_pieprobes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ spec:
type: object
x-kubernetes-map-type: atomic
probePeriod:
default: 1
maximum: 59
minimum: 1
type: integer
Expand Down

0 comments on commit 8aed789

Please sign in to comment.