|
def get_helm_installations(namespace: Optional[str] = None): |
Without taking an options dict, we can't pass kube-context to tell helm which cluster to get the installations from. (Well we can, because the string handling isn't secure, we can just use f"{namespace} --kube-context {context}" for the namespace name, but that seems abusive).
is_installed as a property also has no way to pass the context. But that seems like a bigger lift to improve.
avionix/avionix/chart/utils.py
Line 7 in c149e43
Without taking an options dict, we can't pass kube-context to tell helm which cluster to get the installations from. (Well we can, because the string handling isn't secure, we can just use
f"{namespace} --kube-context {context}"for the namespace name, but that seems abusive).avionix/avionix/chart/chart_builder.py
Line 328 in c149e43
is_installedas a property also has no way to pass the context. But that seems like a bigger lift to improve.