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

sciabarracom pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openserverless-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new 9a9c625  0.9.1 (#117)
9a9c625 is described below

commit 9a9c625fc9817e53cce954d42e767a474833aa23
Author: Bruno Salzano <[email protected]>
AuthorDate: Tue Aug 25 19:51:12 2026 +0200

    0.9.1 (#117)
    
    * fix: fix absolute path in run.sh
    
    starting the operator locally gave error "No such file or directory task: 
Failed to run task "run": task: Failed to run task "d:run": exit status 127", 
because of an absolute path inside run.sh
    
    * fix: path to check for db ready
    
    changed the path for wait_db_ready. The path without the final / led to a 
301 and not a 200
    
    * fix: invoker and operator image from env
    
    removed hardcoded values for cfg.get operator.image / operator.tag and 
invoker.image and invoker.tag. Config now check env vars and defaults to old 
images
    
    * fix(test): milvus tests
    
    fixed tests for minio / seaweedfs .
    
    * chore(docs): taskfile
    
    added desc to taskfile tasks
    
    * fix: namespace validation
    
    added namespace validation in user creation
    
    * chore(deps): bump urllib3 from 2.3.0 to 2.7.0
    
    * fix: kube type detection (#114)
    
    * Update Docker actions to latest versions
    
    * chore: workflow/image alignment
    
    * build: unify build-and-load task with kube type detection (#116)
    
    Merge the kind/k3s build-and-load tasks into a single task that detects
    the cluster type via `ops debug kube detect` and adds microk8s support.
    Rename microk8s.yml's KUBECONFIG var to MIK_KUBECONFIG to avoid clashing
    with the KUBECONFIG env var.
    
    * chore: changed detect from ops to ./detect.sh script (#118)
    
    removed ops command from kube detection to avoid ops cli depenency in 
github actions
    
    * using straight apache secrets
    
    ---------
    
    Co-authored-by: Michele Sciabarra 
<[email protected]>
    Co-authored-by: Trustable User <[email protected]>
---
 .github/workflows/image.yml | 16 ++++++++--------
 TaskfileBuild.yml           | 27 ++++++++++++++++++++++-----
 clusters/microk8s.yml       |  8 ++++----
 3 files changed, 34 insertions(+), 17 deletions(-)

diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml
index 3d766a4..c8f72f7 100644
--- a/.github/workflows/image.yml
+++ b/.github/workflows/image.yml
@@ -45,11 +45,11 @@ jobs:
         if:  ${{ github.event_name != 'pull_request' }}
         run: |
           echo "IMG_TAG=$(git describe --tags --abbrev=0)" >> "$GITHUB_ENV"
-      - name: Assign Custom Image Name
-        if:  ${{ github.repository_owner != 'apache'}}
-        run: |
-          echo "MY_OPERATOR_IMAGE=ghcr.io/${{ github.repository_owner }}/${{ 
github.event.repository.name }}" >> "$GITHUB_ENV"
-          echo "IMAGE_REGISTRY=ghcr.io" >> "$GITHUB_ENV"
+      #- name: Assign Custom Image Name
+      #  if:  ${{ github.repository_owner != 'apache'}}
+      #  run: |
+      #    echo "MY_OPERATOR_IMAGE=ghcr.io/${{ github.repository_owner }}/${{ 
github.event.repository.name }}" >> "$GITHUB_ENV"
+      #    echo "IMAGE_REGISTRY=ghcr.io" >> "$GITHUB_ENV"
       - name: Set up Python 3.12
         uses: actions/setup-python@v4
         with:
@@ -79,9 +79,9 @@ jobs:
       - name: Registry login
         uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # 
v4.4.0
         with:
-          registry: ${{ env.IMAGE_REGISTRY || 'registry.hub.docker.com' }}
-          username: ${{ env.IMAGE_REGISTRY == 'ghcr.io' && 
github.repository_owner || secrets.DOCKERHUB_USER }}
-          password: ${{ env.IMAGE_REGISTRY == 'ghcr.io' && 
secrets.GITHUB_TOKEN || secrets.DOCKERHUB_TOKEN }}
+          registry: 'docker.io'
+          username: ${{ secrets.DOCKERHUB_USER }}
+          password: ${{ secrets.DOCKERHUB_TOKEN }}
       - name: Set up QEMU
         uses: 
docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
         with:
diff --git a/TaskfileBuild.yml b/TaskfileBuild.yml
index 81e018b..aed31d5 100644
--- a/TaskfileBuild.yml
+++ b/TaskfileBuild.yml
@@ -47,11 +47,28 @@ tasks:
     - docker push ${MY_OPERATOR_IMAGE:-{{.OPERATOR_IMAGE}}}:{{.OPERATOR_TAG}}
 
   build-and-load:
-    - task: build
-    - > 
-      kind load docker-image 
-      ${MY_OPERATOR_IMAGE:-{{.OPERATOR_IMAGE}}}:{{.OPERATOR_TAG}} 
-      --name=nuvolaris
+    silent: true
+    desc: Build the image and loads it to the local Kind, k3s, microk8s cluster
+    vars:
+      KUB_TYPE:
+        sh: ./detect.sh
+    cmds:
+      - task: build
+      - |
+        IMG="${MY_OPERATOR_IMAGE:-{{.OPERATOR_IMAGE}}}:{{.OPERATOR_TAG}}"
+        if [ "{{.KUB_TYPE}}" = "kind" ]; then
+          echo "Loading image to kind"
+          kind load docker-image $IMG --name=nuvolaris
+        elif [ "{{.KUB_TYPE}}" = "k3s" ]; then
+          echo "Loading image to k3s"
+          docker save $IMG | sudo k3s ctr images import -
+        elif [ "{{.KUB_TYPE}}" = "microk8s" ]; then
+          echo "Loading image to microk8s"
+          docker save $IMG | microk8s ctr images import -
+        else
+          echo "Error: unsupported KUB_TYPE '{{.KUB_TYPE}}' for loading images"
+          exit 1
+        fi
 
   k3s:build-and-load:
     - task: build
diff --git a/clusters/microk8s.yml b/clusters/microk8s.yml
index bbc5b6f..8c7f9f5 100644
--- a/clusters/microk8s.yml
+++ b/clusters/microk8s.yml
@@ -32,7 +32,7 @@ vars:
         else echo unknown
         fi
   STACK: "{{.GITHUB_USER}}-nuvolaris-dev"
-  KUBECONFIG: "microk8s-{{.GITHUB_USER}}.kubeconfig"
+  MIK_KUBECONFIG: "microk8s-{{.GITHUB_USER}}.kubeconfig"
   
 tasks:
 
@@ -73,8 +73,8 @@ tasks:
         ssh -i id_rsa -o "StrictHostKeyChecking=no" \
         "ubuntu@$(cat {{.APIHOST}})" sudo cloud-init status --wait
         scp -i id_rsa -o "StrictHostKeyChecking=no" \
-        "ubuntu@$(cat {{.APIHOST}}):/etc/kubeconfig" {{.KUBECONFIG}}
-      - cp -v {{.KUBECONFIG}} ~/.kube/config
+        "ubuntu@$(cat {{.APIHOST}}):/etc/kubeconfig" {{.MIK_KUBECONFIG}}
+      - cp -v {{.MIK_KUBECONFIG}} ~/.kube/config
       - kubectl get nodes
 
   import-key: 
@@ -90,6 +90,6 @@ tasks:
     cmds:
     - echo user  {{.GITHUB_USER}}
     - echo stack {{.STACK}}
-    - echo kubeconfig {{.KUBECONFIG}}
+    - echo kubeconfig {{.MIK_KUBECONFIG}}
     silent: true
     

Reply via email to