Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-2332

admissionController.filtering.generateUniqueAppId not work as expected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • 1.5.0
    • shim - kubernetes
    • 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

          Activity

            People

              brandboat Kuan Po Tseng
              brandboat Kuan Po Tseng
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: