-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
360 additions
and
93 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: "E2E tests" | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
e2e-tests: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/setup-go@v2.1.4 | ||
with: | ||
go-version: 1.18 | ||
- uses: actions/checkout@v2.4.0 | ||
- name: "Install etcd" | ||
run: ./hack/install-etcd.sh | ||
- name: "Install kube-apiserver" | ||
run: ./hack/install-kube-apiserver.sh | ||
- name: "Run E2E tests" | ||
run: make e2e-test INTEGRATION_OUTPUT_JUNIT="true" |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: "Integration tests" | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
integration-tests: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/setup-go@v2.1.4 | ||
with: | ||
go-version: 1.18 | ||
- uses: actions/checkout@v2.4.0 | ||
- name: "Install etcd" | ||
run: ./hack/install-etcd.sh | ||
- name: "Install kube-apiserver" | ||
run: ./hack/install-kube-apiserver.sh | ||
- name: "Run integration tests" | ||
run: make integration-test INTEGRATION_OUTPUT_JUNIT="true" |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: "Lint code" | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/setup-go@v2.1.4 | ||
with: | ||
go-version: 1.18 | ||
- uses: actions/checkout@v2.4.0 | ||
- name: "Lint the code" | ||
run: make lint | ||
- name: "Verify generate" | ||
run: ./hack/verify-generate.sh | ||
- name: "Verify go clean" | ||
run: ./hack/verify-go-clean.sh |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: "Unit tests" | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
unit-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v2.1.4 | ||
with: | ||
go-version: 1.18 | ||
- uses: actions/checkout@v2.4.0 | ||
- name: "Run unit tests" | ||
run: make test |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
echo Installing etcd | ||
|
||
ETCD_VER=v3.3.11 | ||
DOWNLOAD_URL=https://github.com/etcd-io/etcd/releases/download | ||
|
||
sudo mkdir -p /usr/local/kubebuilder/bin | ||
sudo curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o /usr/local/kubebuilder/bin/etcd-${ETCD_VER}-linux-amd64.tar.gz | ||
sudo tar xzvf /usr/local/kubebuilder/bin/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /usr/local/kubebuilder/bin/ --strip-components=1 | ||
sudo chmod +x /usr/local/kubebuilder/bin/etcd | ||
|
||
export PATH=$PATH:/usr/local/kubebuilder/bin |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
echo Installing kube-apiserver | ||
|
||
sudo mkdir -p /usr/local/kubebuilder/bin | ||
|
||
sudo curl -L https://dl.k8s.io/v1.16.4/kubernetes-server-linux-amd64.tar.gz -o /usr/local/kubebuilder/bin/kubernetes-server-linux-amd64.tar.gz | ||
sudo tar xzvf /usr/local/kubebuilder/bin/kubernetes-server-linux-amd64.tar.gz -C /usr/local/kubebuilder/bin/ --strip-components=1 | ||
|
||
sudo cp /usr/local/kubebuilder/bin/server/bin/kube-apiserver /usr/local/kubebuilder/bin | ||
|
||
sudo chmod +x /usr/local/kubebuilder/bin/kube-apiserver | ||
|
||
export PATH=$PATH:/usr/local/kubebuilder/bin |
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.