Skip to content

Commit 1c01d73

Browse files
set default value for ProbeThreshold
Signed-off-by: Ryotaro Banno <[email protected]>
1 parent fcda5ac commit 1c01d73

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

api/pie/v1alpha1/pieprobe_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ type PieProbeSpec struct {
2424
//+kubebuilder:validation:Minimum:=1
2525
ProbePeriod int `json:"probePeriod"`
2626

27+
//+kubebuilder:default:="1m"
2728
ProbeThreshold metav1.Duration `json:"probeThreshold"`
2829
}
2930

charts/pie/templates/pie.topolvm.io_pieprobes.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ spec:
136136
minimum: 1
137137
type: integer
138138
probeThreshold:
139+
default: 1m
139140
type: string
140141
required:
141142
- monitoringStorageClass

config/crd/bases/pie.topolvm.io_pieprobes.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ spec:
136136
minimum: 1
137137
type: integer
138138
probeThreshold:
139+
default: 1m
139140
type: string
140141
required:
141142
- monitoringStorageClass

0 commit comments

Comments
 (0)