File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 61
61
export INSTANCE_SIZE=$(yq '.instance-size' -e ./tests/infrastructure.yaml)
62
62
INSTANCE_TYPE=$(yq '.[env(KUBERNETES_DISTRIBUTION)].[env(KUBERNETES_ARCHITECTURE)].[env(INSTANCE_SIZE)]' -e "$GITHUB_ACTION_PATH/instances.yml")
63
63
64
+ # Optional config options
65
+ CLUSTER_TTL=$(yq '.cluster-ttl' -e ./tests/infrastructure.yaml || echo "4h")
66
+ INSTANCE_NODES=$(yq '.nodes' -e ./tests/infrastructure.yaml || echo "1")
67
+ INSTANCE_DISK=$(yq '.disk' -e ./tests/infrastructure.yaml|| echo "50")
68
+
64
69
echo "INSTANCE_TYPE=$INSTANCE_TYPE" | tee -a "$GITHUB_ENV"
70
+ echo "CLUSTER_TTL=$CLUSTER_TTL" | tee -a "$GITHUB_ENV"
71
+ echo "INSTANCE_NODES=$INSTANCE_NODES" | tee -a "$GITHUB_ENV"
72
+ echo "INSTANCE_DISK=$INSTANCE_DISK" | tee -a "$GITHUB_ENV"
65
73
66
74
############################
67
75
# Validate Test Parameters #
99
107
instance-type : ${{ env.INSTANCE_TYPE }}
100
108
kubernetes-distribution : ${{ env.KUBERNETES_DISTRIBUTION }}
101
109
kubernetes-version : ${{ env.KUBERNETES_VERSION }}
102
- ttl : 4h # todo: allow this to be configurable
103
- disk : 50 # todo: allow this to be configurable
104
- nodes : 1 # todo: allow this to be configurable
110
+ ttl : ${{ env.CLUSTER_TTL }}
111
+ disk : ${{ env.INSTANCE_DISK }}
112
+ nodes : ${{ env.INSTANCE_NODES }}
105
113
tags : |
106
114
- key: node-architecture
107
115
value: ${{ env.KUBERNETES_ARCHITECTURE }}
You can’t perform that action at this time.
0 commit comments