-
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.
nodeselector, tolerations and e2e (#92)
* init k8s test * set spec for uc correctly * ... * add nodeselector and tolderation * add test with tainted nodes * start reconcilers * start goroutine at the right place * test basic with 5 workers and typo * use unused function * install fluxcd with toleration * use minikube instead of k3d for local * typo in cli name * use github action to setup flux cli * rename * fix flux command name * add correct flag for toleration keys * compare only required condition parameters * fix flip * add single toleration key * ok if tainting fails * remove type * change tolerations datatype * test without prints * attempt reading codecov * add more conditions for testing * don't print diff * reduce one parameter read * overengineered functions * typo * fix reg * skip basic test is cluster is tainted' * simplify * fix nodeselector type * make minikube reusable locally * use nodeselector when necessary * fix nodeselector config * set nodeselector if necessary * node selector fix * fix test * spec not being read * more precise argument parsing and placement in one place * make changes to k3s not k8s syncer args * update * enable k8s test * fix manager clusterrole * fix manager clusterrole * increase basic ephemeral storage for k8s to work * fix etcd deployment, make standard storage class as the default one for etcd * refactor * fix crd yaml gen * create new toleration type with it's own nice little sting function * fix toleration notation * fix notation again * remove tolerations from redundant places * add interval and timeout to helmrepos created for source-controller * try out other flags for flux * update vcluster version * increase timeout * add persistence option * set persistence on the syncer * remove unused enableHA * set defaults for persistence * nil ref check for persistence * use k3s instead of minikube * correct args for k3d for setting up the cluster * update k3d command to disable traefik * add missing setup k3d * use minikube and add nodeselector and tolerations on all workload abstractions * update tolerations and nodeselector using a patch * taint after the deployments are updated * iterate over namespaces as well * fix * apply taint first * minikube start: * derefeerence namespace properly * use hack script: * fix hack script location * set nodeselector and tolerations as common config: * correct operator for toleration test * use default storage class * *bool to bool * default storage class is standard * i'm a little tired now * add tolerations directly to certain pods
- Loading branch information
1 parent
d5e15a8
commit 3c7b738
Showing
32 changed files
with
857 additions
and
772 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,8 @@ | ||
name: setup-k3d | ||
description: "Install k3d and create a cluster" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- run: "curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash" | ||
shell: bash |
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,8 @@ | ||
spec: | ||
tolerations: | ||
- key: "testkey" | ||
operator: "Equal" | ||
value: "testvalue" | ||
effect: "NoSchedule" | ||
nodeSelector: | ||
testkey: "testvalue" |
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,10 @@ | ||
spec: | ||
template: | ||
spec: | ||
nodeSelector: | ||
testkey: "testvalue" | ||
tolerations: | ||
- key: "testkey" | ||
operator: "Equal" | ||
value: "testvalue" | ||
effect: "NoSchedule" |
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.