forked from rafatio/etcd-operator
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from topfreegames/feat/distributed-cluster
Feat/discovery mode for distributed cluster
- Loading branch information
Showing
10 changed files
with
270 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
name: Build | ||
on: | ||
push: | ||
on: [push, pull_request] | ||
jobs: | ||
operator: | ||
name: Operator | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
name: Testing E2E | ||
on: | ||
push: | ||
on: [push, pull_request] | ||
jobs: | ||
prepare: | ||
name: Prepare | ||
|
@@ -14,26 +13,41 @@ jobs: | |
|
||
- name: Check out code into the Go module directory | ||
uses: actions/[email protected] | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Docker login | ||
run: docker login docker.pkg.github.com -u marlinc -p "${GITHUB_PACKAGE_REGISTRY_TOKEN}" | ||
env: | ||
GITHUB_PACKAGE_REGISTRY_TOKEN: ${{ secrets.GITHUB_PACKAGE_REGISTRY_TOKEN }} | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Prepare e2e image | ||
run: | | ||
hack/build/e2e/docker_push | ||
env: | ||
TEST_IMAGE: docker.pkg.github.com/cbws/etcd-operator/etcd-operator-e2e:${{github.sha}} | ||
|
||
uses: docker/build-push-action@v4 | ||
with: | ||
push: true | ||
context: . | ||
file: test/pod/Dockerfile | ||
tags: tfgco/etcd-operator-e2e:${{github.sha}} | ||
|
||
- name: Prepare operator image | ||
run: | | ||
hack/build/operator/build | ||
hack/build/backup-operator/build | ||
hack/build/restore-operator/build | ||
IMAGE=${OPERATOR_IMAGE} hack/build/docker_push | ||
env: | ||
OPERATOR_IMAGE: docker.pkg.github.com/cbws/etcd-operator/operator:${{github.sha}} | ||
- name: Prepare operator image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
push: true | ||
context: . | ||
file: hack/build/Dockerfile | ||
tags: tfgco/etcd-operator:${{github.sha}} | ||
|
||
test-e2e: | ||
name: E2E | ||
runs-on: ubuntu-latest | ||
|
@@ -48,12 +62,19 @@ jobs: | |
- name: Check out code into the Go module directory | ||
uses: actions/[email protected] | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: KinD (Kubernetes in Docker) Action | ||
uses: engineerd/[email protected] | ||
|
||
with: | ||
version: "v0.17.0" | ||
|
||
- name: Test | ||
run: | | ||
docker login docker.pkg.github.com -u marlinc -p "${GITHUB_PACKAGE_REGISTRY_TOKEN}" | ||
docker pull $TEST_IMAGE | ||
docker pull $OPERATOR_IMAGE | ||
export KUBECONFIG="${HOME}/.kube/config" | ||
|
@@ -62,13 +83,13 @@ jobs: | |
hack/ci/run_e2e | ||
env: | ||
GITHUB_PACKAGE_REGISTRY_TOKEN: ${{ secrets.GITHUB_PACKAGE_REGISTRY_TOKEN }} | ||
OPERATOR_IMAGE: docker.pkg.github.com/cbws/etcd-operator/operator:${{github.sha}} | ||
OPERATOR_IMAGE: tfgco/etcd-operator:${{github.sha}} | ||
TEST_AWS_SECRET: na | ||
TEST_S3_BUCKET: na | ||
TEST_NAMESPACE: default | ||
BUILD_IMAGE: false | ||
BUILD_E2E: false | ||
TEST_IMAGE: docker.pkg.github.com/cbws/etcd-operator/etcd-operator-e2e:${{github.sha}} | ||
TEST_IMAGE: tfgco/etcd-operator-e2e:${{github.sha}} | ||
PASSES: e2e | ||
|
||
- name: Show logs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
name: Testing | ||
on: | ||
push: | ||
on: [push, pull_request] | ||
jobs: | ||
|
||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.