Skip to content

Commit

Permalink
use kind labels field (#376)
Browse files Browse the repository at this point in the history
Signed-off-by: Manabu McCloskey <[email protected]>
  • Loading branch information
nabuskey authored Aug 29, 2024
1 parent 4f602a4 commit eab34d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
16 changes: 4 additions & 12 deletions pkg/kind/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@ apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
image: "kindest/node:v1.26.3"
kubeadmConfigPatches:
- |
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "ingress-ready=true"
labels:
ingress-ready: "true"
extraPortMappings:
- containerPort: 443
hostPort: 8443
Expand Down Expand Up @@ -77,12 +73,8 @@ apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
image: "kindest/node:v1.26.3"
kubeadmConfigPatches:
- |
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "ingress-ready=true"
labels:
ingress-ready: "true"
extraPortMappings:
- containerPort: 443
hostPort: 8443
Expand Down
8 changes: 2 additions & 6 deletions pkg/kind/resources/kind.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@ apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
image: "kindest/node:{{ .KubernetesVersion }}"
kubeadmConfigPatches:
- |
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "ingress-ready=true"
labels:
ingress-ready: "true"
extraPortMappings:
- containerPort: {{ if (eq .Protocol "http") -}} 80 {{- else -}} 443 {{- end }}
hostPort: {{ .Port }}
Expand Down

0 comments on commit eab34d6

Please sign in to comment.