mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-26 01:15:00 +00:00
added additionalNodeSelector to manifestgen options
Signed-off-by: Phil Nichol <35630607+philnichol@users.noreply.github.com>
This commit is contained in:
parent
877729aca3
commit
f4ac38987e
2 changed files with 21 additions and 17 deletions
|
|
@ -36,6 +36,7 @@ type Options struct {
|
||||||
TargetPath string
|
TargetPath string
|
||||||
ClusterDomain string
|
ClusterDomain string
|
||||||
TolerationKeys []string
|
TolerationKeys []string
|
||||||
|
AdditionalNodeSelectors map[string]string
|
||||||
}
|
}
|
||||||
|
|
||||||
func MakeDefaultOptions() Options {
|
func MakeDefaultOptions() Options {
|
||||||
|
|
|
||||||
|
|
@ -133,6 +133,9 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/os: linux
|
kubernetes.io/os: linux
|
||||||
|
{{- range $k, $v := .AdditionalNodeSelectors }}
|
||||||
|
{{$k}}: "{{$v}}"
|
||||||
|
{{- end }}
|
||||||
{{- if .ImagePullSecret }}
|
{{- if .ImagePullSecret }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: {{.ImagePullSecret}}
|
- name: {{.ImagePullSecret}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue