-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add mock cluster creation to integration test #21
Merged
+4,488
−1,160
Merged
Changes from 100 commits
Commits
Show all changes
106 commits
Select commit
Hold shift + click to select a range
f1e31a2
fix: add mock cluster creation to integration test
dnitsch f9e5064
fix: unit tests againgst running cluster
dnitsch adc5217
fix: add kubebuilder controller
dnitsch 5e33b58
fix: interim before cmd rework on kubebuilder
dnitsch d5f0f8f
Merge branch 'main' of github.com:dnitsch/strategyrestseeder into fea…
dnitsch df3757a
fix: more test set up
dnitsch 80ed294
fix: update deps
dnitsch b132f30
Merge branch 'main' of github.com:dnitsch/strategyrestseeder into fea…
dnitsch a0be099
Merge branch 'main' of github.com:dnitsch/strategyrestseeder into fea…
dnitsch e8e91f3
fix: add kind destroy
dnitsch d4e24ab
fix: correct false positive test
dnitsch 0a55c38
fix: add more tests
dnitsch 1a10296
fix: make test fixed
dnitsch a0693ef
fix: add kubebuilder to sonar analysis
dnitsch 72e152e
fix: run tests with echo to see if Docker is there
dnitsch d26549d
fix: run tests on host
dnitsch db8bab8
fix: run back in container but use unsafe mount :D
dnitsch 090c359
fix: add docker client
dnitsch cebf3c9
fix: remove global docker hosty
dnitsch 43c0b53
fix: remove sudo
dnitsch 0183131
fix: update repo after adding
dnitsch 938b341
fix: revert to host running
dnitsch 7b2e18e
fix: add go set up
dnitsch 096b1c0
fix: run go test directly
dnitsch ec950ca
fix: test in docker again
dnitsch 17db402
fix: echo stuff out
dnitsch f20a7bb
fix: export KUBECONFIG
dnitsch c2243b5
fix: add kube config path
dnitsch a916e27
fix: mkdir .kube dir
dnitsch d9ed296
fix: log out errors
dnitsch 5a2cd5b
fix: try with kind action
dnitsch b278932
fix: try with priviliged
dnitsch 7995e67
fix: try on host
dnitsch cc74ada
fix: bump version
dnitsch a338ae9
fix: try in docker in docker container
dnitsch 465c832
fix: set CGO_ENABLED=0
dnitsch 391d758
fix: remove -race
dnitsch f9a3d1c
fix: try creating and tearing down kind
dnitsch 5930911
fix: remove install as run on host
dnitsch df5eb80
fix: use local kind
dnitsch 8420c77
fix: add DCOKER_HOST
dnitsch 70a464a
fix: enable global CGO
dnitsch 70c8882
fix: temp remove version job
dnitsch 8da9058
fix: add gcc since go setup doesnt seem to do it
dnitsch 2543077
fix: try this
dnitsch a6aa95a
fix: udpate to tests
dnitsch a317e29
fix: add this
dnitsch f2d6d38
fix: remove kubectl
dnitsch 88e383b
fix: remove engineerd
dnitsch 401ae89
fix: temporarily disable CI conditional in test env start up
dnitsch c66968b
fix: add KUBECONFIG back to the job
dnitsch cc96e5f
fix: _?
dnitsch f07a181
fix: add more logging
dnitsch cfb3cd9
fix: __?
dnitsch 84ad282
fix: remove flag
dnitsch 8e9f72a
fix: add timeout to commandline
dnitsch a89725c
fix: test this
dnitsch 407f5b2
fix: add echo to kind test
dnitsch 01e793b
fix: add kubectl tool
dnitsch a0593c3
fix: see config
dnitsch d6b619b
fix: try grabbing the IP inside tghe container network
dnitsch fdc9301
fix: see if serverUrl override will work
dnitsch 7ffc245
fix: try with port
dnitsch f9f7fdc
fix(test): change the server to internal IP{
dnitsch 6874392
fix: try this fron GHA
dnitsch 9388089
fix: remove KUBCONFIG export
dnitsch f1b7a84
fix: try with IP
dnitsch 69a0b62
fix: try with config supplied
dnitsch 1b91c13
cat out
dnitsch 04b4c8d
fix: formatting
dnitsch f8d17b5
fix: add ootb url
dnitsch 75cb8e2
try this
dnitsch 8069b0c
fix: try setting KIND_EXPERIMENTAL_DOCKER_NETWORK before create cluster
dnitsch a64d61d
fix: remove kind job
dnitsch 3fef55a
fix: remove env var global
dnitsch 992c99d
fix: install kind
dnitsch 7d42689
fix: create command
dnitsch 5456321
fix: ...
dnitsch c0c38f7
fix: use full path
dnitsch 5ae06cf
fix: use = for flags
dnitsch 5f613c6
fix: confi
dnitsch 41011e1
fix: remove ports
dnitsch c2a2894
fix: enable tests on kubebuilder
dnitsch 9230109
fix: add DOCKER_HOST
dnitsch 5415fcd
fix: add eventually from BDD
dnitsch ae0b3ce
fix: apply in test kind
dnitsch 9e96a65
fix: run with logger in getting pods
dnitsch 8472aa6
fix: try with fmt write to stdout
dnitsch 3edc776
fix: add separate job container
dnitsch 11ba97b
fix: what a hack
dnitsch 7285581
fix: try not setting the masterUrl
dnitsch cb17b56
fix: try without start cluster
dnitsch 23a36f6
fix: remove skip
dnitsch 45a8b57
fix: remove condition
dnitsch 4c15e24
fix: try this
dnitsch 4109cbb
fix: try this
dnitsch 2104206
fix: terminate quote
dnitsch fd97f55
fix: correct kube config
dnitsch b503da1
fix: try on the host directly
dnitsch 71c0e41
fix: add all tests back
dnitsch a1ed36e
fix: add test helper package
dnitsch 2fdd6e1
fix: remove set version from CI workflow
dnitsch dff9f33
fix: remove needs
dnitsch a6a4b1d
fix: ignore scratch pad
dnitsch 45bb3d8
fix: remove unused methods
dnitsch 823e8fa
fix: address comments
dnitsch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,53 @@ | ||
name: CI-ScratchPad-PR | ||
|
||
on: | ||
workflow_run: null | ||
# pull_request: | ||
# branches: [ master, main ] | ||
|
||
jobs: | ||
kind-test-scratch-pad: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: dnitsch/gha-dind:0.0.6 | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
options: --privileged=true --group-add=docker | ||
env: | ||
GOVCS: false | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
- name: DL tools | ||
run: | | ||
curl -LO https://dl.k8s.io/release/v1.26.1/bin/linux/amd64/kubectl | ||
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl | ||
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.17.0/kind-linux-amd64 | ||
install -o root -g root -m 0755 kind /usr/local/bin/kind | ||
- name: Get KubeConfig | ||
run: | | ||
export KUBECONFIG=$HOME/.kube/config | ||
export KIND_EXPERIMENTAL_DOCKER_NETWORK=${{ job.container.network }} | ||
echo 'kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
networking: | ||
apiServerAddress: "127.0.0.1" | ||
apiServerPort: 6443' > $PWD/kind-config.yml | ||
|
||
cat $PWD/kind-config.yml | ||
|
||
kind create cluster --config=$PWD/kind-config.yml | ||
|
||
echo "get internal" | ||
kind get kubeconfig --internal | ||
echo "get normal" | ||
kind get kubeconfig | ||
|
||
kubectl config set-cluster kind-kind --server=https://kind-control-plane:6443 | ||
|
||
kubectl get pods -n kube-system | ||
kubectl cluster-info | ||
kubectl apply -f ./kubebuilder-controller/config/crd/bases/seeder.dnitsch.net_reststrategies.yaml | ||
|
||
kubectl get pods -n kube-system |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this still needed or is it just for reference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's just for reference but can be removed actually...