-
Notifications
You must be signed in to change notification settings - Fork 674
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
[Housekeeping] Add kubeconform check to validate generated manifests in CI #4973
Comments
🤖 Adding a
To integrate Here is an example of how you might add such a step: - name: Validate generated manifests with kubeconform
working-directory: charts
run: |
# Install kubeconform
curl -sL https://github.com/yannh/kubeconform/releases/download/v0.4.12/kubeconform-linux-amd64 -o kubeconform
chmod +x kubeconform
# Generate Kubernetes manifests from Helm chart
helm template ${{ matrix.chart }} --output-dir ./manifests
# Validate manifests under 'deployment' and 'docker/sandbox-bundled/manifests'
./kubeconform -summary -strict ./manifests/deployment
./kubeconform -summary -strict ./manifests/docker/sandbox-bundled/manifests This example assumes that the generated manifests are placed under Adding this validation step can significantly improve the reliability and correctness of the Kubernetes manifests produced by your Helm charts, catching potential issues early in the CI process. For more information about Sources
|
I'm not sure if we have to check the manifests generated via |
@lowc1012 Feel free to open a PR. |
#take |
Motivation: Why do you think this is important?
Once we modify helm charts and execute
make helm
, this command just generates/updates k8s manifests & helm docs.These manifests may not have been validated against the schema for Kubernetes.
Kubeconform is a Kubernetes manifest validator; it takes all the manifests and validates them against the schema from the Kubernetes repository.
Goal: What should the final outcome look like, ideally?
Add
kubeconform
check in helm-charts.yaml github action wf. At least we should have to validate all manifests underdeployment
anddocker/sandbox-bundled/manifests
when we want to modify them.Describe alternatives you've considered
First, we can check if
make helm
is executed once PR includes changes to charts. Second, we validate manifests underdeployment
anddocker/sandbox-bundled/manifests
.Propose: Link/Inline OR Additional context
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: