Skip to content

Commit

Permalink
CR-18228 fixed invalid provider name
Browse files Browse the repository at this point in the history
* updated chart version to `0.2.1-alpha.7`
* renamed BITBUCKET_CLOUD to BITBUCKET_SERVER
  • Loading branch information
ATGardner authored Apr 18, 2023
1 parent 5ed9db9 commit 9c9b003
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/gitops-runtime/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 0.1.27-helm-alpha
description: A Helm chart for Codefresh gitops runtime
name: gitops-runtime
version: 0.2.1-alpha.6
version: 0.2.1-alpha.7
home: https://github.com/codefresh-io/gitops-runtime-helm
keywords:
- codefresh
Expand Down
2 changes: 1 addition & 1 deletion charts/gitops-runtime/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# gitops-runtime

![Version: 0.2.1-alpha.6](https://img.shields.io/badge/Version-0.2.1--alpha.6-informational?style=flat-square) ![AppVersion: 0.1.27-helm-alpha](https://img.shields.io/badge/AppVersion-0.1.27--helm--alpha-informational?style=flat-square)
![Version: 0.2.1-alpha.7](https://img.shields.io/badge/Version-0.2.1--alpha.7-informational?style=flat-square) ![AppVersion: 0.1.27-helm-alpha](https://img.shields.io/badge/AppVersion-0.1.27--helm--alpha-informational?style=flat-square)

A Helm chart for Codefresh gitops runtime

Expand Down
4 changes: 2 additions & 2 deletions charts/gitops-runtime/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@ Output comma separated list of installed runtime components
------------------------------------------------------------------------------------------------------------
{{- define "codefresh-gitops-runtime.git-integration.provider"}}
{{- if .Values.global.codefresh.gitIntegration.provider.name }}
{{- $supportedProviders := list "GITHUB" "GITLAB" "BITBUCKET" "BITBUCKET_CLOUD" }}
{{- $supportedProviders := list "GITHUB" "GITLAB" "BITBUCKET" "BITBUCKET_SERVER" }}
{{- if has .Values.global.codefresh.gitIntegration.provider.name $supportedProviders }}
{{- print .Values.global.codefresh.gitIntegration.provider.name }}
{{- else }}
{{ fail (printf "ERROR: Unsupported git provider %s. Currently supported: GITHUB,GITLAB,BITBUCKET,BITBUCKET_CLOUD" .Values.global.codefresh.gitIntegration.provider.name)}}
{{ fail (printf "ERROR: Unsupported git provider %s. Currently supported: GITHUB,GITLAB,BITBUCKET,BITBUCKET_SERVER" .Values.global.codefresh.gitIntegration.provider.name)}}
{{- end }}
{{- else }}
{{ fail "Values.global.codefresh.gitIntegration.provider.name is required"}}
Expand Down

0 comments on commit 9c9b003

Please sign in to comment.