databus23 / helm-diff

A helm plugin that shows a diff explaining what a helm upgrade would change
Apache License 2.0
2.73k stars 280 forks source link

Provide `--username` and `--password` cli args #424

Open hstenzel opened 1 year ago

hstenzel commented 1 year ago

Currently, helm upgrade supports --repo, --username, and --password

$ helm upgrade --help | grep -e '--username ' -e '--password ' -e '--repo '
      --password string              chart repository password where to locate the requested chart
      --repo string                  chart repository url where to locate the requested chart
      --username string              chart repository username where to locate the requested chart

However, helm diff upgrade only supports --repo

$ helm diff upgrade --help | grep -e '--username ' -e '--password ' -e '--repo '
      --repo string                  specify the chart repository url to locate the requested chart

I'd like to be able to pass in the the credentials to the helm repo when using the --repo arg. While it's currently possible to achieve the same result by helm repo adding the the repo with user then changing the chart, this introduces config changes on the local system and causes the command usage to diverge.

Thanks in advance! Great project!

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

doggy-dev commented 3 months ago

Hello today I've run into the same issue. I'm using diff upgrade to compare a released chart from a repo that needs credentials. helm repo add did help in my use case. You need to add the repo with an alias (say "rpoName") and then do helm repo update. After this you can run helm diff releseName rpoName/chartName and don't have to provide any credentials because the chart is already downloaded.