diff --git a/config.go b/config.go index a816792..36fb4a1 100644 --- a/config.go +++ b/config.go @@ -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) { diff --git a/main.go b/main.go index c14d6f0..2895925 100644 --- a/main.go +++ b/main.go @@ -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, }, }) }