added additionalNodeSelector to manifestgen options

Signed-off-by: Phil Nichol <35630607+philnichol@users.noreply.github.com>
pull/2423/head
Phil Nichol 3 years ago
parent 877729aca3
commit f4ac38987e
No known key found for this signature in database
GPG Key ID: 998C1F11E05F7B14

@ -36,6 +36,7 @@ type Options struct {
TargetPath string
ClusterDomain string
TolerationKeys []string
AdditionalNodeSelectors map[string]string
}
func MakeDefaultOptions() Options {

@ -133,6 +133,9 @@ spec:
spec:
nodeSelector:
kubernetes.io/os: linux
{{- range $k, $v := .AdditionalNodeSelectors }}
{{$k}}: "{{$v}}"
{{- end }}
{{- if .ImagePullSecret }}
imagePullSecrets:
- name: {{.ImagePullSecret}}

Loading…
Cancel
Save