Support StatefulSet e2e tests by creating a hostpath default storage class
filed upstream PR as well: https://github.com/kubernetes/kubernetes/pull/45119 Change-Id: I5350552a97e9efc40c592cb9df4b24c0bafdbd9f
This commit is contained in:
parent
02b986c9c8
commit
a7cc59cca6
|
@ -122,6 +122,20 @@ echo "Dump Kubernetes Objects..."
|
|||
./kubectl get serviceaccounts
|
||||
./kubectl get services
|
||||
|
||||
echo "Create a default StorageClass since we do not have a cloud provider"
|
||||
./kubectl create -f - <<EOF || true
|
||||
kind: StorageClass
|
||||
apiVersion: storage.k8s.io/v1
|
||||
metadata:
|
||||
namespace: kube-system
|
||||
name: standard
|
||||
annotations:
|
||||
storageclass.beta.kubernetes.io/is-default-class: "true"
|
||||
labels:
|
||||
addonmanager.kubernetes.io/mode: Reconcile
|
||||
|
||||
provisioner: kubernetes.io/host-path
|
||||
EOF
|
||||
|
||||
echo "Running tests..."
|
||||
set -ex
|
||||
|
|
Loading…
Reference in New Issue