Context
Follow-up to #228. The PodCliqueSet webhook currently validates many aspects of the spec, but does not validate user-provided environment variables in the PodSpec.
Problem
Users can submit PodCliqueSet resources with:
- Invalid environment variable names that don't conform to Kubernetes standards
- Duplicate environment variable names within the same container
These issues aren't caught until runtime, potentially causing pod failures or unexpected behavior.
Proposed Solution
Extend the existing PCS validation webhook to validate environment variables in the PodSpec:
-
Name format validation: Ensure env var names follow Kubernetes naming conventions:
- Must consist of alphanumeric characters and underscores
- Must start with a letter or underscore
- Regex:
^[a-zA-Z_][a-zA-Z0-9_]*$
-
Duplicate detection: Check for duplicate environment variable names within each container's env list
Acceptance Criteria
Context
Follow-up to #228. The PodCliqueSet webhook currently validates many aspects of the spec, but does not validate user-provided environment variables in the PodSpec.
Problem
Users can submit PodCliqueSet resources with:
These issues aren't caught until runtime, potentially causing pod failures or unexpected behavior.
Proposed Solution
Extend the existing PCS validation webhook to validate environment variables in the PodSpec:
Name format validation: Ensure env var names follow Kubernetes naming conventions:
^[a-zA-Z_][a-zA-Z0-9_]*$Duplicate detection: Check for duplicate environment variable names within each container's env list
Acceptance Criteria