Skip to content

Commit

Permalink
fixup typos/ config not passed
Browse files Browse the repository at this point in the history
  • Loading branch information
bastjan committed Oct 10, 2022
1 parent 42ca5ca commit 1e6446e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ type Config struct {
// If true this will reject a { "openshift.io/node-selector": "" } annotation.
NamespaceDenyEmptyNodeSelector bool

//DefaultNodeSelectors are the default node selectors to add to pods if not set from namespace annotation
DefaultNodeSelectors map[string]string
// DefaultNodeSelector are the default node selectors to add to pods if not set from namespace annotation
DefaultNodeSelector map[string]string
}

func ConfigFromFile(path string) (Config, error) {
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ func registerNodeSelectorValidationWebhooks(mgr ctrl.Manager, skip skipper.Skipp
Client: mgr.GetClient(),
OrganizationLabel: conf.OrganizationLabel,
},
Client: mgr.GetClient(),
Client: mgr.GetClient(),
DefaultNodeSelector: conf.DefaultNodeSelector,
},
})
}
Expand Down

0 comments on commit 1e6446e

Please sign in to comment.