Skip to content
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

ERROR: 'Namespace' object has no attribute 'environment' #59

Open
shkpk opened this issue May 23, 2023 · 0 comments
Open

ERROR: 'Namespace' object has no attribute 'environment' #59

shkpk opened this issue May 23, 2023 · 0 comments

Comments

@shkpk
Copy link

shkpk commented May 23, 2023

Describe the bug

helm vault commands returns error

ERROR: 'Namespace' object has no attribute 'environment'

To Reproduce

Create a value.yaml files with following

# Sample values.yaml.template
auth:
  adminUser: VAULT:/kv/webapp/login
  adminPassword: VAULT:/kv/webapp/password
externalDatabase:
  user: VAULT:/kv/webapp/dbuser
  database: VAULT:/kv/webapp/dbname
  password: VAULT:/kv/webapp/dbpass

you should have secrets at this location in vault
then run

export VAULT_ADDR="https://vault.internal.com/" && export VAULT_NAMESPACE="test" && export VAULT_TOKEN="xxxxxxxxx"
helm vault template ../../helm-chart-0.0.1.tgz --name test-chart --namespace test-chart -f values.yaml

or run

helm vault lint test-chart -f values.yaml

This returns error

# helm vault template ../../helm-chart-0.0.1.tgz --name test-chart --namespace test-chart -f values.yaml
ERROR: 'Namespace' object has no attribute 'environment'
# helm vault lint test-chart -f values.yaml
ERROR: 'Namespace' object has no attribute 'environment'

Expected behavior

Should get secrets from vault and install helm chart.

Environment:

  • OS: Redhat 8.5
  • Python Version= 3.7.16
  • Vault Version= Vault 1.11.5+ent
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

No branches or pull requests

1 participant