mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-22 15:41:47 +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
|
|
@ -19,23 +19,24 @@ package install
|
|||
import "time"
|
||||
|
||||
type Options struct {
|
||||
BaseURL string
|
||||
Version string
|
||||
Namespace string
|
||||
Components []string
|
||||
ComponentsExtra []string
|
||||
EventsAddr string
|
||||
Registry string
|
||||
ImagePullSecret string
|
||||
WatchAllNamespaces bool
|
||||
NetworkPolicy bool
|
||||
LogLevel string
|
||||
NotificationController string
|
||||
ManifestFile string
|
||||
Timeout time.Duration
|
||||
TargetPath string
|
||||
ClusterDomain string
|
||||
TolerationKeys []string
|
||||
BaseURL string
|
||||
Version string
|
||||
Namespace string
|
||||
Components []string
|
||||
ComponentsExtra []string
|
||||
EventsAddr string
|
||||
Registry string
|
||||
ImagePullSecret string
|
||||
WatchAllNamespaces bool
|
||||
NetworkPolicy bool
|
||||
LogLevel string
|
||||
NotificationController string
|
||||
ManifestFile string
|
||||
Timeout time.Duration
|
||||
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…
Reference in a new issue