Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-24959

Cannot upgrade to EAP 8 Helm Chart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • None
    • 8.0.0.GA
    • Documentation, HelmChart
    • None
    • False
    • None
    • False
    • Documentation (Ref Guide, User Guide, etc.), Release Notes
    • +
    • Hide

      1) Add jboss-eap Helm Chart Repository

      helm repo add jboss-eap https://jbossas.github.io/eap-charts/
      

      2) Create helloworld helm release via:

      helm install helloworld -f https://raw.githubusercontent.com/jbossas/eap-charts/eap8-dev/examples/helloworld/helm.yaml jboss-eap/eap8

      4) Wait for the application to be successfully deployed

      5) Clone the latest EAP 8 Helm Charts (https://github.com/jbossas/eap-charts.git) and checkout to eap8-dev branch.

      6) Try to perform helm upgrade via

      helm upgrade helloworld <path_to_local_helm_chart_directory>
      

      7) Observe the error output

      Show
      1) Add jboss-eap Helm Chart Repository helm repo add jboss-eap https: //jbossas.github.io/eap-charts/ 2) Create helloworld helm release via: helm install helloworld -f https: //raw.githubusercontent.com/jbossas/eap-charts/eap8-dev/examples/helloworld/helm.yaml jboss-eap/eap8 4) Wait for the application to be successfully deployed 5) Clone the latest EAP 8 Helm Charts ( https://github.com/jbossas/eap-charts.git) and checkout to eap8-dev branch. 6) Try to perform helm upgrade via helm upgrade helloworld <path_to_local_helm_chart_directory> 7) Observe the error output

      When trying to upgrade to the latest EAP 8 chart, the user is greeted with following error

      UPGRADE FAILED: cannot patch "<helm-release-name>" with kind Deployment: Deployment.apps "<helm-release-name>" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"<helm-release-name>", "app.kubernetes.io/name":"<helm-release-name>"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable 

              eameh1@redhat.com Emmanuel Ameh
              rhn-engineering-spriadka Simon Priadka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: