This is an automated email from the ASF dual-hosted git repository.

nvazquez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/main by this push:
     new 50055b4cf34 CKS: support headlamp.yaml in upgrade-kubernetes.sh 
(#14245)
50055b4cf34 is described below

commit 50055b4cf3474f459c82c955ed12b73e55961ba1
Author: mw-0 <[email protected]>
AuthorDate: Mon Nov 9 21:29:50 2026 +0000

    CKS: support headlamp.yaml in upgrade-kubernetes.sh (#14245)
    
    * CKS: support headlamp.yaml in upgrade-kubernetes.sh
    
    Fixes #14244
    
    * Update upgrade-kubernetes.sh
---
 .../src/main/resources/script/upgrade-kubernetes.sh               | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git 
a/plugins/integrations/kubernetes-service/src/main/resources/script/upgrade-kubernetes.sh
 
b/plugins/integrations/kubernetes-service/src/main/resources/script/upgrade-kubernetes.sh
index a947d508436..2e73467c982 100755
--- 
a/plugins/integrations/kubernetes-service/src/main/resources/script/upgrade-kubernetes.sh
+++ 
b/plugins/integrations/kubernetes-service/src/main/resources/script/upgrade-kubernetes.sh
@@ -151,7 +151,13 @@ if [ -d "$BINARIES_DIR" ]; then
     if [[ ${EXTERNAL_CNI} == true ]]; then
       /opt/bin/kubectl apply -f ${BINARIES_DIR}/network.yaml
     fi
-    /opt/bin/kubectl apply -f ${BINARIES_DIR}/dashboard.yaml
+    if [ -f "${BINARIES_DIR}/headlamp.yaml" ]; then
+      /opt/bin/kubectl apply -f ${BINARIES_DIR}/headlamp.yaml
+    elif [ -f "${BINARIES_DIR}/dashboard.yaml" ]; then
+      /opt/bin/kubectl apply -f ${BINARIES_DIR}/dashboard.yaml
+    else
+      echo "Warning: No dashboard YAML found in ISO (neither headlamp.yaml nor 
dashboard.yaml)"
+    fi
   fi
 
   umount "${ISO_MOUNT_DIR}" && rmdir "${ISO_MOUNT_DIR}"

Reply via email to