Skip to content

Annotations and Labels without values are not detected #287

@chonton

Description

@chonton

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions