Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
chore: Fix ZeroDowntime registry (#8434)
Browse files Browse the repository at this point in the history
Signed-off-by: RealAnna <anna.reale@dynatrace.com>
  • Loading branch information
RealAnna committed Jul 14, 2022
1 parent 42e9fad commit c89506d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/zero-downtime-tests.yml
Expand Up @@ -189,9 +189,9 @@ jobs:
run: |
echo "copying helm chart in zero downtime folder"
cp ${HELM_CHART_NAME} test/zero-downtime/keptn-installed.tgz
cp ${HELM_CHART_NAME} test/zero-downtime/keptn-dev-installed.tgz
cd test/zero-downtime
echo "INSTALL_HELM_CHART=$(ls ./keptn-installed.tgz)" >> $GITHUB_ENV
echo "INSTALL_HELM_CHART=$(ls ./keptn-dev-installed.tgz)" >> $GITHUB_ENV
if [[ "${{ github.event_name }}" == 'schedule' || "${{ github.event.inputs.upgradeTo }}" == "http"* ]]; then
echo "UPGRADE_HELM_CHART=${{ github.event.inputs.upgradeTo }}" >> $GITHUB_ENV
Expand Down
6 changes: 3 additions & 3 deletions test/zero-downtime/testsuite_zerodowntime_test.go
Expand Up @@ -179,13 +179,13 @@ func RollingUpgrade(t *testing.T, env *ZeroDowntimeEnv) {
chartPath = env.EnvInstallVersion
}
t.Logf("Upgrading Keptn to %s", chartPath)
setRegistry := ""
setRegistry := "global.keptn.registry=docker.io/keptn"
if strings.Contains(chartPath, "dev") {
setRegistry = "--set global.keptn.registry=\"docker.io/keptndev\""
setRegistry = "global.keptn.registry=docker.io/keptndev"
}
_, err = testutils.ExecuteCommand(
fmt.Sprintf(
"helm upgrade keptn -n %s %s --wait --values=%s %s", testutils.GetKeptnNameSpaceFromEnv(), chartPath, valuesFile, setRegistry))
"helm upgrade keptn -n %s %s --wait --values=%s --set=%s", testutils.GetKeptnNameSpaceFromEnv(), chartPath, valuesFile, setRegistry))
require.Nil(t, err)
}
}
Expand Down

0 comments on commit c89506d

Please sign in to comment.