<filename>components/crud-web-apps/common/backend/kubeflow/kubeflow/crud_backend/api/poddefault.py
from .. import authz
from . import custom_api


def list_poddefaults(namespace):
    authz.ensure_authorized("list", "kubeflow.org", "v1alpha1", "poddefaults",
                            namespace)
    return custom_api.list_namespaced_custom_object("kubeflow.org", "v1alpha1",
                                                    namespace, "poddefaults")

<filename>components/crud-web-apps/common/backend/kubeflow/kubeflow/crud_backend/api/poddefault.py
from .. import authz
from . import custom_api


def list_poddefaults(namespace):
    authz.ensure_authorized("list", "kubeflow.org", "v1alpha1", "poddefaults",
                            namespace)
    return custom_api.list_namespaced_custom_object("kubeflow.org", "v1alpha1",
                                                    namespace, "poddefaults")
