-
Notifications
You must be signed in to change notification settings - Fork 4
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
base: main
Are you sure you want to change the base?
Conversation
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"; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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}")
There was a problem hiding this comment.
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?
There was a problem hiding this 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.
helm lint
andkubeconform
in parallel to speed up executionextraEnv
value in thegeneric-govuk-app
andasset-manager
charts was a map by default instead of a listResolves alphagov/govuk-infrastructure#1713