commit 8c606bc7d0cb2512f68fcef05ba675ff90a1f3f8 parent e00b4ff4fce8f990cf4f8909f1c49b3c04f89dbe Author: Vincent Demeester <vincent@sbr.pm> Date: Tue, 15 Feb 2022 17:51:41 +0100 nix/packages: updates on chos4 - host changed 😅 - override ControlPath with something small and controlled to not run into "path … too long for Unix domain socket" Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | nix/packages/my/scripts/bin/chos4 | | | 17 | ++++++++++------- |
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/nix/packages/my/scripts/bin/chos4 b/nix/packages/my/scripts/bin/chos4 @@ -3,13 +3,16 @@ set -e -BASE_URL="https://uploader-cron.svc.ci.openshift.org/" -#curl -s "${BASE_URL}/vincent/kubeadmin.password.gpg"|gpg --decrypt > ~/sync/work/chos4/kubeadmin.password.os4 -#curl -s "${BASE_URL}/vincent/webaccess.gpg"|gpg --decrypt > ~/sync/work/chos4/webaccess.os4 -#curl -s "${BASE_URL}/vincent/kubeconfig.gpg"|gpg --decrypt > ~/sync/work/chos4/config.os4 && export KUBECONFIG=~/sync/work/chos4/config.os4 -scp -q pipelines@10.0.77.12:os4-build/profiles/vincent/auth/kubeconfig $HOME/.kube/config.os4 -scp -q pipelines@10.0.77.12:os4-build/profiles/vincent/auth/kubeadmin-password $HOME/.kube/kubeadmin.password.os4 -scp -q pipelines@10.0.77.12:os4-build/profiles/vincent/auth/webaccess $HOME/.kube/webaccess.os4 +CONTROL_PATH=$(mktemp) +# scp -q pipelines@bootstrap.pipelines.devcluster.openshift.com:os4-build/profiles/vincent/auth/kubeconfig $HOME/.kube/config.os4 +# scp -q pipelines@bootstrap.pipelines.devcluster.openshift.com:os4-build/profiles/vincent/auth/kubeadmin-password $HOME/.kube/kubeadmin.password.os4 +# scp -q pipelines@bootstrap.pipelines.devcluster.openshift.com:os4-build/profiles/vincent/auth/webaccess $HOME/.kube/webaccess.os4 +scp -o ControlPath=${CONTROL_PATH} -q pipelines@bootstrap.pipelines.devcluster.openshift.com:os4-build/profiles/vincent/auth/kubeconfig $HOME/sync/work/chos4/config.os4 +scp -o ControlPath=${CONTROL_PATH} -q pipelines@bootstrap.pipelines.devcluster.openshift.com:os4-build/profiles/vincent/auth/kubeadmin-password $HOME/sync/work/chos4/kubeadmin.password.os4 +scp -o ControlPath=${CONTROL_PATH} -q pipelines@bootstrap.pipelines.devcluster.openshift.com:os4-build/profiles/vincent/auth/webaccess $HOME/sync/work/chos4/webaccess.os4 +scp -o ControlPath=${CONTROL_PATH} -q pipelines@bootstrap.pipelines.devcluster.openshift.com:os4-build/profiles/paac/auth/kubeconfig $HOME/sync/work/chos4/config.paac +scp -o ControlPath=${CONTROL_PATH} -q pipelines@bootstrap.pipelines.devcluster.openshift.com:os4-build/profiles/paac/auth/kubeadmin-password $HOME/sync/work/chos4/kubeadmin.password.paac +scp -o ControlPath=${CONTROL_PATH} -q pipelines@bootstrap.pipelines.devcluster.openshift.com:os4-build/profiles/paac/auth/webaccess $HOME/sync/work/chos4/webaccess.paac for file in kubeadmin.password.os4 webaccess.os4 config.os4; do if ! test -f $HOME/.kube/$file; then