Commit 083295b5 authored by Noelia Jimenez's avatar Noelia Jimenez Committed by Pierre Smeyers
Browse files

fix: chmod 600 on GitLab-provided Kubeconfig file to prevent warning messages from kubectl

parent 76dff1de
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -449,6 +449,7 @@ stages:
    elif [[ -n "$KUBECONFIG" ]]
    then
      log_info "--- using \\e[32mKUBECONFIG\\e[0m provided by GitLab"
      chmod 600 "$KUBECONFIG"
      if [[ -n "$KUBE_CONTEXT" ]]
      then
        kubectl config use-context "$KUBE_CONTEXT"