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

Annotations and Labels without values are not detected #287

Open
chonton opened this issue Aug 23, 2024 · 0 comments · May be fixed by #288 or #291
Open

Annotations and Labels without values are not detected #287

chonton opened this issue Aug 23, 2024 · 0 comments · May be fixed by #288 or #291

Comments

@chonton
Copy link

chonton commented Aug 23, 2024

For the resource below, I expect kubeconfig to complain about annotation values being empty (or null)

apiVersion: v1
kind: ConfigMap
metadata:
  name: some-values
  labels:
    some.domain/some-key:
  annotations:
    some.domain/some-key:
data:
  application.yaml: |-
    endpoints:
      service: https://example.com

Unfortunately, the ObjectMeta schema does not encode all requirements (or the schema validation package cannot detect missing values). I suspect that kubeconform would need to separately validate these requirements:

Similar to #275, #286, and #240

chonton added a commit to chonton/kubeconform that referenced this issue Aug 29, 2024
@chonton chonton linked a pull request Aug 29, 2024 that will close this issue
chonton added a commit to chonton/kubeconform that referenced this issue Sep 25, 2024
chonton added a commit to chonton/kubeconform that referenced this issue Sep 25, 2024
chonton added a commit to chonton/kubeconform that referenced this issue Sep 25, 2024
chonton added a commit to chonton/kubeconform that referenced this issue Sep 25, 2024
chonton added a commit to chonton/kubeconform that referenced this issue Sep 25, 2024
@chonton chonton linked a pull request Sep 26, 2024 that will close this issue
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 a pull request may close this issue.

1 participant