Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-26915

Helm nginx.ingress.kubernetes.io/configuration-snippet annotation contains invalid word \

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Not a Bug
    • Affects Version/s: 7.35.0
    • Fix Version/s: None
    • Component/s: Artifactory, Helm
    • Labels:
    • Environment:

      Running on AWS EKS v1.21

      ❯ helm version
      version.BuildInfo{Version:"v3.6.3", GitCommit:"d506314abfb5d21419df8c7e7e68012379db2354", GitTreeState:"dirty", GoVersion:"go1.16.6"}

    • Severity:
      High
    • Location:
      External

      Description

      I am following the Helm Advanced Options:
      https://www.jfrog.com/confluence/display/JFROG/Helm+Charts+for+Advanced+Users#HelmChartsforAdvancedUsers-ArtifactoryAdvancedOptions

      and under "Using Ingress Annotations", this annotation is giving me helm error: 

      nginx.ingress.kubernetes.io/configuration-snippet: |      
          rewrite ^/(v2)/token /artifactory/api/docker/null/v2/token;
          rewrite ^/(v2)/([^\/]*)/(.*) /artifactory/api/docker/$2/$1/$3;

      I get error:

      helm upgrade artifactory --namespace artifactory jfrog/artifactory -f values.yaml
      Error: UPGRADE FAILED: cannot patch "artifactory" with kind Ingress: admission webhook "validate.nginx.ingress.kubernetes.io" denied the request: nginx.ingress.kubernetes.io/configuration-snippet annotation contains invalid word \
      

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              olegabsci Oleg Yamin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-26925 -
                  SYNCHRONIZED
                  • Last Sync Date: