-
Notifications
You must be signed in to change notification settings - Fork 334
NET-581 - Added vault namespace in helm #2841
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
Changes from all commits
bc79b0a
3ee878c
10ec942
9935a1b
4097b48
3f8c4f3
5339dd9
c734284
9e2f11d
9d2ba12
8cc2117
01f3e95
6917abb
ad710bf
fdd7cf1
d3e0323
7b3482b
532210d
fd469b6
7c870ea
cac8d3a
c4a0f8a
6c692df
d05f340
261f379
3d9c05c
228b423
ef1710d
0827f81
306632b
faec4c2
b1fd0fd
636208f
666331a
ffe4b1f
c8478a0
ecfff91
959431f
8f52b7c
1f3e23a
ed1026e
825fb42
b840d32
ed2573a
a47a3d8
8a7b8bd
3c4291c
4523282
af7e617
124cc4d
4be3cea
7c13074
d6da52e
5f6a200
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| ```release-note:improvement | ||
| vault: Adds `namespace` to `secretsBackend.vault.connectCA` in Helm chart and annotation: "vault.hashicorp.com/namespace: namespace" to | ||
| secretsBackend.vault.agentAnnotations, if "vault.hashicorp.com/namespace" annotation is not present. | ||
| This provides a more convenient way to specify the Vault namespace than nested JSON in `connectCA.additionalConfig`. | ||
| ``` | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -72,6 +72,9 @@ data: | |||||||||||||||||||
| "ca_file": "/consul/vault-ca/tls.crt", | ||||||||||||||||||||
| {{- end }} | ||||||||||||||||||||
| "intermediate_pki_path": "{{ .connectCA.intermediatePKIPath }}", | ||||||||||||||||||||
| {{- if (and (.vaultNamespace) (not (contains "namespace" (default "" .connectCA.additionalConfig)))) }} | ||||||||||||||||||||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. json structure is like this https://github.com/hashicorp/consul-k8s/pull/2841/files#diff-73787600ab1d7b64c9a865fad8d8520d230644c998b3bf9b5670ffdb8900bb2eR713.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @absolutelightning good catch, my example was off - but I think this is still possible, see this updated version. From the link above, if you use: does that work?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
consul-k8s/charts/consul/values.yaml Lines 234 to 242 in 8f52b7c
its inside json array.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @absolutelightning ah, I'm sorry - that was unintuitive to me and I missed the This looks overly complicated to detect in Helm template syntax even w/ the cc @thisisnotashwin in case you have any other thoughts, since we discussed this before.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is good! JSON parsing is a pain 😞
💯 |
||||||||||||||||||||
| "namespace": "{{ .vaultNamespace }}", | ||||||||||||||||||||
| {{- end }} | ||||||||||||||||||||
| "root_pki_path": "{{ .connectCA.rootPKIPath }}", | ||||||||||||||||||||
| "auth_method": { | ||||||||||||||||||||
| "type": "kubernetes", | ||||||||||||||||||||
|
|
||||||||||||||||||||

Uh oh!
There was an error while loading. Please reload this page.