From eafe56248131884348dea8bd5454d8c2cee98dae Mon Sep 17 00:00:00 2001 From: Anand Kumar Singh Date: Tue, 23 Jun 2026 16:27:54 +0530 Subject: [PATCH 1/2] Initital CI automation for GitOps operator support for xKS test assisted-by: ClaudeCode Signed-off-by: Anand Kumar Singh --- .github/workflows/deploy-test.yaml | 57 ++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/deploy-test.yaml diff --git a/.github/workflows/deploy-test.yaml b/.github/workflows/deploy-test.yaml new file mode 100644 index 00000000000..5b0bbdcae36 --- /dev/null +++ b/.github/workflows/deploy-test.yaml @@ -0,0 +1,57 @@ +name: Build, Push, Deploy and Test on kind + +on: + pull_request: + branches: + - '*' + +env: + IMG: quay.io/redhat-developer/gitops-operator:pr-${{ github.event.pull_request.number }}-${{ github.run_id }} + +jobs: + deploy-test: + name: Build image, deploy to kind cluster and run tests + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + + - name: Log in to Quay.io + uses: docker/login-action@v3 + with: + registry: quay.io + username: ${{ secrets.QUAY_USERNAME }} + password: ${{ secrets.QUAY_PASSWORD }} + + - name: Build manager image with TTL label + run: | + docker build -t ${{ env.IMG }} --label quay.expires-after=1d . + + - name: Push image to Quay.io + run: | + docker push ${{ env.IMG }} + + - name: Create kind cluster + uses: helm/kind-action@v1 + with: + cluster_name: gitops-test + + - name: Install CRDs + run: | + make install + + - name: Deploy operator + run: | + make deploy IMG=${{ env.IMG }} + + - name: Verify Controller Manager deployment is available + run: | + kubectl wait --for=condition=available --timeout=120s \ + deployment/openshift-gitops-operator-controller-manager \ + -n openshift-gitops-operator + kubectl get pods -n openshift-gitops-operator From 67df3df35791fdc7ea3287eaed3c87f364f3b6e3 Mon Sep 17 00:00:00 2001 From: Anand Kumar Singh Date: Tue, 23 Jun 2026 21:18:20 +0530 Subject: [PATCH 2/2] use kind internal registry to deploy assisted-by: ClaudeCode Signed-off-by: Anand Kumar Singh --- .github/workflows/deploy-test.yaml | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/.github/workflows/deploy-test.yaml b/.github/workflows/deploy-test.yaml index 5b0bbdcae36..39d2866d491 100644 --- a/.github/workflows/deploy-test.yaml +++ b/.github/workflows/deploy-test.yaml @@ -1,4 +1,4 @@ -name: Build, Push, Deploy and Test on kind +name: Build, Deploy and Test on kind on: pull_request: @@ -6,7 +6,7 @@ on: - '*' env: - IMG: quay.io/redhat-developer/gitops-operator:pr-${{ github.event.pull_request.number }}-${{ github.run_id }} + IMG: gitops-operator:test jobs: deploy-test: @@ -21,25 +21,18 @@ jobs: with: go-version-file: 'go.mod' - - name: Log in to Quay.io - uses: docker/login-action@v3 + - name: Create kind cluster + uses: helm/kind-action@v1 with: - registry: quay.io - username: ${{ secrets.QUAY_USERNAME }} - password: ${{ secrets.QUAY_PASSWORD }} + cluster_name: gitops-test - - name: Build manager image with TTL label + - name: Build manager image run: | - docker build -t ${{ env.IMG }} --label quay.expires-after=1d . + docker build -t ${{ env.IMG }} . - - name: Push image to Quay.io + - name: Load image into kind run: | - docker push ${{ env.IMG }} - - - name: Create kind cluster - uses: helm/kind-action@v1 - with: - cluster_name: gitops-test + kind load docker-image ${{ env.IMG }} --name gitops-test - name: Install CRDs run: |