Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

helm secrets triggering increase in history over 1Meg etc limit #161

Open
diepes opened this issue Jul 7, 2020 · 4 comments
Open

helm secrets triggering increase in history over 1Meg etc limit #161

diepes opened this issue Jul 7, 2020 · 4 comments

Comments

@diepes
Copy link

diepes commented Jul 7, 2020

Error: UPGRADE FAILED: create: failed to create: Secret "sh.helm.release.v1.xxx-dev.v3360" is invalid: data: Too long: must have at most 1048576 characters

I think this is triggered because helm saves all the files in the chart dir to the history.
with helm secrets upgrade, the secrets.yaml and the secrets.yaml.dec end up in the history.

Am i correct that i can solve this by adding secrets.yaml to my .helmignore file ?

@diepes
Copy link
Author

diepes commented Jul 7, 2020

I added to my .helmignore the following and it resolved the issue.
#no need to save secrets.yaml and secrets.yaml.dec in helm history
secrets.yaml
//*/secrets.yam

Would this break anything if we plan to roll back to older helm deployment ?
Should the secrets plugin filter out one of secrets.yaml from the helm history ?

@kaarolch
Copy link
Contributor

kaarolch commented Jul 8, 2020

@diepes I think this issue that you have is connected with old issue helm/helm#1413 now moved to helm/helm#8281. How big are your configmaps?

@diepes
Copy link
Author

diepes commented Jul 22, 2020

@kaarolch They went over the 1meg limit, currently with the secrets.yaml excluded back down to 700kb.

$ kubectl get secrets sh.helm.release.v1.xxxx-dev.v108  -o yaml | wc
     18      33  771221

I logged the issue under helm-secrets, as by default when adding a sops encrypted secrets.yaml to your helm template, it seems helm secrets, includes both the encrypted secrets.yaml and the secrets.yaml.dec in the history.

@jkroepke
Copy link
Contributor

jkroepke commented Aug 17, 2020

@diepes Whats your path of secret.yaml?

I can't see my encrypted files via helm get values nor helm get manifest

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants