Uploaded image for project: 'ONAP Operations Manager'
  1. ONAP Operations Manager
  2. OOM-2763

Missing entry in .helmignore causes big help packages

XMLWordPrintable

    • Hide

      When helm packages are created, all files in the charts directory are included in the package as long as they are not specified in the .helmignore file.
      In OOM the subchart definitions are defined under the directories "components".
      After compilation the result charts are created under the "charts" directories and the "components" directories are obsolete.
      Therefor the "components" directory should be added to the .helmignore file.
      This is currently done only is a few chart-directories:

      ag@ag-dev:~/git/onap/oom/kubernetes$ grep components */.helmignore
      aaf/.helmignore:components/
      contrib/.helmignore:components/
      cps/.helmignore:components/
      dcaegen2/.helmignore:components/
      dcaemod/.helmignore:components/
      dmaap/.helmignore:components/
      oof/.helmignore:components/
      platform/.helmignore:components/
      policy/.helmignore:components/
      portal/.helmignore:components/
      sdc/.helmignore:components/
      sdnc/.helmignore:components/
      so/.helmignore:components/
      

      So for all other charts (e.g. CDS, AAI,...) the .helmignore has to be updated.

      <!-- Thank you for creating a Bug on OOM. -->
      <!-- remove all lines by doing what's expected and not expected when started by <!-- -->
      <!-- Please fill the following template so we can efficiently move on: -->

      SUMMARY

      <!--- Explain the problem briefly below -->

      OS / ENVIRONMENT

      • Kubernetes version:
        <!-- output of `kubernetes version` -->
      • Helm version:
        <!-- output of `helm version` -->
      • Kubernetes mode of installation:
        <!-- add also configuration file if relevant -->
        <!-- please run:
        docker run -e DEPLOY_SCENARIO=k8s-test \
        -v <the kube config>:/root/.kube/config \
        opnfv/functest-kubernetes-healthcheck:latest
        -->
        <!-- and upload the result directory as a zip file -->
      • CNI Used for Kubernetes:
      • type of installation: <!-- number of control, number of nodes -->

      OOM VERSION

      <!--- which branch / tag did you use -->

      CONFIGURATION

      <!-- please paste or upload override file used -->

      STEPS TO REPRODUCE

      <!-- please show line used to create helm charts -->
      <!-- please show line used to deploy ONAP -->
      <!-- add any necessary relevant command done -->

      EXPECTED RESULTS

      <!--- Describe what you expected to happen when running the steps above -->

      ACTUAL RESULTS

      <!--- Describe what actually happened. -->
      <!-- please run: docker run -v <the kube config>:/root/.kube/config -v \
      <result directory>:/var/lib/xtesting/results \ registry.gitlab.com/orange-opensource/lfn/onap/integration/xtesting/infra-healthcheck:latest
      -->
      <!-- and upload the result directory as a zip file -->
      <!-- cd where/your/oom/install is -->
      <!-- launch healthchecks: ./kubernetes/robot/ete-k8s.sh YOUR_DEPLOYMENT_NAME health -->
      <!-- and upload the result directory as a zip file -->
      <!-- it should be /dockerdata-nfs/onap/robot/logs/0000_ete_health/ (0000 must be the biggest number) -->

      Show
      When helm packages are created, all files in the charts directory are included in the package as long as they are not specified in the .helmignore file. In OOM the subchart definitions are defined under the directories "components". After compilation the result charts are created under the "charts" directories and the "components" directories are obsolete. Therefor the "components" directory should be added to the .helmignore file. This is currently done only is a few chart-directories: ag@ag-dev:~/git/onap/oom/kubernetes$ grep components */.helmignore aaf/.helmignore:components/ contrib/.helmignore:components/ cps/.helmignore:components/ dcaegen2/.helmignore:components/ dcaemod/.helmignore:components/ dmaap/.helmignore:components/ oof/.helmignore:components/ platform/.helmignore:components/ policy/.helmignore:components/ portal/.helmignore:components/ sdc/.helmignore:components/ sdnc/.helmignore:components/ so/.helmignore:components/ So for all other charts (e.g. CDS, AAI,...) the .helmignore has to be updated. <!-- Thank you for creating a Bug on OOM. --> <!-- remove all lines by doing what's expected and not expected when started by <!-- --> <!-- Please fill the following template so we can efficiently move on: --> SUMMARY <!--- Explain the problem briefly below --> OS / ENVIRONMENT Kubernetes version: <!-- output of `kubernetes version` --> Helm version: <!-- output of `helm version` --> Kubernetes mode of installation: <!-- add also configuration file if relevant --> <!-- please run: docker run -e DEPLOY_SCENARIO=k8s-test \ -v <the kube config>:/root/.kube/config \ opnfv/functest-kubernetes-healthcheck:latest --> <!-- and upload the result directory as a zip file --> CNI Used for Kubernetes: type of installation: <!-- number of control, number of nodes --> OOM VERSION <!--- which branch / tag did you use --> CONFIGURATION <!-- please paste or upload override file used --> STEPS TO REPRODUCE <!-- please show line used to create helm charts --> <!-- please show line used to deploy ONAP --> <!-- add any necessary relevant command done --> EXPECTED RESULTS <!--- Describe what you expected to happen when running the steps above --> ACTUAL RESULTS <!--- Describe what actually happened. --> <!-- please run: docker run -v <the kube config>:/root/.kube/config -v \ <result directory>:/var/lib/xtesting/results \ registry.gitlab.com/orange-opensource/lfn/onap/integration/xtesting/infra-healthcheck:latest --> <!-- and upload the result directory as a zip file --> <!-- cd where/your/oom/install is --> <!-- launch healthchecks: ./kubernetes/robot/ete-k8s.sh YOUR_DEPLOYMENT_NAME health --> <!-- and upload the result directory as a zip file --> <!-- it should be /dockerdata-nfs/onap/robot/logs/0000_ete_health/ (0000 must be the biggest number) -->

          andreasgeissler Andreas Geissler
          andreasgeissler Andreas Geissler
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

            Created:
            Updated:
            Resolved: