mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
ci: disable PodSecurity featuregate
PodSecurity featuregate is beta in kubernetes 1.23 and its causing problem for the existing tests. This PR disables the PodSecurity featuregate for now and will be enabled later. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
c4f79d455f
commit
92272d41c5
@ -230,6 +230,11 @@ up)
|
||||
# if kubernetes version is greater than 1.22 enable RWOP feature gate
|
||||
K8S_FEATURE_GATES="${K8S_FEATURE_GATES},ReadWriteOncePod=true"
|
||||
fi
|
||||
# Disable PodSecurity feature-gate
|
||||
if [ "${KUBE_MAJOR}" -eq 1 ] && [ "${KUBE_MINOR}" -ge 22 ];then
|
||||
# if kubernetes version is greater than 1.22 disable PodSecurity feature gate
|
||||
K8S_FEATURE_GATES="${K8S_FEATURE_GATES},PodSecurity=false"
|
||||
fi
|
||||
# shellcheck disable=SC2086
|
||||
${minikube} start --force --memory="${MEMORY}" --cpus="${CPUS}" -b kubeadm --kubernetes-version="${KUBE_VERSION}" --driver="${VM_DRIVER}" --feature-gates="${K8S_FEATURE_GATES}" --cni="${CNI}" ${EXTRA_CONFIG} ${EXTRA_CONFIG_PSP} --wait-timeout="${MINIKUBE_WAIT_TIMEOUT}" --wait="${MINIKUBE_WAIT}" --delete-on-failure ${DISK_CONFIG}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user