use of io.fabric8.kubernetes.api.model.storage.StorageClass in project strimzi-kafka-operator by strimzi.
the class NamespaceDeletionRecoveryIsolatedST method createStorageClass.
@BeforeAll
void createStorageClass() {
kubeClient().getClient().storage().storageClasses().withName(storageClassName).delete();
StorageClass storageClass = new StorageClassBuilder().withNewMetadata().withName(storageClassName).endMetadata().withProvisioner("kubernetes.io/cinder").withReclaimPolicy("Retain").build();
kubeClient().getClient().storage().storageClasses().createOrReplace(storageClass);
}
Aggregations