CircleCI-Public / helm-orb

A CircleCI Orb to simplify deployments to Kubernetes using Helm.
MIT License
11 stars 25 forks source link

Allow to add external repositories #46

Closed arvid-m closed 1 year ago

arvid-m commented 2 years ago

What would you like to be added

Possibility to add an external repository. Something like:


jobs:
  install-helm-chart:
    executor: aws-eks/python
    parameters:
      cluster-name:
        description: Cluster name
        type: string
    steps:
      - aws-eks/update-kubeconfig-with-authenticator:
          cluster-name: << parameters.cluster-name >>
      - helm/add-helm-repository: # Just a suggestion
          name: grafana
          url: https://grafana.github.io/helm-charts
      - helm/install-helm-chart:
          chart: grafana/grafana
          helm-version: v3.2.4
          release-name: grafana-release
orbs:
  aws-eks: circleci/aws-eks@0.2
  helm: circleci/helm@1.0
version: 2.1
workflows:
  deployment:
    jobs:
      - aws-eks/create-cluster:
          cluster-name: test-cluster
      - install-helm-chart:
          cluster-name: test-cluster
          requires:
            - aws-eks/create-cluster

Why is this needed

Since the stable repo is far beyond deprecation, it would be great with a command that could add and update a repository.

I'd be happy help out if this is something that should be implemented. 🙂

brivu commented 1 year ago

Hey @arvid-m,

I am working on making updates to this repository right now. Do you have any documentation on or give me some more examples on how is command would be useful?

Thanks! Brian

brivu commented 1 year ago

Hey @arvid-m,

After taking a closer look at this, you're able to add a repository url in the upgrade_helm_chart command using the add_repo parameter. If one is provided, the helm repo add and helm repo update commands are run.

If that doesn't match your use case, please feel free to reopen this issue and let me know.

-Brian