Skip to content

Commit

Permalink
fix alignment issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianvf committed Jul 13, 2020
1 parent 8958df3 commit 881d089
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/ansible/watches/watches.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ type Watch struct {
ManageStatus bool `yaml:"manageStatus"`
WatchDependentResources bool `yaml:"watchDependentResources"`
WatchClusterScopedResources bool `yaml:"watchClusterScopedResources"`
Selector metav1.LabelSelector `yaml:"selector"`
SnakeCaseParameters bool `yaml:"snakeCaseParameters"`
Selector metav1.LabelSelector `yaml:"selector"`

// Not configurable via watches.yaml
MaxWorkers int `yaml:"-"`
Expand All @@ -74,8 +74,8 @@ var (
manageStatusDefault = true
watchDependentResourcesDefault = true
watchClusterScopedResourcesDefault = false
selectorDefault = metav1.LabelSelector{}
snakeCaseParametersDefault = true
selectorDefault = metav1.LabelSelector{}

// these are overridden by cmdline flags
maxWorkersDefault = 1
Expand Down Expand Up @@ -158,7 +158,7 @@ func (w *Watch) setValuesFromAlias(tmp alias) error {
}

if tmp.SnakeCaseParameters == nil {
tmp.SnakeCaseParameters = snakeCaseParametersDefault
tmp.SnakeCaseParameters = &snakeCaseParametersDefault
}

gvk := schema.GroupVersionKind{
Expand Down

0 comments on commit 881d089

Please sign in to comment.