-
Notifications
You must be signed in to change notification settings - Fork 75
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
Please include secret.data: example #41
Comments
we use it like this: flux2:
in flux2-sync:
|
I'm using ssh so mine needs to look like this:
this is the reason for the bug report, most people use ssh and not https, so we need a mutli line block |
When people argue with "most people", I am always interested in getting the link to a statistic or real evidence ;-) Beside that. I tried your approch and it works for me. values.yaml:
Results in:
Which can be decoded to:
So it works, I understand that you suggest an "examples" section, which would be a good idea. And we could start with the two examples mentioned here. |
Given that Flux v1 supported only SSH for years and Flux v2 |
@stefanprodan Thanks for the information. |
@dwerder you are correct, it works, though via the mechanism I'm executing helm, via terraform, it turns out I needed to wrap these particular values in an indent(6, KEY) function in order to get it to work properly. otherwise outside of terraform this works just as we've tested. Yes, it would be nice to have an example, although a piped multiline value is standard helm so technically we'd be doubling helm documentation, but it would be nice for a quick reference for people who don't want to go search through helm documentation, they could just refer to an example solution here in a commented out block in the values file |
Describe the bug a clear and concise description of what the bug is.
Please include a secret.data: {} example as I cannot get a secret to work. This is due to the fact that It doesn't appear that data: {} accepts a multi line string which is needed to accept an ssh private key, I don't believe json accepts multiline values. can this be changed to be more multi line string friendly?
What's your helm version?
latest stable
What's your kubectl version?
latest stable
What's the chart version?
latest stable
What happened?
json only accepts string
What you expected to happen?
I expect to be able to paste an ssh key in as a string in the value and have it work
How to reproduce it?
secret:
create: true
data: {"foo": "SSH KEY"}
Enter the changed values of values.yaml?
secret:
create: true
data: {} <-- this is the problem value
Enter the command that you execute and failing/misfunctioning.
i'm running via terraform via a helm_release resource but this is the same as the helm install command listed here
Anything else we need to know?
no
The text was updated successfully, but these errors were encountered: