From e4350b62db17b8ed2d9e53dec6e979c36ffc8f4f Mon Sep 17 00:00:00 2001 From: freeleaps-gitops-bot Date: Fri, 9 May 2025 01:25:35 +0000 Subject: [PATCH 1/7] ci(bump): bump chat image version for alpha to snapshot-77e4fbe --- freeleaps/helm-pkg/chat/values.alpha.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeleaps/helm-pkg/chat/values.alpha.yaml b/freeleaps/helm-pkg/chat/values.alpha.yaml index 6ffd8a88..116dbc5a 100644 --- a/freeleaps/helm-pkg/chat/values.alpha.yaml +++ b/freeleaps/helm-pkg/chat/values.alpha.yaml @@ -15,7 +15,7 @@ chat: registry: docker.io repository: null name: chat - tag: snapshot-6d2955c + tag: snapshot-77e4fbe imagePullPolicy: IfNotPresent ports: - name: http From 3f5e99f8172fbbdb8d88e669a12df1c7d3b3de6e Mon Sep 17 00:00:00 2001 From: freeleaps-gitops-bot Date: Fri, 9 May 2025 01:34:16 +0000 Subject: [PATCH 2/7] ci(bump): bump freeleaps image version for alpha to snapshot-77e4fbe --- freeleaps/helm-pkg/freeleaps/values.alpha.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeleaps/helm-pkg/freeleaps/values.alpha.yaml b/freeleaps/helm-pkg/freeleaps/values.alpha.yaml index a8bad032..d9246a66 100644 --- a/freeleaps/helm-pkg/freeleaps/values.alpha.yaml +++ b/freeleaps/helm-pkg/freeleaps/values.alpha.yaml @@ -15,7 +15,7 @@ freeleaps: registry: docker.io repository: null name: backend - tag: snapshot-6d2955c + tag: snapshot-77e4fbe imagePullPolicy: IfNotPresent ports: - name: http From ff4e4b09e20bcfa062b87fd4697c544723071f8f Mon Sep 17 00:00:00 2001 From: freeleaps-gitops-bot Date: Fri, 9 May 2025 02:03:01 +0000 Subject: [PATCH 3/7] ci(bump): bump frontend image version for alpha to snapshot-77e4fbe --- freeleaps/helm-pkg/frontend/values.alpha.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeleaps/helm-pkg/frontend/values.alpha.yaml b/freeleaps/helm-pkg/frontend/values.alpha.yaml index b4e46f4f..c01ebb7a 100644 --- a/freeleaps/helm-pkg/frontend/values.alpha.yaml +++ b/freeleaps/helm-pkg/frontend/values.alpha.yaml @@ -8,7 +8,7 @@ frontend: registry: docker.io repository: null name: frontend - tag: snapshot-8d7ded9 + tag: snapshot-77e4fbe imagePullPolicy: IfNotPresent ports: - name: http From f41973befc55e703ce5ff338040f7440afe6898a Mon Sep 17 00:00:00 2001 From: zhenyus Date: Fri, 9 May 2025 15:25:14 +0800 Subject: [PATCH 4/7] ci(bump): update freeleaps-cluster-authenticator version to 0.0.3-20250509 and add refresh-auth command Signed-off-by: zhenyus --- cluster/bin/freeleaps-cluster-authenticator | 31 +++++++++++++++------ 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/cluster/bin/freeleaps-cluster-authenticator b/cluster/bin/freeleaps-cluster-authenticator index bc6f53d0..d5542b71 100755 --- a/cluster/bin/freeleaps-cluster-authenticator +++ b/cluster/bin/freeleaps-cluster-authenticator @@ -2,7 +2,7 @@ set -eu -VERSION="0.0.2-20250320" +VERSION="0.0.3-20250509" CLUSTER_API_LB_IP=${CLUSTER_API_LB_IP:-4.155.160.32} CLUSTER_API_LB_PORT=${CLUSTER_API_LB_PORT:-6443} @@ -29,13 +29,14 @@ help() { echo "Usage: [environment-option=value] freeleaps-cluster-authenticator " echo "" echo "Sub Commands:" - echo " auth,-a,--auth Setup kubectl for freeleaps cluster with Mathmast account." - echo " reset-auth,-r,--reset-auth Reset kubectl authentication state for freeleaps cluster." - echo " clear,-c,--clear Clear authentication for freeleaps cluster." - echo " doctor,-d,--doctor Check if all the required tools are installed." - echo " dashboard,-db,--dashboard Open the Kubernetes dashboard, forward the port to localhost and listen on 8443." - echo " get-token,-gt,--get-token Get the token for the current user, usually to using Kubernetes Dashboard authentication." - echo " help,-h,--help Show this help message." + echo " auth,-a,--auth Setup kubectl for freeleaps cluster with Mathmast account." + echo " reset-auth,-r,--reset-auth Reset kubectl authentication state for freeleaps cluster." + echo " refresh-auth,-ra,--refresh-auth Refresh kubectl authentication state for freeleaps cluster, very useful when account roles has been updated." + echo " clear,-c,--clear Clear authentication for freeleaps cluster." + echo " doctor,-d,--doctor Check if all the required tools are installed." + echo " dashboard,-db,--dashboard Open the Kubernetes dashboard, forward the port to localhost and listen on 8443." + echo " get-token,-gt,--get-token Get the token for the current user, usually to using Kubernetes Dashboard authentication." + echo " help,-h,--help Show this help message." echo "" echo "Environment Options:" echo " [Optional] CLUSTER_API_LB_IP: IP address of the cluster API load balancer." @@ -353,6 +354,17 @@ get_token() { echo "[GET_TOKEN] Expiration Timestamp: ${expiration}" } +refresh_auth() { + gather_prerequisites + + echo "[REFRESH] Refreshing kubectl authentication state..." + rm -rf "${HOME}/.kube/cache/oidc-login" + setup_kubelogin + check_whoami + + echo "[REFRESH] Your kubectl has been refreshed with your Mathmast account." +} + main() { if [ $# -lt 1 ]; then echo "[ERROR] No sub-command provided." @@ -369,6 +381,9 @@ main() { reset-auth|-r|--reset-auth) reset_auth ;; + refresh-auth|-ra|--refresh-auth) + refresh_auth + ;; clear|-c|--clear) clear_auth ;; From 2b65abda23e879530a4d416f052c241075158e47 Mon Sep 17 00:00:00 2001 From: freeleaps-gitops-bot Date: Sat, 10 May 2025 01:50:28 +0000 Subject: [PATCH 5/7] ci(bump): bump chat image version for alpha to snapshot-e641c02 --- freeleaps/helm-pkg/chat/values.alpha.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeleaps/helm-pkg/chat/values.alpha.yaml b/freeleaps/helm-pkg/chat/values.alpha.yaml index 116dbc5a..e2672a9c 100644 --- a/freeleaps/helm-pkg/chat/values.alpha.yaml +++ b/freeleaps/helm-pkg/chat/values.alpha.yaml @@ -15,7 +15,7 @@ chat: registry: docker.io repository: null name: chat - tag: snapshot-77e4fbe + tag: snapshot-e641c02 imagePullPolicy: IfNotPresent ports: - name: http From 86272e7ad78657713a5b91940bd6717480dcd1d9 Mon Sep 17 00:00:00 2001 From: freeleaps-gitops-bot Date: Sat, 10 May 2025 01:59:12 +0000 Subject: [PATCH 6/7] ci(bump): bump freeleaps image version for alpha to snapshot-e641c02 --- freeleaps/helm-pkg/freeleaps/values.alpha.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeleaps/helm-pkg/freeleaps/values.alpha.yaml b/freeleaps/helm-pkg/freeleaps/values.alpha.yaml index d9246a66..8ec5d76c 100644 --- a/freeleaps/helm-pkg/freeleaps/values.alpha.yaml +++ b/freeleaps/helm-pkg/freeleaps/values.alpha.yaml @@ -15,7 +15,7 @@ freeleaps: registry: docker.io repository: null name: backend - tag: snapshot-77e4fbe + tag: snapshot-e641c02 imagePullPolicy: IfNotPresent ports: - name: http From 908609c49fee3e07dc99a54fbed169d6c63e35eb Mon Sep 17 00:00:00 2001 From: freeleaps-gitops-bot Date: Sat, 10 May 2025 02:27:19 +0000 Subject: [PATCH 7/7] ci(bump): bump frontend image version for alpha to snapshot-e641c02 --- freeleaps/helm-pkg/frontend/values.alpha.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeleaps/helm-pkg/frontend/values.alpha.yaml b/freeleaps/helm-pkg/frontend/values.alpha.yaml index c01ebb7a..9833bbb3 100644 --- a/freeleaps/helm-pkg/frontend/values.alpha.yaml +++ b/freeleaps/helm-pkg/frontend/values.alpha.yaml @@ -8,7 +8,7 @@ frontend: registry: docker.io repository: null name: frontend - tag: snapshot-77e4fbe + tag: snapshot-e641c02 imagePullPolicy: IfNotPresent ports: - name: http