For k8s, use provisioner-managed volumes when an absolute host path is not specified. #741

Merged
telackey merged 8 commits from telackey/autopv into main 2024-02-14 21:45:03 +00:00
Showing only changes of commit eac1cf0246 - Show all commits

View File

@ -95,7 +95,7 @@ class K8sDeployer(Deployer):
print("PVs already present:")
print(f"{pv_resp}")
continue
except:
except: # noqa: E722
pass
pv_resp = self.core_api.create_persistent_volume(body=pv)
@ -118,7 +118,7 @@ class K8sDeployer(Deployer):
print("PVCs already present:")
print(f"{pvc_resp}")
continue
except:
except: # noqa: E722
pass
pvc_resp = self.core_api.create_namespaced_persistent_volume_claim(body=pvc, namespace=self.k8s_namespace)