remove existing local storage class in kind

This commit is contained in:
Felix Kunde 2020-08-27 10:51:56 +02:00
parent e8cccba9e7
commit 414ee5befa
3 changed files with 5 additions and 2 deletions

View File

@ -38,6 +38,9 @@ class EndToEndTestCase(unittest.TestCase):
# set a single K8s wrapper for all tests # set a single K8s wrapper for all tests
k8s = cls.k8s = K8s() k8s = cls.k8s = K8s()
# remove existing local storage class and create hostpath class
k8s.api.storage_v1_api.delete_storage_class("standard")
# operator deploys pod service account there on start up # operator deploys pod service account there on start up
# needed for test_multi_namespace_support() # needed for test_multi_namespace_support()
cls.namespace = "test" cls.namespace = "test"
@ -768,6 +771,7 @@ class K8sApi:
self.batch_v1_beta1 = client.BatchV1beta1Api() self.batch_v1_beta1 = client.BatchV1beta1Api()
self.custom_objects_api = client.CustomObjectsApi() self.custom_objects_api = client.CustomObjectsApi()
self.policy_v1_beta1 = client.PolicyV1beta1Api() self.policy_v1_beta1 = client.PolicyV1beta1Api()
self.storage_v1_api = client.StorageV1Api()
class K8s: class K8s:

View File

@ -2,7 +2,7 @@ apiVersion: storage.k8s.io/v1
kind: StorageClass kind: StorageClass
metadata: metadata:
namespace: kube-system namespace: kube-system
name: e2e-standard name: standard
annotations: annotations:
storageclass.kubernetes.io/is-default-class: "true" storageclass.kubernetes.io/is-default-class: "true"
provisioner: kubernetes.io/host-path provisioner: kubernetes.io/host-path

View File

@ -7,7 +7,6 @@ spec:
teamId: "acid" teamId: "acid"
volume: volume:
size: 1Gi size: 1Gi
storageClass: e2e-standard
numberOfInstances: 2 numberOfInstances: 2
users: users:
zalando: # database owner zalando: # database owner