Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-5901

Pod launch fails when user name has special char.

    XMLWordPrintableJSON

Details

    Description

      K8S labels has specific requirement to name labels which can be found here
      https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set

      if Using external auth like Shiro with OIDC or JWT where principal is name / or username or email it can have special chars which then does not allow pod to launch.

       

      io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://172.20.0.1/api/v1/namespaces/dbdwf06018702/pods. Message: Pod "jdbc-nrgtbo" is invalid: metadata.labels: Invalid value: "Firstname Lastname": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character ... 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jeetparmar Jeet
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: