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
runCmd.Flags().StringVar(&cfg.ApplicationsAPIKind, "applications-api", env.GetStringVal("APPLICATIONS_API", applicationsAPIKindK8S), "API kind that is used to manage Argo CD applications ('kubernetes' or 'argocd')")
313
-
runCmd.Flags().StringVar(&cfg.ClientOpts.ServerAddr, "argocd-server-addr", env.GetStringVal("ARGOCD_SERVER", ""), "address of ArgoCD API server")
314
-
runCmd.Flags().BoolVar(&cfg.ClientOpts.GRPCWeb, "argocd-grpc-web", env.GetBoolVal("ARGOCD_GRPC_WEB", false), "use grpc-web for connection to ArgoCD")
runCmd.Flags().BoolVar(&cfg.ClientOpts.Plaintext, "argocd-plaintext", env.GetBoolVal("ARGOCD_PLAINTEXT", false), "(INSECURE) connect without TLS to ArgoCD server")
317
-
runCmd.Flags().StringVar(&cfg.ClientOpts.AuthToken, "argocd-auth-token", "", "use token for authenticating to ArgoCD (unsafe - consider setting ARGOCD_TOKEN env var instead)")
312
+
// DEPRECATED: These flags have been removed in the CRD branch and will be deprecated and removed in a future release.
313
+
// The CRD branch introduces a new architecture that eliminates the need for these native ArgoCD client configuration flags.
314
+
runCmd.Flags().StringVar(&cfg.ApplicationsAPIKind, "applications-api", env.GetStringVal("APPLICATIONS_API", applicationsAPIKindK8S), "API kind that is used to manage Argo CD applications ('kubernetes' or 'argocd'). DEPRECATED: this flag will be removed in a future version.")
315
+
runCmd.Flags().StringVar(&cfg.ClientOpts.ServerAddr, "argocd-server-addr", env.GetStringVal("ARGOCD_SERVER", ""), "address of ArgoCD API server. DEPRECATED: this flag will be removed in a future version.")
316
+
runCmd.Flags().BoolVar(&cfg.ClientOpts.GRPCWeb, "argocd-grpc-web", env.GetBoolVal("ARGOCD_GRPC_WEB", false), "use grpc-web for connection to ArgoCD. DEPRECATED: this flag will be removed in a future version.")
317
+
runCmd.Flags().BoolVar(&cfg.ClientOpts.Insecure, "argocd-insecure", env.GetBoolVal("ARGOCD_INSECURE", false), "(INSECURE) ignore invalid TLS certs for ArgoCD server. DEPRECATED: this flag will be removed in a future version.")
318
+
runCmd.Flags().BoolVar(&cfg.ClientOpts.Plaintext, "argocd-plaintext", env.GetBoolVal("ARGOCD_PLAINTEXT", false), "(INSECURE) connect without TLS to ArgoCD server. DEPRECATED: this flag will be removed in a future version.")
319
+
runCmd.Flags().StringVar(&cfg.ClientOpts.AuthToken, "argocd-auth-token", "", "use token for authenticating to ArgoCD (unsafe - consider setting ARGOCD_TOKEN env var instead). DEPRECATED: this flag will be removed in a future version.")
320
+
runCmd.Flags().BoolVar(&disableKubernetes, "disable-kubernetes", false, "do not create and use a Kubernetes client. DEPRECATED: this flag will be removed in a future version.")
321
+
318
322
runCmd.Flags().BoolVar(&cfg.DryRun, "dry-run", false, "run in dry-run mode. If set to true, do not perform any changes")
319
323
runCmd.Flags().DurationVar(&cfg.CheckInterval, "interval", env.GetDurationVal("IMAGE_UPDATER_INTERVAL", 2*time.Minute), "interval for how often to check for updates")
320
324
runCmd.Flags().StringVar(&cfg.LogLevel, "loglevel", env.GetStringVal("IMAGE_UPDATER_LOGLEVEL", "info"), "set the loglevel to one of trace|debug|info|warn|error")
runCmd.Flags().IntVar(&cfg.MetricsPort, "metrics-port", 8081, "port to start the metrics server on, 0 to disable")
324
328
runCmd.Flags().BoolVar(&once, "once", false, "run only once, same as specifying --interval=0 and --health-port=0")
325
329
runCmd.Flags().StringVar(&cfg.RegistriesConf, "registries-conf-path", defaultRegistriesConfPath, "path to registries configuration file")
326
-
runCmd.Flags().BoolVar(&disableKubernetes, "disable-kubernetes", false, "do not create and use a Kubernetes client")
327
330
runCmd.Flags().IntVar(&cfg.MaxConcurrency, "max-concurrency", 10, "maximum number of update threads to run concurrently")
328
331
runCmd.Flags().StringVar(&cfg.ArgocdNamespace, "argocd-namespace", "", "namespace where ArgoCD runs in (current namespace by default)")
329
332
runCmd.Flags().StringVar(&cfg.AppNamespace, "application-namespace", v1.NamespaceAll, "namespace where Argo Image Updater will manage applications (all namespaces by default)")
330
-
runCmd.Flags().StringSliceVar(&cfg.AppNamePatterns, "match-application-name", nil, "patterns to match application name against")
331
-
runCmd.Flags().StringVar(&cfg.AppLabel, "match-application-label", "", "label selector to match application labels against")
333
+
334
+
// DEPRECATED: These flags have been removed in the CRD branch and will be deprecated and removed in a future release.
335
+
// The CRD branch introduces a new architecture that eliminates the need for these application matching flags.
336
+
runCmd.Flags().StringSliceVar(&cfg.AppNamePatterns, "match-application-name", nil, "patterns to match application name against. DEPRECATED: this flag will be removed in a future version.")
337
+
runCmd.Flags().StringVar(&cfg.AppLabel, "match-application-label", "", "label selector to match application labels against. DEPRECATED: this flag will be removed in a future version.")
338
+
332
339
runCmd.Flags().BoolVar(&warmUpCache, "warmup-cache", true, "whether to perform a cache warm-up on startup")
333
340
runCmd.Flags().StringVar(&cfg.GitCommitUser, "git-commit-user", env.GetStringVal("GIT_COMMIT_USER", "argocd-image-updater"), "Username to use for Git commits")
334
341
runCmd.Flags().StringVar(&cfg.GitCommitMail, "git-commit-email", env.GetStringVal("GIT_COMMIT_EMAIL", "[email protected]"), "E-Mail address to use for Git commits")
Copy file name to clipboardExpand all lines: cmd/webhook.go
+16-9Lines changed: 16 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -165,22 +165,29 @@ Supported registries:
165
165
},
166
166
}
167
167
168
+
// DEPRECATED: These flags have been removed in the CRD branch and will be deprecated and removed in a future release.
169
+
// The CRD branch introduces a new architecture that eliminates the need for these native ArgoCD client configuration flags.
170
+
webhookCmd.Flags().StringVar(&cfg.ApplicationsAPIKind, "applications-api", env.GetStringVal("APPLICATIONS_API", applicationsAPIKindK8S), "API kind that is used to manage Argo CD applications ('kubernetes' or 'argocd'). DEPRECATED: this flag will be removed in a future version.")
171
+
webhookCmd.Flags().StringVar(&cfg.ClientOpts.ServerAddr, "argocd-server-addr", env.GetStringVal("ARGOCD_SERVER", ""), "address of ArgoCD API server. DEPRECATED: this flag will be removed in a future version.")
172
+
webhookCmd.Flags().BoolVar(&cfg.ClientOpts.GRPCWeb, "argocd-grpc-web", env.GetBoolVal("ARGOCD_GRPC_WEB", false), "use grpc-web for connection to ArgoCD. DEPRECATED: this flag will be removed in a future version.")
173
+
webhookCmd.Flags().BoolVar(&cfg.ClientOpts.Insecure, "argocd-insecure", env.GetBoolVal("ARGOCD_INSECURE", false), "(INSECURE) ignore invalid TLS certs for ArgoCD server. DEPRECATED: this flag will be removed in a future version.")
174
+
webhookCmd.Flags().BoolVar(&cfg.ClientOpts.Plaintext, "argocd-plaintext", env.GetBoolVal("ARGOCD_PLAINTEXT", false), "(INSECURE) connect without TLS to ArgoCD server. DEPRECATED: this flag will be removed in a future version.")
175
+
webhookCmd.Flags().StringVar(&cfg.ClientOpts.AuthToken, "argocd-auth-token", "", "use token for authenticating to ArgoCD (unsafe - consider setting ARGOCD_TOKEN env var instead). DEPRECATED: this flag will be removed in a future version.")
176
+
webhookCmd.Flags().BoolVar(&disableKubernetes, "disable-kubernetes", false, "do not create and use a Kubernetes client. DEPRECATED: this flag will be removed in a future version.")
177
+
168
178
// Set Image Updater flags
169
-
webhookCmd.Flags().StringVar(&cfg.ApplicationsAPIKind, "applications-api", env.GetStringVal("APPLICATIONS_API", applicationsAPIKindK8S), "API kind that is used to manage Argo CD applications ('kubernetes' or 'argocd')")
170
-
webhookCmd.Flags().StringVar(&cfg.ClientOpts.ServerAddr, "argocd-server-addr", env.GetStringVal("ARGOCD_SERVER", ""), "address of ArgoCD API server")
171
-
webhookCmd.Flags().BoolVar(&cfg.ClientOpts.GRPCWeb, "argocd-grpc-web", env.GetBoolVal("ARGOCD_GRPC_WEB", false), "use grpc-web for connection to ArgoCD")
webhookCmd.Flags().BoolVar(&cfg.ClientOpts.Plaintext, "argocd-plaintext", env.GetBoolVal("ARGOCD_PLAINTEXT", false), "(INSECURE) connect without TLS to ArgoCD server")
174
-
webhookCmd.Flags().StringVar(&cfg.ClientOpts.AuthToken, "argocd-auth-token", "", "use token for authenticating to ArgoCD (unsafe - consider setting ARGOCD_TOKEN env var instead)")
175
179
webhookCmd.Flags().StringVar(&cfg.LogLevel, "loglevel", env.GetStringVal("IMAGE_UPDATER_LOGLEVEL", "info"), "set the loglevel to one of trace|debug|info|warn|error")
176
180
webhookCmd.Flags().StringVar(&kubeConfig, "kubeconfig", "", "full path to kubernetes client configuration, i.e. ~/.kube/config")
177
181
webhookCmd.Flags().StringVar(&cfg.RegistriesConf, "registries-conf-path", defaultRegistriesConfPath, "path to registries configuration file")
178
-
webhookCmd.Flags().BoolVar(&disableKubernetes, "disable-kubernetes", false, "do not create and use a Kubernetes client")
179
182
webhookCmd.Flags().IntVar(&cfg.MaxConcurrency, "max-concurrency", 10, "maximum number of update threads to run concurrently")
180
183
webhookCmd.Flags().StringVar(&cfg.ArgocdNamespace, "argocd-namespace", "", "namespace where ArgoCD runs in (current namespace by default)")
181
184
webhookCmd.Flags().StringVar(&cfg.AppNamespace, "application-namespace", v1.NamespaceAll, "namespace where Argo Image Updater will manage applications (all namespaces by default)")
182
-
webhookCmd.Flags().StringSliceVar(&cfg.AppNamePatterns, "match-application-name", nil, "patterns to match application name against")
183
-
webhookCmd.Flags().StringVar(&cfg.AppLabel, "match-application-label", "", "label selector to match application labels against")
185
+
186
+
// DEPRECATED: These flags have been removed in the CRD branch and will be deprecated and removed in a future release.
187
+
// The CRD branch introduces a new architecture that eliminates the need for these application matching flags.
188
+
webhookCmd.Flags().StringSliceVar(&cfg.AppNamePatterns, "match-application-name", nil, "patterns to match application name against. DEPRECATED: this flag will be removed in a future version.")
189
+
webhookCmd.Flags().StringVar(&cfg.AppLabel, "match-application-label", "", "label selector to match application labels against. DEPRECATED: this flag will be removed in a future version.")
190
+
184
191
webhookCmd.Flags().StringVar(&cfg.GitCommitUser, "git-commit-user", env.GetStringVal("GIT_COMMIT_USER", "argocd-image-updater"), "Username to use for Git commits")
185
192
webhookCmd.Flags().StringVar(&cfg.GitCommitMail, "git-commit-email", env.GetStringVal("GIT_COMMIT_EMAIL", "[email protected]"), "E-Mail address to use for Git commits")
186
193
webhookCmd.Flags().StringVar(&cfg.GitCommitSigningKey, "git-commit-signing-key", env.GetStringVal("GIT_COMMIT_SIGNING_KEY", ""), "GnuPG key ID or path to Private SSH Key used to sign the commits")
Copy file name to clipboardExpand all lines: docs/install/cmd/run.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,13 +20,17 @@ API kind that is used to manage Argo CD applications ('kubernetes' or 'argocd')
20
20
21
21
Can also be set using the *APPLICATIONS_API* environment variable.
22
22
23
+
**DEPRECATED:** This flag has been removed in the CRD branch and will be deprecated and removed in a future release. The CRD branch introduces a new architecture that eliminates the need for this native ArgoCD client configuration flag.
24
+
23
25
**--argocd-auth-token *token***
24
26
25
27
Use *token* for authenticating to the Argo CD API. This token must be a base64
26
28
encoded JWT, as generated by Argo CD.
27
29
28
30
The token can also be set using the *ARGOCD_TOKEN* environment variable.
29
31
32
+
**DEPRECATED:** This flag has been removed in the CRD branch and will be deprecated and removed in a future release. The CRD branch introduces a new architecture that eliminates the need for this native ArgoCD client configuration flag.
33
+
30
34
**--argocd-grpc-web**
31
35
32
36
If this flag is given, use the gRPC-web protocol to connect to the Argo CD API.
@@ -35,6 +39,8 @@ HTTP/2, or only accept HTTP/2 on the front end.
35
39
36
40
Can also be set using the *ARGOCD_GRPC_WEB* environment variable.
37
41
42
+
**DEPRECATED:** This flag has been removed in the CRD branch and will be deprecated and removed in a future release. The CRD branch introduces a new architecture that eliminates the need for this native ArgoCD client configuration flag.
43
+
38
44
**--argocd-insecure**
39
45
40
46
If specified, the certificate of the Argo CD API server is not verified. Useful
@@ -44,6 +50,8 @@ production systems.
44
50
45
51
Can also be set using the *ARGOCD_INSECURE* environment variable.
46
52
53
+
**DEPRECATED:** This flag has been removed in the CRD branch and will be deprecated and removed in a future release. The CRD branch introduces a new architecture that eliminates the need for this native ArgoCD client configuration flag.
54
+
47
55
**-argocd-namespace *namespace***
48
56
49
57
namespace where ArgoCD runs in (current namespace by default)
@@ -55,6 +63,8 @@ TLS.
55
63
56
64
Can also be set using the *ARGOCD_PLAINTEXT* environment variable.
57
65
66
+
**DEPRECATED:** This flag has been removed in the CRD branch and will be deprecated and removed in a future release. The CRD branch introduces a new architecture that eliminates the need for this native ArgoCD client configuration flag.
67
+
58
68
**--argocd-server-addr *server address***
59
69
60
70
Connect to the Argo CD API server at *server address*. *server address* must
@@ -65,6 +75,8 @@ connections, and port 443 for TLS connections.
65
75
66
76
Can also be set using the *ARGOCD_SERVER* environment variable.
67
77
78
+
**DEPRECATED:** This flag has been removed in the CRD branch and will be deprecated and removed in a future release. The CRD branch introduces a new architecture that eliminates the need for this native ArgoCD client configuration flag.
79
+
68
80
**--disable-kube-events**
69
81
70
82
Disable kubernetes events
@@ -78,6 +90,8 @@ cluster, this flag will prevent Argo CD Image Updater from creating a client
78
90
to interact with Kubernetes. When Kubernetes access is disabled, pull secrets
79
91
for images can only be specified from an environment variable.
80
92
93
+
**DEPRECATED:** This flag has been removed in the CRD branch and will be deprecated and removed in a future release. The CRD branch introduces a new architecture that eliminates the need for this native ArgoCD client configuration flag.
94
+
81
95
**--dry-run**
82
96
83
97
If this flag is set, Argo CD Image Updater won't actually perform any changes
@@ -192,6 +206,8 @@ currently does not support pattern matching on label values (e.g `customer.label
192
206
You can specify equality, inequality, or set based requirements or a combination.
193
207
For e.g., `app,app!=foo,custom.label/name=xyz,customer in (a,b,c)`
194
208
209
+
**DEPRECATED:** This flag has been removed in the CRD branch and will be deprecated and removed in a future release. The CRD branch introduces a new architecture that eliminates the need for these application matching flag.
210
+
195
211
**--match-application-name *pattern***
196
212
197
213
Only process applications that have a valid annotation and matches the given
@@ -200,6 +216,8 @@ style wildcards, i.e. `*-staging` would match any application name with a
200
216
suffix of `-staging`. Can be specified multiple times to define more than
201
217
one pattern, from which at least one has to match.
202
218
219
+
**DEPRECATED:** This flag has been removed in the CRD branch and will be deprecated and removed in a future release. The CRD branch introduces a new architecture that eliminates the need for these application matching flag.
220
+
203
221
**--max-concurrency *number***
204
222
205
223
Process a maximum of *number* applications concurrently. To disable concurrent
Copy file name to clipboardExpand all lines: docs/install/cmd/webhook.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,13 +27,17 @@ API kind that is used to manage Argo CD applications ('kubernetes' or 'argocd')
27
27
28
28
Can also be set using the *APPLICATIONS_API* environment variable.
29
29
30
+
**DEPRECATED:** This flag has been removed in the CRD branch and will be deprecated and removed in a future release. The CRD branch introduces a new architecture that eliminates the need for this native ArgoCD client configuration flag.
31
+
30
32
**--argocd-auth-token *token***
31
33
32
34
Use *token* for authenticating to the Argo CD API. This token must be a base64
33
35
encoded JWT, as generated by Argo CD.
34
36
35
37
The token can also be set using the *ARGOCD_TOKEN* environment variable.
36
38
39
+
**DEPRECATED:** This flag has been removed in the CRD branch and will be deprecated and removed in a future release. The CRD branch introduces a new architecture that eliminates the need for this native ArgoCD client configuration flag.
40
+
37
41
**--argocd-grpc-web**
38
42
39
43
If this flag is given, use the gRPC-web protocol to connect to the Argo CD API.
@@ -42,6 +46,8 @@ HTTP/2, or only accept HTTP/2 on the front end.
42
46
43
47
Can also be set using the *ARGOCD_GRPC_WEB* environment variable.
44
48
49
+
**DEPRECATED:** This flag has been removed in the CRD branch and will be deprecated and removed in a future release. The CRD branch introduces a new architecture that eliminates the need for this native ArgoCD client configuration flag.
50
+
45
51
**--argocd-insecure**
46
52
47
53
If specified, the certificate of the Argo CD API server is not verified. Useful
@@ -51,6 +57,8 @@ production systems.
51
57
52
58
Can also be set using the *ARGOCD_INSECURE* environment variable.
53
59
60
+
**DEPRECATED:** This flag has been removed in the CRD branch and will be deprecated and removed in a future release. The CRD branch introduces a new architecture that eliminates the need for this native ArgoCD client configuration flag.
61
+
54
62
**-argocd-namespace *namespace***
55
63
56
64
namespace where ArgoCD runs in (current namespace by default)
@@ -62,6 +70,8 @@ TLS.
62
70
63
71
Can also be set using the *ARGOCD_PLAINTEXT* environment variable.
64
72
73
+
**DEPRECATED:** This flag has been removed in the CRD branch and will be deprecated and removed in a future release. The CRD branch introduces a new architecture that eliminates the need for this native ArgoCD client configuration flag.
74
+
65
75
**--argocd-server-addr *server address***
66
76
67
77
Connect to the Argo CD API server at *server address*. *server address* must
@@ -72,6 +82,8 @@ connections, and port 443 for TLS connections.
72
82
73
83
Can also be set using the *ARGOCD_SERVER* environment variable.
74
84
85
+
**DEPRECATED:** This flag has been removed in the CRD branch and will be deprecated and removed in a future release. The CRD branch introduces a new architecture that eliminates the need for this native ArgoCD client configuration flag.
86
+
75
87
**--disable-kube-events**
76
88
77
89
Disable kubernetes events
@@ -85,6 +97,8 @@ cluster, this flag will prevent Argo CD Image Updater from creating a client
85
97
to interact with Kubernetes. When Kubernetes access is disabled, pull secrets
86
98
for images can only be specified from an environment variable.
87
99
100
+
**DEPRECATED:** This flag has been removed in the CRD branch and will be deprecated and removed in a future release. The CRD branch introduces a new architecture that eliminates the need for this native ArgoCD client configuration flag.
101
+
88
102
**--docker-webhook-secret *secret***
89
103
90
104
Secret for validating Docker Hub webhooks.
@@ -164,6 +178,8 @@ currently does not support pattern matching on label values (e.g `customer.label
164
178
You can specify equality, inequality, or set based requirements or a combination.
165
179
For e.g., `app,app!=foo,custom.label/name=xyz,customer in (a,b,c)`
166
180
181
+
**DEPRECATED:** This flag has been removed in the CRD branch and will be deprecated and removed in a future release. The CRD branch introduces a new architecture that eliminates the need for these application matching flag.
182
+
167
183
**--match-application-name *pattern***
168
184
169
185
Only process applications that have a valid annotation and matches the given
@@ -172,6 +188,8 @@ style wildcards, i.e. `*-staging` would match any application name with a
172
188
suffix of `-staging`. Can be specified multiple times to define more than
173
189
one pattern, from which at least one has to match.
174
190
191
+
**DEPRECATED:** This flag has been removed in the CRD branch and will be deprecated and removed in a future release. The CRD branch introduces a new architecture that eliminates the need for these application matching flag.
192
+
175
193
**--max-concurrency *number***
176
194
177
195
Process a maximum of *number* applications concurrently. To disable concurrent
0 commit comments