File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,14 @@ To create a cluster with [clusterctl](https://cluster-api.sigs.k8s.io/user/quick
27
27
CNI at the same time, run:
28
28
29
29
``` shell
30
- env POD_SECURITY_STANDARD_ENABLED=false \
31
- clusterctl generate cluster capi-quickstart \
32
- --flavor development \
33
- --kubernetes-version v1.27.2 \
34
- --control-plane- machine-count=1 \
35
- --worker-machine-count=1 | \
36
- kubectl label -f - --local --dry-run=client -oyaml capiext.labs.d2iq.io/cni= calico | \
37
- kubectl apply --server-side -f -
30
+ clusterctl generate cluster capi-quickstart \
31
+ --flavor development \
32
+ --kubernetes-version v1.27.2 \
33
+ --control-plane-machine-count=1 \
34
+ --worker- machine-count=1 | \
35
+ gojq --yaml-input --yaml-output \
36
+ ' . | (select(.kind=="Cluster").metadata.labels[" capiext.labs.d2iq.io/cni"]|=" calico") ' | \
37
+ kubectl apply --server-side -f -
38
38
```
39
39
40
40
Wait until control plane is ready:
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ kind.recreate: kind.delete kind.create
26
26
.PHONY : kind.create
27
27
kind.create : # # Creates new KinD cluster
28
28
kind.create : ; $(info $(M ) creating kind cluster - $(KIND_CLUSTER_NAME ) )
29
- (kind get clusters | grep -Eq ' ^$(KIND_CLUSTER_NAME)$$' && echo ' $(KIND_CLUSTER_NAME) already exists' ) || \
29
+ (kind get clusters 2> /dev/null | grep -Eq ' ^$(KIND_CLUSTER_NAME)$$' && echo ' $(KIND_CLUSTER_NAME) already exists' ) || \
30
30
env KUBECONFIG=$(KIND_KUBECONFIG ) $(REPO_ROOT ) /hack/kind/create-cluster.sh \
31
31
--cluster-name $(KIND_CLUSTER_NAME ) \
32
32
--kindest-image $(KINDEST_IMAGE ) \
@@ -36,7 +36,7 @@ kind.create: ; $(info $(M) creating kind cluster - $(KIND_CLUSTER_NAME))
36
36
.PHONY : kind.delete
37
37
kind.delete : # # Deletes KinD cluster
38
38
kind.delete : ; $(info $(M ) deleting kind cluster - $(KIND_CLUSTER_NAME ) )
39
- (kind get clusters | grep -Eq ' ^$(KIND_CLUSTER_NAME)$$' && kind delete cluster --name $( KIND_CLUSTER_NAME) ) || \
39
+ (kind get clusters 2> /dev/null | grep -Eq ' ^$(KIND_CLUSTER_NAME)$$' && kind delete cluster --name $( KIND_CLUSTER_NAME) ) || \
40
40
echo ' $(KIND_CLUSTER_NAME) does not exist'
41
41
rm -rf $(KIND_DIR ) /$(KIND_CLUSTER_NAME )
42
42
You can’t perform that action at this time.
0 commit comments