Commit 8c606bc7d0cb

Vincent Demeester <vincent@sbr.pm>
2022-02-15 17:51:41
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>
1 parent e00b4ff
Changed files (1)
nix
packages
my
scripts
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