Skip to content

Commit

Permalink
Only set feature gates if we're running alpha tests
Browse files Browse the repository at this point in the history
  • Loading branch information
msau42 committed Jul 10, 2019
1 parent dffed73 commit ee0210c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions release-tools/prow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,14 @@ kind: Cluster
apiVersion: kind.sigs.k8s.io/v1alpha3
nodes:
- role: control-plane
EOF

# kubeadm has API dependencies between apiVersion and Kubernetes version
# 1.15+ requires kubeadm.k8s.io/v1beta2
# We only run alpha tests against master so we don't need to maintain
# different patches for different Kubernetes releases.
if [[ -n "$gates" ]]; then
cat >>"${CSI_PROW_WORK}/kind-config.yaml" <<EOF
kubeadmConfigPatches:
- |
apiVersion: kubeadm.k8s.io/v1beta2
Expand Down Expand Up @@ -500,6 +508,8 @@ kubeadmConfigPatches:
featureGates:
$(list_gates "$gates")
EOF
fi

info "kind-config.yaml:"
cat "${CSI_PROW_WORK}/kind-config.yaml"
if ! run kind create cluster --name csi-prow --config "${CSI_PROW_WORK}/kind-config.yaml" --wait 5m --image "$image"; then
Expand Down

0 comments on commit ee0210c

Please sign in to comment.