Skip to content

Add escape hatch for extra manifests + support for env vars from secrets#35

Merged
anna-yn merged 7 commits intotryretool:mainfrom
the-nando:main
Jan 20, 2022
Merged

Add escape hatch for extra manifests + support for env vars from secrets#35
anna-yn merged 7 commits intotryretool:mainfrom
the-nando:main

Conversation

@the-nando
Copy link
Contributor

Fixes #34

@the-nando the-nando changed the title Add escape hatch for extra manifests Add escape hatch for extra manifests + support for env vars from secrets Dec 3, 2021
secretKeyRef:
name: {{ .secretKeyRef.name }}
key: {{ .secretKeyRef.key }}
{{- end }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I typically see this handled with just a singmple toYaml:

          env:
            {{- toYaml .Values.application.environment | nindent 12 }}

It would be a backwards-incompatible change, but then this chart would instantly handle all the current and future complexity of env var descriptions. Not sure how the maintainers would feel about that, though. I want this feature far more than I want this feature to be perfect. :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeaa I agree the single toYaml is much nicer, but we need to think more about breaking changes 😬 let's get your changes landed first!

@MischaWeerwag
Copy link

We really need this for our gitops workflow too.

Copy link
Contributor

@anna-yn anna-yn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just 1 nit, thank you so much for the PR ❤️

@the-nando
Copy link
Contributor Author

@anna-yn it should be good to go now. If you prefer bumping only the minor version of the chart (4.6.1 -> 4.6.2) instead of releasing 4.7.0, let me know and I'll update it accordingly

@anna-yn
Copy link
Contributor

anna-yn commented Jan 20, 2022

@anna-yn it should be good to go now. If you prefer bumping only the minor version of the chart (4.6.1 -> 4.6.2) instead of releasing 4.7.0, let me know and I'll update it accordingly

I think 4.7.0 is fine, there's something else we need to land soon, we'll just lump them into one minor release

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

Successfully merging this pull request may close these issues.

Add escape hatch for extra manifests and support for environment variables from secrets

4 participants