-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2e: Use full infrastructureRef to delegate owner assignment to CAPI …
…controller
- Loading branch information
Brian Mendoza
committed
Feb 9, 2024
1 parent
e5a8715
commit f621939
Showing
2 changed files
with
8 additions
and
19 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
25 changes: 6 additions & 19 deletions
25
e2e/linodecluster-controller/minimal/02-create-linodecluster.yaml
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 |
---|---|---|
@@ -1,19 +1,6 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: | | ||
CLUSTER_UID="$(OBJ=clusters/cluster-sample make getKubeUid)" | ||
cat <<EOF | kubectl apply -n $NAMESPACE -f - | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 | ||
kind: LinodeCluster | ||
metadata: | ||
name: linodecluster-sample | ||
ownerReferences: | ||
- apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
name: cluster-sample | ||
uid: $CLUSTER_UID | ||
spec: | ||
region: us-sea | ||
EOF | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 | ||
kind: LinodeCluster | ||
metadata: | ||
name: linodecluster-sample | ||
spec: | ||
region: us-sea |