Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

k37y
Copy link

@k37y k37y commented Oct 15, 2023

  • Replace three scripts into one
  • Add kind cluster configurations in separate files
  • Enable registry by script parameter

Fixes #134

- 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
Copy link
Member

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=""
Copy link
Member

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
Copy link
Member

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.

@fedepaol
Copy link
Member

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

@fedepaol
Copy link
Member

superseeded by #424

@fedepaol fedepaol closed this Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor the kind-cluster-with* scripts
2 participants