-
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: Apply environment variables in TestStep script
- Loading branch information
Brian Mendoza
committed
Feb 9, 2024
1 parent
002e823
commit e5a8715
Showing
2 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
11 changes: 0 additions & 11 deletions
11
e2e/linodecluster-controller/minimal/02-create-linodecluster.tpl.yml
This file was deleted.
Oops, something went wrong.
19 changes: 16 additions & 3 deletions
19
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,6 +1,19 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: |- | ||
CLUSTER_UID="$(OBJ=clusters/cluster-sample make getKubeUid)" \ | ||
TS="$(TPL="$PWD/02-create-linodecluster.tpl.yml" make renderTestCase)" make runTestSuit | ||
- 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 |