Skip to content

Commit

Permalink
Merge pull request #68 from deviceinsight/feature/issue-67-new-incuba…
Browse files Browse the repository at this point in the history
…tor-repository

#67: Use new incubator repository
  • Loading branch information
pvorb authored Nov 3, 2020
2 parents de0d4b5 + cfed265 commit b24dd23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
== Version 2.7.0

* Accept any 2xx HTTP status code when deploying Helm charts
* Use new incubator repository hosted at https://charts.helm.sh/incubator

== Version 2.6.0

Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/com/deviceinsight/helm/PackageMojo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ class PackageMojo : AbstractHelmMojo() {
@Parameter(property = "chartRepoPassword", required = false)
private var chartRepoPassword: String? = null

private val incubatorRepository = "https://charts.helm.sh/incubator"

@Throws(MojoExecutionException::class)
override fun execute() {

Expand Down Expand Up @@ -77,7 +79,7 @@ class PackageMojo : AbstractHelmMojo() {
executeCmd("$helm init --client-only")
}

executeCmd("$helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com")
executeCmd("$helm repo add incubator $incubatorRepository")
if (chartRepoUrl != null) {
val authParams = if (chartRepoUsername != null && chartRepoPassword != null) {
" --username $chartRepoUsername --password $chartRepoPassword"
Expand Down

0 comments on commit b24dd23

Please sign in to comment.