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

configure_app for helm apps is not correct

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Beijing Release
    • None
    • None
    • None
    • OOM Sprint 8, OOM Sprint 10 - Integration

       

      configure_app() {
       # if previous configuration exists put back original template file
       for file in $3/*.yaml; do
       if [ -e "$file-template" ]; then
       mv "$file-template" "${file%}"
       fi
       done

      $file_template is not defined before this use, the above if never runs. 

      find $3 -type f -exec sed -i -- "s/onap-/$1-/g" {} \;

      1) Above line has no meaning if you are using helm charts, all the runtime values are in values.yaml and that's where sed should run. 

      2) replace string should be of format

      "s/onap-/$1-$2-/g"

            mkhinda mkhinda
            vengo vengo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: