sonatype-nexus-community / helm-nexus-push

A plugin for helm that will push a chart to a Nexus Hosted Repository
Apache License 2.0
43 stars 47 forks source link

How to push to sub-folder in Helm repo? #27

Open alan-czajkowski opened 2 years ago

alan-czajkowski commented 2 years ago

What are you trying to do?

XDavidT commented 1 year ago

Why did you do that? helm chart is an independent package, and no need to have something inside. You can make a root folder, let's say "monitoring" and push under this one just add /

alan-czajkowski commented 1 year ago

@XDavidT I have 2 teams, both want to name their application the same name "my-awesome-ui"

Team A has 2 applications:

Team B has 2 applications:

when I publish the Helm chart for my-awesome-ui for Team A, and then for Team B, the chart will get clobbered

I need some kind of mechanism inside of the Helm repo to "scope" the packages, using a sub-folder in the repo

how do I do this? show me the Helm CLI command that will allow scoping in the repo, example:

XDavidT commented 1 year ago

@XDavidT I have 2 teams, both want to name their application the same name "my-awesome-ui"

Team A has 2 applications:

  • my-awesome-backend-api
  • my-awesome-ui

Team B has 2 applications:

  • team-b-awesome-backend-api
  • my-awesome-ui

when I publish the Helm chart for my-awesome-ui for Team A, and then for Team B, the chart will get clobbered

I need some kind of mechanism inside of the Helm repo to "scope" the packages, using a sub-folder in the repo

how do I do this? show me the Helm CLI command that will allow scoping in the repo, example:

  • team-a/my-awesome-ui
  • team-b/my-awesome-ui

As simple as you wrote it:

helm nexus-push myrepo team-a/my-awesome-ui
helm nexus-push myrepo team-b/my-awesome-ui