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

If env variables type validation fails, mlp error is not understandable #27

Open
davidebianchi opened this issue May 12, 2022 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@davidebianchi
Copy link
Member

Describe the bug
When deploy a Deployment resource with env var not set to string, the error is not clear: unrecognized type: string

Expected behavior
I expect a more clear error on how to fix the resource, or at least the kind and name or the file path of the resource which has the problem.

To Reproduce
Steps to reproduce the behavior:

Try to deply a resource like:

apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: test-case
spec:
  concurrencyPolicy: Forbid
  successfulJobsHistoryLimit: 3
  failedJobsHistoryLimit: 1
  schedule: '*/5 * * * *'
  jobTemplate:
    spec:
      backoffLimit: 1
      template:
        metadata:
          name: test-case
        spec:
          containers:
            - name: test-case
              image: busybox
              env:
                - name: SOME_ENV
                  value: 50
          restartPolicy: Never
@davidebianchi davidebianchi added needs triage This issue or pull request needs to be categorized bug Something isn't working enhancement New feature or request and removed needs triage This issue or pull request needs to be categorized labels May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant