Describe the bug
The restrictions on keys are too strict. Secret keys do not need to conform to dns rules. Secrets are often used to mount environment variables which when done correctly 100% of the characters break the restrictions. e.g.
MY_ENV_VARIABLE
(upper case and underscores)
To Reproduce
Steps to reproduce the behavior:
Try to set the key of a secret to a value with upper case letters or underscores.
Describe the bug The restrictions on keys are too strict. Secret keys do not need to conform to dns rules. Secrets are often used to mount environment variables which when done correctly 100% of the characters break the restrictions. e.g.
MY_ENV_VARIABLE (upper case and underscores)
To Reproduce Steps to reproduce the behavior: Try to set the key of a secret to a value with upper case letters or underscores.
Expected behavior uppercase and underscores should be allowed. https://kubernetes.io/docs/concepts/configuration/secret/#restriction-names-data