Skip to content

Commit

Permalink
e2e: Use full infrastructureRef to delegate owner assignment to CAPI …
Browse files Browse the repository at this point in the history
…controller
  • Loading branch information
Brian Mendoza committed Feb 9, 2024
1 parent e5a8715 commit f621939
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
2 changes: 2 additions & 0 deletions e2e/linodecluster-controller/minimal/01-create-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ metadata:
name: cluster-sample
spec:
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
kind: LinodeCluster
name: linodecluster-sample
25 changes: 6 additions & 19 deletions e2e/linodecluster-controller/minimal/02-create-linodecluster.yaml
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

0 comments on commit f621939

Please sign in to comment.