File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ require (
10
10
github.com/stretchr/testify v1.5.1
11
11
go.uber.org/zap v1.13.0
12
12
gomodules.xyz/jsonpatch/v2 v2.0.1
13
- gopkg.in/yaml.v2 v2.2.8
14
13
helm.sh/helm/v3 v3.2.0
15
14
k8s.io/api v0.18.2
16
15
k8s.io/apiextensions-apiserver v0.18.2
Original file line number Diff line number Diff line change @@ -21,22 +21,22 @@ import (
21
21
"os"
22
22
"time"
23
23
24
- "gopkg.in/yaml.v2"
25
24
"helm.sh/helm/v3/pkg/chart"
26
25
"helm.sh/helm/v3/pkg/chart/loader"
27
26
"k8s.io/apimachinery/pkg/runtime/schema"
27
+ "sigs.k8s.io/yaml"
28
28
)
29
29
30
30
type Watch struct {
31
- GroupVersionKind schema.GroupVersionKind `yaml :",inline"`
32
- ChartPath string `yaml :"chart"`
31
+ schema.GroupVersionKind `json :",inline"`
32
+ ChartPath string `json :"chart"`
33
33
34
- WatchDependentResources * bool `yaml :"watchDependentResources,omitempty"`
35
- OverrideValues map [string ]string `yaml :"overrideValues,omitempty"`
36
- ReconcilePeriod * time.Duration `yaml :"reconcilePeriod,omitempty"`
37
- MaxConcurrentReconciles * int `yaml :"maxConcurrentReconciles,omitempty"`
34
+ WatchDependentResources * bool `json :"watchDependentResources,omitempty"`
35
+ OverrideValues map [string ]string `json :"overrideValues,omitempty"`
36
+ ReconcilePeriod * time.Duration `json :"reconcilePeriod,omitempty"`
37
+ MaxConcurrentReconciles * int `json :"maxConcurrentReconciles,omitempty"`
38
38
39
- Chart * chart.Chart `yaml :"-"`
39
+ Chart * chart.Chart `json :"-"`
40
40
}
41
41
42
42
// Load loads a slice of Watches from the watch file at `path`. For each entry
You can’t perform that action at this time.
0 commit comments