Fix: Translate all validation messages and UI text from Portuguese to English
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
"""
|
||||
Configurações da aplicação
|
||||
Application settings
|
||||
"""
|
||||
import os
|
||||
from typing import List, Optional
|
||||
@@ -7,17 +7,17 @@ from pydantic_settings import BaseSettings
|
||||
from pydantic import Field
|
||||
|
||||
class Settings(BaseSettings):
|
||||
"""Configurações da aplicação"""
|
||||
"""Application settings"""
|
||||
|
||||
# Configurações do OpenShift/Kubernetes
|
||||
# OpenShift/Kubernetes settings
|
||||
kubeconfig_path: Optional[str] = None
|
||||
cluster_url: Optional[str] = None
|
||||
token: Optional[str] = None
|
||||
|
||||
# Configurações do Prometheus
|
||||
# Prometheus settings
|
||||
prometheus_url: str = "http://prometheus.openshift-monitoring.svc.cluster.local:9090"
|
||||
|
||||
# Configurações de validação
|
||||
# Validation settings
|
||||
cpu_limit_ratio: float = 3.0 # Ratio padrão limit:request para CPU
|
||||
memory_limit_ratio: float = 3.0 # Ratio padrão limit:request para memória
|
||||
min_cpu_request: str = "10m" # Mínimo de CPU request
|
||||
@@ -32,7 +32,7 @@ class Settings(BaseSettings):
|
||||
"openshift-sdn"
|
||||
]
|
||||
|
||||
# Configurações de filtro de namespaces
|
||||
# Namespace filter settings
|
||||
include_system_namespaces: bool = Field(default=False, alias="INCLUDE_SYSTEM_NAMESPACES")
|
||||
system_namespace_prefixes: List[str] = Field(
|
||||
default=[
|
||||
@@ -50,10 +50,10 @@ class Settings(BaseSettings):
|
||||
env_file = ".env"
|
||||
case_sensitive = False
|
||||
|
||||
# Configurações de relatório
|
||||
# Report settings
|
||||
report_export_path: str = "/tmp/reports"
|
||||
|
||||
# Configurações de segurança
|
||||
# Security settings
|
||||
enable_rbac: bool = True
|
||||
service_account_name: str = "resource-governance-sa"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user