:py:mod:`k8s_client.views.users.charts` ======================================= .. py:module:: k8s_client.views.users.charts Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: k8s_client.views.users.charts.uninstall_completed_charts_for_user k8s_client.views.users.charts.get_user_contexts .. py:function:: uninstall_completed_charts_for_user(username=None) **DEPRECATED!** Uninstalls the completed charts Parameters ---------- ``"username"``: `string`, optional Name of the owner user for which to upload the file **Body parameters** ------------------- ``"force_restart_errored_pods"``: `boolean` Force the system to restart the pods in error Returns ------- - ``[code: 404]`` Error message if: - ``username`` is NOT inside the DB - ``[code: 200]`` `OK` if the job is in `reserved` status .. py:function:: get_user_contexts(username=None) Get user contexts list Parameters ---------- ``"username"``: `string`, optional Name of the owner user for which to get the contexts Returns ------- - ``[code: 404]`` Error message if: - ``username`` is NOT inside the DB - ``[code: 200]`` `list` [`dict`], otherwise Each `dict` items contains: ``"cluster_id"``: `int` ID of the kube config cluster ``"cost"``: `int` Contains the cost for CPU for second of the cluster ``"id"``: `int` ID of the kube config context ``"kubeuser_id"``: `int` ID of the kube config user ``"max_cores_for_single_job"``: `int` Max number of cores usable for a job in MPI inside the cluster ``"name"``: `string` Name of the context ``"namespace"``: `string` Name of the namespace to use