-
Notifications
You must be signed in to change notification settings - Fork 68
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
refactor: Improve kind-cluster-with* scripts #395
Conversation
- Replace three scripts into one - Add kind cluster configurations in separate files - Enable registry by script parameter Fixes metallb#134 Signed-off-by: Vinu Kochukuttan <[email protected]>
esac | ||
done | ||
|
||
if [[ -z "${KIND_VERSION}" || -z "${CLUSTER_CONFIG}" ]]; then |
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.
I'd make the kind version optional and stick to some default
set -o errexit | ||
|
||
KIND_CLUSTER_NAME="${KIND_CLUSTER_NAME:-kind}" | ||
KIND_VERSION="" |
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.
let's call this "KIND_NODE_VERSION" or "NODE_VERSION" or "KUBERNETES_VERSION" because this is not the version of kidn we are running
@@ -52,7 +52,7 @@ jobs: | |||
|
|||
- name: Create and set up K8s Kind Cluster | |||
run: | | |||
./hack/kind-cluster-with-registry.sh | |||
./hack/kind-cluster.sh --kind-version v1.27.3 --cluster-config ./hack/kind-single-node-config.yaml --registry true |
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.
I'd add a flag single node / multinode rather than exposing which config to load from outside.
Also, the file must have the executable bit: /home/runner/work/_temp/57c09a5e-0aec-419c-bfd5-968945bef91b.sh: line 1: ./hack/kind-cluster.sh: Permission denied |
superseeded by #424 |
Fixes #134