-
Notifications
You must be signed in to change notification settings - Fork 173
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 chart component inconsistent with Helm CLI deployment #1852
Comments
Also of note here - it appears to be something something specifically related to the
I am sensitive to the fact that it feels like a random Helm templating issue but I thought I'd report because I cannot reproduce similar issues outside of Zarf. |
Testing this a bit more, it seems like I am running into some sort of size boundary. I created this example repo with a simple helm chart that deploys the same local helm chart twice with the secret template of:
Using https://github.com/rjferguson21/zarf-secrets/blob/main/foo/files/works.json as my file, everything works. If I use https://github.com/rjferguson21/zarf-secrets/blob/main/foo/files/fails.json, the secret is created but does not contain the file contents. The difference between the two files:
I started with the original problem child (baby-yoda.json) and deleted sections until it started working and then created the two example files to illustrate that removing some arbitrary content seems to succeed. |
## Description This allows Zarf variables to be filepaths to be loaded on templating (without exceeding env var size limits) - similar to https://docs.gitlab.com/ee/ci/variables/#use-file-type-cicd-variables ## Related Issue Fixes #1372 Fixes #1852 ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [X] New feature (non-breaking change which adds functionality) - [ ] Other (security config, docs update, etc) ## Checklist before merging - [ ] Test, docs, adr added or updated as needed - [X] [Contributor Guide Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow) followed
Environment
Device and OS: Arch Linux
App version: 0.27.1
Kubernetes distro being used: k3d/k3s
Steps to reproduce
values.yaml
containing:zarf.yaml
that has a component using P1's Keycloak chart and thevalues.yaml
Expected result
The Keycloak chart will be deployed, creating the
keycloak-realm
secret in thekeycloak
namespace that contains the contents of this file in therealm.json
key.For comparison, I would expect the secret (and the rest of the Helm chart) to match a similarly configured Helm install using the same chart and values via this command:
Actual Result
The
keycloak-realm
secret is created but does not contain the file contents. Also of note, the Helm release as part of the the zarf package deploy succeeds but is does not actually deploy resources like the Keycloak StatefulSetVisual Proof (screenshots, videos, text, etc)
From the zarf deployed Keycloak component: (Nothing besides secrets)
From the Helm CLI deployed keycloak (notice the StatefulSet and Services)
Severity/Priority
Additional Context
I was working from the oft recommended
values.yaml
from https://repo1.dso.mil/big-bang/bigbang/-/blob/master/docs/assets/configs/example/keycloak-dev-values.yaml#L84-100 to take advantage of some of these files contained in the Helm chart for templating.The text was updated successfully, but these errors were encountered: