ansibleplaybookbundle / helm-bundle-base

Apache License 2.0
1 stars 5 forks source link

Handle charts whose index.yaml urls artifact name is not entry-name + '-' + version + '.tgz' #11

Open ron1 opened 5 years ago

ron1 commented 5 years ago

OKD 3.11 Service Catalog backed by ASB configured with the following Strimzi Helm registry adapter:

- type: helm
  name: helmstrimzi
  url: "http://strimzi.io/charts/"
  runner: "docker.io/automationbroker/helm-runner:latest"
  white_list: [.*]

cannot successfully Provision strimzi-kafka-operator 0.8.2 because the following Strimzi Helm registry adapter's index.yaml entry urls property has "-helm-chart" included in its artifact name:

urls:
- https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.8.2/strimzi-kafka-operator-helm-chart-0.8.2.tgz

Helm-bundle-base currently assumes that the index.yaml entry urls property artifact name is strictly composed of: entry-name + '-' + version + '.tgz', which in this case would be "strimzi-kafka-operator-0.8.2.tgz" with no extra "-helm-chart" embedded therein.