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

Run kubeconform against rendered Helm charts #2996

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

samsimpson1
Copy link
Member

  • run kubeconform against rendered Helm charts
  • run helm lint and kubeconform in parallel to speed up execution
    • charts are rendered once then passed to the jobs that need them via an artifact
  • fix an issue where the extraEnv value in the generic-govuk-app and asset-manager charts was a map by default instead of a list

Resolves alphagov/govuk-infrastructure#1713

@samsimpson1 samsimpson1 requested a review from a team February 18, 2025 13:17
@jasonBirchall jasonBirchall self-requested a review February 21, 2025 15:06
echo "helm lint for app ${app} with chart ${chart_name}"
helm lint --quiet -f "${app}" "raw-charts/${chart_name}";
if [ $? -ne 0 ]; then
echo "$output";
Copy link
Contributor

Choose a reason for hiding this comment

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

I can't see where output is initialised?

Copy link
Contributor

Choose a reason for hiding this comment

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

Should it be:

output=$(helm lint --quiet -f "${app}" "raw-charts/${chart_name}")

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, what does helm lint do that ct isn't already doing?

Copy link
Contributor

@jasonBirchall jasonBirchall left a comment

Choose a reason for hiding this comment

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

Small error on the output variable, but otherwise it looks good.

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.

Run kubeconform against rendered Helm charts
2 participants