From c7d50ddf5504828296c97447b281be17282a056e Mon Sep 17 00:00:00 2001 From: Thong Kuah Date: Tue, 4 Jun 2019 23:25:33 +1200 Subject: Fix connection to Tiller error while uninstalling Both the `install-` and `uninstall-` pods loads the `values-content-configuration-` configmap into the pod (see `#volume_specification`). This configmap contains the cert necessary to connect to Tiller. The cert though is only valid for 30 minutes. So this fixes the bug where the configmap when uninstalling should be updated as well. --- lib/gitlab/kubernetes/helm/api.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/gitlab/kubernetes/helm/api.rb b/lib/gitlab/kubernetes/helm/api.rb index ff1dadf9247..978cafae9ac 100644 --- a/lib/gitlab/kubernetes/helm/api.rb +++ b/lib/gitlab/kubernetes/helm/api.rb @@ -24,6 +24,7 @@ module Gitlab def uninstall(command) namespace.ensure_exists! + create_config_map(command) delete_pod!(command.pod_name) kubeclient.create_pod(command.pod_resource) -- cgit v1.2.1