Skip to content

Commit

Permalink
Temporary fix
Browse files Browse the repository at this point in the history
  • Loading branch information
keegansmith21 committed Jul 11, 2024
1 parent 06d3e1a commit dd8eadc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions observatory_platform/google/gke.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def gke_create_volume(*, kubernetes_conn_id: str, volume_name: str, size_gi: int

# Create PersistentVolumeClaim
namespace = hook.get_namespace()
# namespace = "coki-astro"
print(namespace) # TODO delete
namespace = "coki-astro"
# TODO: Fix this. the get_namespace() returns None
pvc = client.V1PersistentVolumeClaim(
api_version="v1",
kind="PersistentVolumeClaim",
Expand Down Expand Up @@ -153,6 +153,8 @@ def gke_delete_volume(*, kubernetes_conn_id: str, volume_name: str):

# Delete VolumeClaim and Volume
namespace = hook.get_namespace()
namespace = "coki-astro"
# TODO: Fix this. the get_namespace() returns None
try:
v1.delete_namespaced_persistent_volume_claim(name=volume_name, namespace=namespace)
except kubernetes.client.exceptions.ApiException as e:
Expand Down

0 comments on commit dd8eadc

Please sign in to comment.