Commit f44b7ac6 authored by Thong Kuah's avatar Thong Kuah

Switch kubernetes:active with checking $KUBECONFIG

We have found an issue with `kubernetes:active` where it doesn't work
with multiple clusters. Switch with the similar $KUBECONFIG variable
check but this check actually gets the variable from the cluster
matching the environment name.

Fixes https://gitlab.com/gitlab-org/gitlab-ee/issues/8311
parent ab61bee3
---
title: Switch kubernetes:active with checking in Auto-DevOps.gitlab-ci.yml
merge_request: 22929
author:
type: fixed
...@@ -147,7 +147,8 @@ performance: ...@@ -147,7 +147,8 @@ performance:
only: only:
refs: refs:
- branches - branches
kubernetes: active variables:
- $KUBECONFIG
except: except:
variables: variables:
- $PERFORMANCE_DISABLED - $PERFORMANCE_DISABLED
...@@ -225,7 +226,8 @@ dast: ...@@ -225,7 +226,8 @@ dast:
only: only:
refs: refs:
- branches - branches
kubernetes: active variables:
- $KUBECONFIG
variables: variables:
- $GITLAB_FEATURES =~ /\bdast\b/ - $GITLAB_FEATURES =~ /\bdast\b/
except: except:
...@@ -254,7 +256,8 @@ review: ...@@ -254,7 +256,8 @@ review:
only: only:
refs: refs:
- branches - branches
kubernetes: active variables:
- $KUBECONFIG
except: except:
refs: refs:
- master - master
...@@ -277,7 +280,8 @@ stop_review: ...@@ -277,7 +280,8 @@ stop_review:
only: only:
refs: refs:
- branches - branches
kubernetes: active variables:
- $KUBECONFIG
except: except:
refs: refs:
- master - master
...@@ -306,7 +310,8 @@ staging: ...@@ -306,7 +310,8 @@ staging:
only: only:
refs: refs:
- master - master
kubernetes: active variables:
- $KUBECONFIG
variables: variables:
- $STAGING_ENABLED - $STAGING_ENABLED
...@@ -331,7 +336,8 @@ canary: ...@@ -331,7 +336,8 @@ canary:
only: only:
refs: refs:
- master - master
kubernetes: active variables:
- $KUBECONFIG
variables: variables:
- $CANARY_ENABLED - $CANARY_ENABLED
...@@ -359,7 +365,8 @@ production: ...@@ -359,7 +365,8 @@ production:
only: only:
refs: refs:
- master - master
kubernetes: active variables:
- $KUBECONFIG
except: except:
variables: variables:
- $STAGING_ENABLED - $STAGING_ENABLED
...@@ -374,7 +381,8 @@ production_manual: ...@@ -374,7 +381,8 @@ production_manual:
only: only:
refs: refs:
- master - master
kubernetes: active variables:
- $KUBECONFIG
variables: variables:
- $STAGING_ENABLED - $STAGING_ENABLED
- $CANARY_ENABLED - $CANARY_ENABLED
...@@ -411,7 +419,8 @@ production_manual: ...@@ -411,7 +419,8 @@ production_manual:
only: only:
refs: refs:
- master - master
kubernetes: active variables:
- $KUBECONFIG
variables: variables:
- $INCREMENTAL_ROLLOUT_MODE == "manual" - $INCREMENTAL_ROLLOUT_MODE == "manual"
- $INCREMENTAL_ROLLOUT_ENABLED - $INCREMENTAL_ROLLOUT_ENABLED
...@@ -426,7 +435,8 @@ production_manual: ...@@ -426,7 +435,8 @@ production_manual:
only: only:
refs: refs:
- master - master
kubernetes: active variables:
- $KUBECONFIG
variables: variables:
- $INCREMENTAL_ROLLOUT_MODE == "timed" - $INCREMENTAL_ROLLOUT_MODE == "timed"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment