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

Helm multi-line string via --set #72

Open
tamalsaha opened this issue Oct 7, 2022 · 1 comment
Open

Helm multi-line string via --set #72

tamalsaha opened this issue Oct 7, 2022 · 1 comment

Comments

@tamalsaha
Copy link
Contributor

tamalsaha commented Oct 7, 2022

MULTILINE_VALUE=$(cat <<EOF
-----BEGIN CERTIFICATE-----
MIIEWjCCA0KgAwIBAgIIPhrdhktSYHswDQYJKoZIhvcNAQELBQAwJTEWMBQGA1UE
ChMNQXBwc0NvZGUgSW5jLjELMAkGA1UEAxMCY2EwHhcNMjIxMDA2MTAzNzExWhcN
MjIxMTA1MTAzNzExWjCCARgxDzANBgNVBAYTBmt1YmVkYjETMBEGA1UECBMKZW50
ZXJwcmlzZTGBpDAXBgNVBAoTEGt1YmVkYi1jb21tdW5pdHkwFwYDVQQKExBrdWJl
ZGItZXh0LXN0YXNoMBgGA1UEChMRa3ViZWRiLWF1dG9zY2FsZXIwGAYDVQQKExFr
dWJlZGItZW50ZXJwcmlzZTAcBgNVBAoTFXBhbm9wdGljb24tZW50ZXJwcmlzZTAe
BgNVBAoTF2t1YmVkYi1tb25pdG9yaW5nLWFnZW50MRowGAYDVQQLExFrdWJlZGIt
ZW50ZXJwcmlzZTEtMCsGA1UEAxMkMDZiOTEyNDAtNGRhZC00YmZlLWEyMDQtMTAy
NzU2MWI5NzVkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtAsMb+nc
oMNSTNkqTv/Sv5g4AHF0L+iv9D3lDlmYtl3GZy0OA1rkdoWYtBSX5cexkO9tBpfU
PjyNX9brDzwejRj/IPJSl4aqZzTY3macChhD5hadQ79Xe+O9DdmrtSWrSL381/N8
xZM4FzSy0IN21sudo73So1wn9nnv5kb4kHJ3ouRT3QV7VZK8gVFYu4VTbc7ylwwc
APJ/oJ3h7HDpgqJmrZuDXBWKVEQZ7kcjQ/GOry+oEHXd6/nTLtt1BForzzG7dcxO
cem8zYTPTpOO+Cz7P8lhYlykdbZy/7GFTvkeIF+kTH4uebMhDwoZI+dbwdIvzNmr
REsGLnjd8aD9QQIDAQABo4GYMIGVMA4GA1UdDwEB/wQEAwIFoDATBgNVHSUEDDAK
BggrBgEFBQcDAjBuBgNVHREEZzBlgiQwNmI5MTI0MC00ZGFkLTRiZmUtYTIwNC0x
MDI3NTYxYjk3NWSBKVB1bGFrIEthbnRpIEJob3dtaWNrIDxwdWxha0BhcHBzY29k
ZS5jb20+gRJwdWxha0BhcHBzY29kZS5jb20wDQYJKoZIhvcNAQELBQADggEBAEQw
YEM6itrYb93z8yjyN+mSgd4knW72pbzSxnvAB5xI7UdwEnXWHSRrdFgF0z/vA0bU
2cE3F3T1NgdJtXAVCbXY1q7Pm2tFozwrfGrmAfJeP61TtUJCPETze8prNMKEzMoH
sCJpjWlJaRnPfiqRQDvx+oBsiGufDhIdzUYEK4cJ9I6Fetd8z1lVbDB7B0yST8vo
2FYaC/zMhZaHzHyoaakHZ301l0FJbADC4A56RoxxogiqpIPYLnt0G5YKwVh5NRiE
w8MIH53PIthIruRlJew3y+lP03s5lBrInHX594waSKyaSTTQOFEorSYJLdbxkxZj
bCkjhaDP9GKyo1/1jS8=
-----END CERTIFICATE-----
EOF
)
helm upgrade -i hello charts/hello --set-file credfile=./charts/lic.txt --set creds="$MULTILINE_VALUE"

k view-secret hello-cred --all
@tamalsaha
Copy link
Contributor Author

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