-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace schemaJob with a call to management API (#44)
* Move from datastax/cass-operator to k8ssandra/cass-operator * Add new createSchema call that uses management-api to create the schema, remove schemaJob creation * Fix make test, add fake http server to accept schema creation calls, disable metrics-server in tests * Remove commented out schema job check from tests * Update to cass-operator v1.7.0 * Run e2e-test on PRs * Separate CRD deployment in the e2e-test and wait for it to complete before deploying the operators * Fix CRD deployment path in envtest * Increase timeout * Remove resource requirements to fit GHA better * Remove dead code
- Loading branch information
Showing
23 changed files
with
691 additions
and
680 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,4 +1,4 @@ | ||
name: Unit testing | ||
name: Testing and building docker images | ||
|
||
on: | ||
push: | ||
|
@@ -10,7 +10,7 @@ on: | |
|
||
jobs: | ||
testing: | ||
name: Run unit tests | ||
name: Run tests | ||
runs-on: ubuntu-latest | ||
env: | ||
GOPATH: /home/runner/go | ||
|
@@ -21,21 +21,29 @@ jobs: | |
with: | ||
go-version: ^1.15 | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Run unit tests | ||
run: | | ||
export PATH=$GOROOT/bin:$GOPATH/bin:$PATH | ||
make test | ||
- name: Create Kind Cluster | ||
uses: helm/[email protected] | ||
with: | ||
version: v0.10.0 | ||
node_image: kindest/node:v1.20.2 | ||
cluster_name: kind | ||
config: test/config/kind/kind_config_3_workers.yaml | ||
- name: Run e2e-test | ||
run: | | ||
export PATH=$GOROOT/bin:$GOPATH/bin:$PATH | ||
make e2e-test | ||
push_docker_image: | ||
runs-on: ubuntu-latest | ||
needs: testing | ||
|
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.