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

Minor template fixes #2735

Merged
merged 6 commits into from
Nov 9, 2023
Merged

Conversation

chipzoller
Copy link
Collaborator

What does this PR change?

Makes minor adjustments to templates to fix invalid outputs addressing things like null/empty string fields, empty structs, or resources which are (basically) empty. These fixes make it so that the fully rendered output is conformant for Kubernetes linters. Two of the most visible changes:

  1. Role and RoleBinding for Grafana will not be created when PSP is not in use.
  2. UTC_OFFSET now has a value of +00:00 (adopted from EKS values) whereas previously the env var was set with an empty value.

Does this PR rely on any other PRs?

No

How does this PR impact users? (This is the kind of thing that goes in release notes!)

No user impact

Links to Issues or tickets this PR addresses or fixes

What risks are associated with merging this PR? What is required to fully test this PR?

Change has an unintended consequence.

How was this PR tested?

Templated locally for each change.

Have you made an update to documentation? If so, please provide the corresponding PR.

@thomasvn
Copy link
Member

thomasvn commented Nov 8, 2023

@chipzoller Thanks for these improvements! Was there a tool you used to spot these issues?

@chipzoller
Copy link
Collaborator Author

Some of them I find when templating the chart and piping the resulting YAML into VS Code to be validated by the K8s extension, and some are just old-fashion eagle eyes.

@chipzoller chipzoller merged commit 9eb62f9 into kubecost:develop Nov 9, 2023
@chipzoller chipzoller deleted the template-fixes branch November 9, 2023 14:37
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.

2 participants