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

job envs are failing and should be allowed from valuesFrom.secretKeyRef or valuesFrom.configMapKeyRef #297

Open
drduker opened this issue Oct 15, 2024 · 0 comments

Comments

@drduker
Copy link

drduker commented Oct 15, 2024

job envs are failing and should be allowed from valuesFrom.secretKeyRef or valuesFrom.configMapKeyRef

stdin - Job examplejob is invalid: problem validating schema. Check JSON formatting: jsonschema: '/spec/template/spec/containers/0/env/6' does not validate with https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master-standalone-strict/job-batch-v1.json#/properties/spec/properties/template/properties/spec/properties/containers/items/properties/env/items/additionalProperties: additionalProperties 'secretKeyRef' not allowed

    env:
      - name: example
        value: DBAdmin
      - name: SPRING_DATASOURCE_PASSWORD
        valueFrom:
          secretKeyRef:
            name: example
            key: APP_DB_PASS
      - name: SPECIAL_LEVEL_KEY
        valueFrom:
          configMapKeyRef:
            name: special-config
            key: SPECIAL_LEVEL
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

No branches or pull requests

1 participant