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

Make envFrom conditional to fix validation error #22

Merged
merged 3 commits into from
Sep 10, 2024

Conversation

Marcel-Jansen
Copy link
Contributor

We are using kubeconform for validating our Helm chart manifests. This validation fails on an empty envFrom array:

/spec/template/spec/containers/0/envFrom' does not validate with https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.30.3/deployment.json#/properties/spec/$ref/properties/template/$ref/properties/spec/$ref/properties/containers/items/$ref/properties/envFrom/type: expected array, but got null

This PR makes the envFrom conditional, which ensures that envFrom is not null and the deployment manifest is valid according to the Kubernetes schema.

@Marcel-Jansen Marcel-Jansen requested a review from a team as a code owner August 13, 2024 08:53
Copy link
Member

@azatsafin azatsafin left a comment

Choose a reason for hiding this comment

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

Thanks for your effort

@Haarolean Haarolean merged commit 125f930 into kafbat:main Sep 10, 2024
1 check passed
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.

4 participants