Skip to content

Commit

Permalink
e2e: Apply environment variables in TestStep script
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Mendoza committed Feb 9, 2024
1 parent 002e823 commit e5a8715
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.

This file was deleted.

19 changes: 16 additions & 3 deletions e2e/linodecluster-controller/minimal/02-create-linodecluster.yaml
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

0 comments on commit e5a8715

Please sign in to comment.