summaryrefslogtreecommitdiff
path: root/lib/gitlab/kubernetes/kube_client.rb
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2018-09-07 23:48:06 +1200
committerThong Kuah <tkuah@gitlab.com>2018-09-14 16:26:51 +1200
commita02e35308b97d43964ebcf7fda040da418c04ddc (patch)
tree5e7738b00b41248720298edf48e73b4c2aa9579c /lib/gitlab/kubernetes/kube_client.rb
parent8c8ccd3167ddb63485aa9e71affc737832d3846a (diff)
downloadgitlab-ce-a02e35308b97d43964ebcf7fda040da418c04ddc.tar.gz
Always create `gitlab` service account and service account token regardless of ABAC/RBAC
This also solves the async nature of the automatic creation of default service tokens for service accounts. It also makes explicit which service account token we always use. create cluster role binding only if the provider has legacy_abac disabled.
Diffstat (limited to 'lib/gitlab/kubernetes/kube_client.rb')
-rw-r--r--lib/gitlab/kubernetes/kube_client.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/kubernetes/kube_client.rb b/lib/gitlab/kubernetes/kube_client.rb
index 2f03d73dfb4..588238de608 100644
--- a/lib/gitlab/kubernetes/kube_client.rb
+++ b/lib/gitlab/kubernetes/kube_client.rb
@@ -25,6 +25,7 @@ module Gitlab
:get_config_map,
:get_namespace,
:get_pod,
+ :get_secret,
:get_service,
:get_service_account,
:delete_pod,