diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-06 18:09:43 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-06 18:09:43 +0000 |
commit | 33998a0e768263828f497685ae030f585193317f (patch) | |
tree | 791e2c3322a17f668a2a4abdd251a8362885f381 /scripts | |
parent | 7b69a22d499787378aa30561822ef797a99c22e5 (diff) | |
download | gitlab-ce-33998a0e768263828f497685ae030f585193317f.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/review_apps/automated_cleanup.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/review_apps/automated_cleanup.rb b/scripts/review_apps/automated_cleanup.rb index a1810526550..7e606b74de9 100755 --- a/scripts/review_apps/automated_cleanup.rb +++ b/scripts/review_apps/automated_cleanup.rb @@ -14,7 +14,6 @@ module ReviewApps review_app: 'review/', docs_review_app: 'review-docs/' }.freeze - HELM_ALLOWED_NAMESPACES_REGEX = /^review-(?!apps).+/.freeze IGNORED_HELM_ERRORS = [ 'transport is closing', 'error upgrading connection', @@ -149,7 +148,7 @@ module ReviewApps helm_releases.each do |release| # Prevents deleting `dns-gitlab-review-app` releases or other unrelated releases - next unless HELM_ALLOWED_NAMESPACES_REGEX.match?(release.namespace) + next unless Tooling::KubernetesClient::K8S_ALLOWED_NAMESPACES_REGEX.match?(release.namespace) next unless release.name.start_with?('review-') if release.status == 'failed' || release.last_update < threshold |