From 44275a91e65262c8a73337afeb13fb024991367d Mon Sep 17 00:00:00 2001 From: OhSeongRak Date: Wed, 18 Jun 2025 14:52:48 +0900 Subject: [PATCH] refactor: remove korean in configmap --- deployment/manifest/frontend-configmap.yaml | 30 ++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/deployment/manifest/frontend-configmap.yaml b/deployment/manifest/frontend-configmap.yaml index e3e164d..b42eff2 100644 --- a/deployment/manifest/frontend-configmap.yaml +++ b/deployment/manifest/frontend-configmap.yaml @@ -5,10 +5,10 @@ metadata: namespace: ${namespace} data: runtime-env.js: | - console.log('=== RUNTIME-ENV.JS 로드됨 (배포 환경) ==='); + console.log('=== RUNTIME-ENV.JS LOADED (PRODUCTION) ==='); window.__runtime_config__ = { - // 백엔드 API 구조에 맞게 URL 설정 - ingress host 사용 + // Backend API URLs using ingress host AUTH_URL: 'http://${ingress_host}/api/auth', MEMBER_URL: 'http://${ingress_host}/api/member', STORE_URL: 'http://${ingress_host}/api/store', @@ -17,10 +17,10 @@ data: CONTENT_URL: 'http://${ingress_host}/api/content', RECOMMEND_URL: 'http://${ingress_host}/api/recommend', - // Gateway URL (운영 환경) + // Gateway URL (production environment) GATEWAY_URL: 'http://${ingress_host}', - // 기능 플래그 + // Feature flags FEATURES: { ANALYTICS: true, PUSH_NOTIFICATIONS: true, @@ -29,46 +29,46 @@ data: API_HEALTH_CHECK: true, }, - // 환경 설정 (배포 환경) + // Environment settings (production) ENV: 'production', DEBUG: false, - // API 타임아웃 설정 + // API timeout settings API_TIMEOUT: 30000, - // 재시도 설정 + // Retry settings RETRY_ATTEMPTS: 3, RETRY_DELAY: 1000, - // 버전 정보 + // Version info VERSION: '1.0.0', BUILD_DATE: new Date().toISOString() }; - // 설정 검증 함수 + // Config validation function const validateConfig = () => { const config = window.__runtime_config__; const requiredUrls = ['AUTH_URL', 'STORE_URL', 'SALES_URL', 'RECOMMEND_URL']; for (const url of requiredUrls) { if (!config[url]) { - console.error(`❌ [CONFIG] 필수 URL 누락: ${url}`); + console.error('Missing required URL: ' + url); return false; } } - console.log('✅ [CONFIG] 설정 검증 완료'); + console.log('Config validation completed'); return true; }; - // 전역 설정 접근 함수 + // Global config access functions window.getApiConfig = () => window.__runtime_config__; window.getApiUrl = (serviceName) => { const config = window.__runtime_config__; - const urlKey = `${serviceName.toUpperCase()}_URL`; + const urlKey = serviceName.toUpperCase() + '_URL'; return config[urlKey] || null; }; - // 설정 검증 실행 + // Execute validation validateConfig(); - console.log('✅ [RUNTIME] 런타임 설정 로드 완료 (배포 환경)'); \ No newline at end of file + console.log('Runtime config loaded successfully (PRODUCTION)'); \ No newline at end of file