diff options
| author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-23 00:12:50 +0000 |
|---|---|---|
| committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-23 00:12:50 +0000 |
| commit | 04dabf41f65cf1c25d80d92b1cc5568bfcca80ee (patch) | |
| tree | 4f9bc83d5f9683131c178f3048107ab16ba94d07 /tooling | |
| parent | f19ffffacda2d7f415f682f6e50e3cf06182e15e (diff) | |
| download | gitlab-ce-04dabf41f65cf1c25d80d92b1cc5568bfcca80ee.tar.gz | |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'tooling')
| -rw-r--r-- | tooling/lib/tooling/kubernetes_client.rb | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tooling/lib/tooling/kubernetes_client.rb b/tooling/lib/tooling/kubernetes_client.rb index ab914db5777..27eb4c8151e 100644 --- a/tooling/lib/tooling/kubernetes_client.rb +++ b/tooling/lib/tooling/kubernetes_client.rb @@ -35,6 +35,19 @@ module Tooling delete_namespaces_by_exact_names(resource_names: namespaces, wait: wait) end + def delete_namespaces_by_exact_names(resource_names:, wait:) + command = [ + 'delete', + 'namespace', + '--now', + '--ignore-not-found', + %(--wait=#{wait}), + resource_names.join(' ') + ] + + run_command(command) + end + private def delete_by_selector(release_name:, wait:) @@ -74,19 +87,6 @@ module Tooling run_command(command) end - def delete_namespaces_by_exact_names(resource_names:, wait:) - command = [ - 'delete', - 'namespace', - '--now', - '--ignore-not-found', - %(--wait=#{wait}), - resource_names.join(' ') - ] - - run_command(command) - end - def delete_by_matching_name(release_name:) resource_names = raw_resource_names command = [ |
