fix: correct endpoint default to exclude system namespaces and revert configmap to proper user namespace filtering
This commit is contained in:
@@ -243,7 +243,7 @@ async def get_validations(
|
|||||||
severity: Optional[str] = None,
|
severity: Optional[str] = None,
|
||||||
page: int = 1,
|
page: int = 1,
|
||||||
page_size: int = 50,
|
page_size: int = 50,
|
||||||
include_system_namespaces: bool = True,
|
include_system_namespaces: bool = False,
|
||||||
k8s_client=Depends(get_k8s_client)
|
k8s_client=Depends(get_k8s_client)
|
||||||
):
|
):
|
||||||
"""List resource validations with pagination"""
|
"""List resource validations with pagination"""
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ data:
|
|||||||
CRITICAL_NAMESPACES: '["openshift-monitoring", "openshift-ingress", "openshift-apiserver", "openshift-controller-manager", "openshift-sdn"]'
|
CRITICAL_NAMESPACES: '["openshift-monitoring", "openshift-ingress", "openshift-apiserver", "openshift-controller-manager", "openshift-sdn"]'
|
||||||
|
|
||||||
# Configurações de filtro de namespaces
|
# Configurações de filtro de namespaces
|
||||||
INCLUDE_SYSTEM_NAMESPACES: "true"
|
INCLUDE_SYSTEM_NAMESPACES: "false"
|
||||||
SYSTEM_NAMESPACE_PREFIXES: '["kube-", "openshift-", "knative-", "default", "kube-system", "kube-public", "kube-node-lease"]'
|
SYSTEM_NAMESPACE_PREFIXES: '["kube-", "openshift-", "knative-", "default", "kube-system", "kube-public", "kube-node-lease"]'
|
||||||
|
|
||||||
# URL do Prometheus
|
# URL do Prometheus
|
||||||
|
|||||||
Reference in New Issue
Block a user