Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
Description
configmap:
apiVersion: v1 data: admissionController.filtering.generateUniqueAppId: "true" queues.yaml: | partitions: - name: default placementrules: - name: provided create: false - name: tag value: namespace create: true queues: - name: root submitacl: '*' kind: ConfigMap metadata: creationTimestamp: "2024-01-17T16:22:49Z" name: yunikorn-configs namespace: yunikorn resourceVersion: "20405" uid: 351326f1-760c-4600-906a-1986d91f17c4
sleep.yaml
apiVersion: v1 kind: Pod metadata: labels: app: sleep queue: "root.default" name: task1 spec: schedulerName: yunikorn restartPolicy: Never containers: - name: sleep-30s image: "alpine:latest" command: ["sleep", "30"] resources: requests: cpu: "100m" memory: "500M"
Execute
k create -f sleep.yaml
and get an error:
The Pod "task1" is invalid: metadata.labels: Invalid value: "default-": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')
Attachments
Issue Links
- duplicates
-
YUNIKORN-2369 Using unique generated Application IDs breaks scheduling
- Closed
- is caused by
-
YUNIKORN-2082 Make unique applicationIDs generated by YUNIKORN-1273 be reproducible
- Closed