8000 Sensitive flag on file variable source errors out · Issue #1015 · kluctl/kluctl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Sensitive flag on file variable source errors out #1015

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kassah opened this issue Mar 15, 2024 · 0 comments · Fixed by #1016
Closed

Sensitive flag on file variable source errors out #1015

kassah opened this issue Mar 15, 2024 · 0 comments · Fixed by #1016

Comments

@kassah
Copy link
kassah commented Mar 15, 2024

Operating system

macOS 14.3.1 (23D60)

Kluctl Version

2.23.5

Kubernetes Version

v1.27.8-gke.1067004

kubectl Version

v1.29.0

Bug description

Adding sensitive: true to a file source of variables seems to cause issue

Steps to reproduce

Create a .kluctl.yml file of

discriminator: "app-{{ args.namespace }}"

args:
  - name: "namespace"
    default: "default"

deployment.yml of:

vars:
  - clusterObject:
      kind: Secret
      namespace: "{{ args.namespace }}"
      labels:
        myapp.com/kluctl: "helm-secrets"
      path: data
      list: true
    sensitive: true
    ignoreMissing: true
    targetPath: namespace.helm.secrets

overrideNamespace: "{{ args.namespace }}"

Assuming a valid kubectl context with an empty default namespace.

results in:

$ export KLUCTL_ARG_0=namespace=default
$ kluctl render --print-all
⚠ Failed to detect git project root. This might cause follow-up errors
✓ Loading kluctl project
✓ Initializing k8s client
✗ failed to load deployment config for /Users/myuser/Documents/Projects/Working/kluktl: failed to load deployment.yml: Key: 'VarsSource.self' Error:Field validation for 'self' failed on the 'more then one vars source type' tag

Relevant log output

Failed to detect git project root. This might cause follow-up errors
enter LoadKluctlProject
Loading kluctl project
Loading targets
Done loading targets
leave LoadKluctlProject
Initializing k8s client
failed to load deployment config for /Users/myuser/Documents/Projects/Working/kluktl: failed to load deployment.yml: Key: 'VarsSource.self' Error:Field validation for 'self' failed on the 'more then one vars source type' tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
0