]> piware.de Git - bin.git/commitdiff
pisocp-login: Add
authorMartin Pitt <martin@piware.de>
Sun, 4 Jan 2026 14:56:59 +0000 (15:56 +0100)
committerMartin Pitt <martin@piware.de>
Sun, 4 Jan 2026 14:57:44 +0000 (15:57 +0100)
Script to log into the Front Door CI OpenShift cluster.

psiocp-login [new file with mode: 0755]

diff --git a/psiocp-login b/psiocp-login
new file mode 100755 (executable)
index 0000000..94846f1
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+# This requires sudo pip install ocp-sso-token
+set -eu
+
+if ! klist | grep -q IPA.REDHAT.COM; then
+    kinit mpitt@IPA.REDHAT.COM
+fi
+
+ocp-sso-token https://api.gpc.ocp-hub.prod.psi.redhat.com:6443 --namespace front-door-ci--pipeline --context psiocp
+oc config use-context psiocp