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 detect invalid names (eg contain underscore) #235

Closed
wiquanAppD opened this issue Oct 12, 2023 · 1 comment
Closed

Comments

@wiquanAppD
Copy link

For instance:

apiVersion: v1
data:
  badname_withUnderscore.json: |-
    {
      "info": {
        "name": "DONTCARE"
      }
    }
kind: ConfigMap
metadata:
  name: badname_withUnderscore-t787c9ccbc
  namespace: foobly

Errror Message:

The ConfigMap "badname_withUnderscore-t787c9ccbc" is invalid: metadata.name: Invalid value: "badname_withUnderscore-t787c9ccbc": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
@wiquanAppD
Copy link
Author

Dup of 65

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