Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 9b32c84

Browse files
fix: correct skip decryption (#106)
1 parent b25fec3 commit 9b32c84

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

argocd-cmp/cmp.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ spec:
1717
- "."
1818
- --env-regex
1919
- "^ARGOCD_ENV_.*$"
20-
- --must-decrypt
2120
- --kubeconfig
2221
- "/etc/kubernetes/kubeconfig"

pkg/config/config.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ type Configuration struct {
2222
SecretNamespace string `mapstructure:"secret-namespace"`
2323
EjsonKey []string `mapstructure:"ejson-key"`
2424
SkipDecrypt bool `mapstructure:"skip-decrypt"`
25-
MustDecrypt bool `mapstructure:"must-decrypt"`
2625
KubectlTimeout time.Duration `mapstructure:"kubectl-timeout"`
2726
Kubeconfig string `mapstructure:"kubeconfig"`
2827
KubeAPI string `mapstructure:"kube-api"`

subst/cmd/render.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ func addRenderFlags(flags *flag.FlagSet) {
4848
flags.StringSlice("ejson-key", []string{}, heredoc.Doc(`
4949
Specify EJSON Private key used for decryption.
5050
May be specified multiple times or separate values with commas`))
51-
flags.Bool("must-decrypt", false, heredoc.Doc(`
52-
Fail if not all ejson files can be decrypted`))
51+
flags.Bool("skip-decrypt", false, heredoc.Doc(`
52+
Skip decryption`))
5353
flags.String("env-regex", "^ARGOCD_ENV_.*$", heredoc.Doc(`
5454
Only expose environment variables that match the given regex`))
5555
flags.String("output", "yaml", heredoc.Doc(`

0 commit comments

Comments
 (0)