Add system namespace filtering

- Add configuration to exclude system namespaces by default
- Add UI checkbox to include system namespaces when needed
- Update API endpoints to accept include_system_namespaces parameter
- Update Kubernetes client to apply namespace filtering
- Update ConfigMap and deployment with new environment variables
- Fix Dockerfile to install dependencies globally
- Test functionality with both filtered and unfiltered results
This commit is contained in:
2025-09-25 17:39:33 -03:00
parent 3a6875a80e
commit 071ffefef7
7 changed files with 90 additions and 9 deletions

View File

@@ -29,11 +29,9 @@ RUN groupadd -r appuser && useradd -r -g appuser appuser
RUN mkdir -p /app /tmp/reports && \
chown -R appuser:appuser /app /tmp/reports
# Copiar dependências Python do stage anterior
COPY --from=builder /root/.local /home/appuser/.local
# Definir PATH para incluir dependências locais
ENV PATH=/home/appuser/.local/bin:$PATH
# Instalar dependências Python globalmente
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Definir diretório de trabalho
WORKDIR /app