-
Notifications
You must be signed in to change notification settings - Fork 225
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
[BUG] Invalid value for resources
results in misleading error message.
#591
Comments
I faced the same problem (using version 0.6.4 - currently latest). Here is a more minimalist way to reproduce it.
Result:
You can fix the warning by changing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System info:
Describe the bug
We are using Terraform provider to deploy our charts. This allows us to provide some values at deployment time (usually infrastructure resources IDs etc.). Recently we've added alerts for pods resource consumption. To be DRY we've moved real values for
resources
to Terraform files from which they can be used for chart deployments and as alerts thresholds. To be able to template chart we still needed to have some values inresources
so we've used"DEPLOY_TIME_VARIABLE"
like we do for other deployment time values. After this change kube-linter is failing with error message:.../my-service/templates/service.yaml: (object: <no namespace>/my-service-api-svc /v1, Kind=Service) no pods found matching service labels (map[app:myservice]) (check: dangling-service, remediation: Confirm that your service's selector correctly matches the labels on one of your deployments.)
which seems to be not valid as the only change that was done was to values of theresources
.From:
to:
Sample YAML input
Expected behavior
resources
including placeholders and only warn user if it cannot check if the value seems to be reasonable but it should not count it as error.The text was updated successfully, but these errors were encountered: