Skip to content

Commit

Permalink
fix image repo name, only build image once
Browse files Browse the repository at this point in the history
  • Loading branch information
jsanda committed Jan 26, 2022
1 parent cd536fe commit 15332e9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/kind_e2e_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ jobs:
outputs:
image: ${{ steps.set_image_var.outputs.image }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/checkout@v2
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/checkout@v2
if: github.event_name != 'pull_request'
- name: Set up Docker buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
Expand All @@ -33,7 +37,7 @@ jobs:
- name: Set build tags
id: set_build_tags
run: |
image="k8ssandra-operator/k8ssandra-operator:latest"
image="k8ssandra/k8ssandra-operator:latest"
echo "build_tags=$image" >> $GITHUB_ENV
echo "image=$image" >> $GITHUB_ENV
- name: Update build tags
Expand Down Expand Up @@ -126,7 +130,7 @@ jobs:
run: |
docker load --input /tmp/k8ssandra-operator.tar
- name: Setup kind cluster
run: make IMG=${{ needs.build_image.outputs.image }} e2e-setup-single
run: make IMG=${{ needs.build_image.outputs.image }} create-kind-cluster kind-load-image
- name: Run e2e test ( ${{ matrix.e2e_test }} )
run: make E2E_TEST=TestOperator/${{ matrix.e2e_test }} e2e-test
- name: Archive k8s logs
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/kind_multicluster_e2e_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Set build tags
id: set_build_tags
run: |
image="k8ssandra-operator/k8ssandra-operator:latest"
image="k8ssandra/k8ssandra-operator:latest"
echo "build_tags=$image" >> $GITHUB_ENV
echo "image=$image" >> $GITHUB_ENV
- name: Update build tags
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
run: |
docker load --input /tmp/k8ssandra-operator.tar
- name: Setup kind clusters
run: make IMG=${{ needs.build_image.outputs.image }} e2e-setup-multi
run: make IMG=${{ needs.build_image.outputs.image }} create-kind-multicluster kind-load-image-multi
- name: Run e2e test ( ${{ matrix.e2e_test }} )
run: make E2E_TEST=TestOperator/${{ matrix.e2e_test }} NODETOOL_STATUS_TIMEOUT=2m e2e-test
- name: Archive k8s logs
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/kuttl_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
paths-ignore:
- 'docs/**'
- 'CHANGELOG/**'

jobs:
build_image:
name: Build image
Expand All @@ -33,7 +34,7 @@ jobs:
- name: Set build tags
id: set_build_tags
run: |
image="k8ssandra-operator/k8ssandra-operator:latest"
image="k8ssandra/k8ssandra-operator:latest"
echo "build_tags=$image" >> $GITHUB_ENV
echo "image=$image" >> $GITHUB_ENV
- name: Update build tags
Expand Down
2 changes: 1 addition & 1 deletion controllers/k8ssandra/k8ssandracluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (r *K8ssandraClusterReconciler) reconcile(ctx context.Context, kc *api.K8ss
actualDcs = dcs
}

kcLogger.Info("All dcs reconciled")
kcLogger.Info("All DCs reconciled")

if recResult := r.afterCassandraReconciled(ctx, kc, actualDcs, kcLogger); recResult.Completed() {
return recResult.Output()
Expand Down

0 comments on commit 15332e9

Please sign in to comment.