You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit fixes manager component configation for
ansible-operator and helm-operator by adding the underlying reading and Manager option updating functionality. This was missing when the config file was originally added to both ansible/v1 and helm/v1 plugins. --config accepts a path to this config file. internal/{ansible,helm}: add --config flag, and configure existing flags to be applied on top of manager Options internal/cmd/{ansible,helm}: apply config file data prior to flag data Signed-off-by: Eric Stroczynski <ericstroczynski@gmail.com>
"Path to installed Ansible Collections. If set, collections should be located in {{value}}/ansible_collections/. If unset, collections are assumed to be in ~/.ansible/collections or /usr/share/ansible/collections.",
82
+
"Path to installed Ansible Collections. If set, collections should be located in {{value}}/ansible_collections/. "+
83
+
"If unset, collections are assumed to be in ~/.ansible/collections or /usr/share/ansible/collections.",
84
+
)
85
+
flagSet.StringVar(&f.AnsibleArgs,
86
+
"ansible-args",
87
+
"",
88
+
"Ansible args. Allows user to specify arbitrary arguments for ansible-based operators.",
81
89
)
82
-
// todo:remove it for 2.0.0
90
+
91
+
// Controller flags.
92
+
flagSet.DurationVar(&f.ReconcilePeriod,
93
+
"reconcile-period",
94
+
time.Minute,
95
+
"Default reconcile period for controllers",
96
+
)
97
+
flagSet.IntVar(&f.MaxConcurrentReconciles,
98
+
"max-concurrent-reconciles",
99
+
runtime.NumCPU(),
100
+
"Maximum number of concurrent reconciles for controllers. Overridden by environment variable.",
101
+
)
102
+
103
+
// Controller manager flags.
104
+
flagSet.StringVar(&f.ManagerConfigPath,
105
+
"manager-config",
106
+
"",
107
+
"The controller will load its initial configuration from this file. "+
108
+
"Omit this flag to use the default configuration values. "+
109
+
"Command-line flags override configuration from this file.",
0 commit comments