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

Kubeconform does not report when "metadata.name" is missing #286

Open
yogeek opened this issue Aug 23, 2024 · 0 comments
Open

Kubeconform does not report when "metadata.name" is missing #286

yogeek opened this issue Aug 23, 2024 · 0 comments

Comments

@yogeek
Copy link

yogeek commented Aug 23, 2024

cat <<EOF | kubeconform -
apiVersion: v1
kind: Pod
metadata:
  names: myapp  # <====== "names" instead of "name"
  labels:
    name: myapp
spec:
  containers:
  - name: myapp
    image: <Image>
EOF
# !!! no error !!!

Even if I remove the "name" field entirely, no error in kubeconform...

cat <<EOF | kubeconform -
apiVersion: v1
kind: Pod
metadata:
  # no name field !!!
  labels:
    name: myapp
spec:
  containers:
  - name: myapp
    image: <Image>
EOF
# !!! no error !!!

Tested with kubeconform 0.6.6 and 0.6.7 (installed with devbox)

chonton added a commit to chonton/kubeconform that referenced this issue Aug 29, 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 added a commit to chonton/kubeconform that referenced this issue Sep 25, 2024
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