File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ func main() {
141
141
for _ , w := range ws {
142
142
reconcilePeriod := defaultReconcilePeriod
143
143
if w .ReconcilePeriod != nil {
144
- reconcilePeriod = * w .ReconcilePeriod
144
+ reconcilePeriod = w .ReconcilePeriod . Duration
145
145
}
146
146
147
147
maxConcurrentReconciles := defaultMaxConcurrentReconciles
Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ import (
19
19
"fmt"
20
20
"io/ioutil"
21
21
"os"
22
- "time"
23
22
24
23
"helm.sh/helm/v3/pkg/chart"
25
24
"helm.sh/helm/v3/pkg/chart/loader"
25
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
26
26
"k8s.io/apimachinery/pkg/runtime/schema"
27
27
"sigs.k8s.io/yaml"
28
28
)
@@ -33,7 +33,7 @@ type Watch struct {
33
33
34
34
WatchDependentResources * bool `json:"watchDependentResources,omitempty"`
35
35
OverrideValues map [string ]string `json:"overrideValues,omitempty"`
36
- ReconcilePeriod * time .Duration `json:"reconcilePeriod,omitempty"`
36
+ ReconcilePeriod * metav1 .Duration `json:"reconcilePeriod,omitempty"`
37
37
MaxConcurrentReconciles * int `json:"maxConcurrentReconciles,omitempty"`
38
38
39
39
Chart * chart.Chart `json:"-"`
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ func TestLoadWatches(t *testing.T) {
41
41
kind: MyKind
42
42
chart: ../../testdata/test-chart-0.1.0.tgz
43
43
watchDependentResources: false
44
+ reconcilePeriod: 10s
44
45
overrideValues:
45
46
key: value
46
47
` ,
You can’t perform that action at this time.
0 commit comments