summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlessio Caiazza <acaiazza@gitlab.com>2017-10-02 18:55:07 +0200
committerAlessio Caiazza <acaiazza@gitlab.com>2017-10-03 09:10:40 +0200
commit40c6128b398f62188e794fe97b4cb545b482e3da (patch)
tree8e4c75df0ad23a0a564ede867e7695b546b15919 /lib
parentf1b8d79f4ac0cc9f145f690ad7df095798a7ac5d (diff)
downloadgitlab-ce-40c6128b398f62188e794fe97b4cb545b482e3da.tar.gz
Fix broken certificate-authority-data with kubectl >= 1.8.0fix-kubectl-180
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/kubernetes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/kubernetes.rb b/lib/gitlab/kubernetes.rb
index cdbdfa10d0e..da43bd0af4b 100644
--- a/lib/gitlab/kubernetes.rb
+++ b/lib/gitlab/kubernetes.rb
@@ -113,7 +113,7 @@ module Gitlab
def kubeconfig_embed_ca_pem(config, ca_pem)
cluster = config.dig(:clusters, 0, :cluster)
- cluster[:'certificate-authority-data'] = Base64.encode64(ca_pem)
+ cluster[:'certificate-authority-data'] = Base64.strict_encode64(ca_pem)
end
end
end