Skip to content

Commit

Permalink
Merge pull request #113 from francescotimperi/static-web-fix
Browse files Browse the repository at this point in the history
fix: revert util.get_enable_pod_security() function to previous worki…
  • Loading branch information
francescotimperi authored Sep 22, 2023
2 parents 31b9ed0 + 7b3555e commit 4b5f83c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nuvolaris/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,13 +394,13 @@ def get_value_from_config_map(namespace="nuvolaris", path='{.metadata.annotation
def get_enable_pod_security():
"""
Return true if there is the need to enable pod security context
for some specific pod. This is currently used for bitnami based images
when using storage classes block based
for some specific pod. This is a test based on some empiric assumption on runtime
basis and/or storage class.
@TODO: find a better way to determine when this function should return true.
"""
#runtime = cfg.get('nuvolaris.kube')
#return runtime in ["eks","gke","aks","generic"]
runtime = cfg.get('nuvolaris.kube')
storage_class = cfg.get('nuvolaris.storageclass')
return storage_class not in ['standard','local-path','microk8s-hostpath']
return runtime in ["eks","gke","aks","generic"] or (runtime in ["k3s"] and "rook" in storage_class)


def get_runtimes_json_from_config_map(namespace="nuvolaris", path='{.data.runtimes\.json}'):
Expand Down

0 comments on commit 4b5f83c

Please sign in to comment.