Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ private void updateApplicationStatus(DeploymentHistory deployment, KubernetesCli
status.setServicePort((Integer) resourceUsage.get("port"));
status.setCheckedAt(LocalDateTime.now());
status.setClusterName(clusterName);
status.setNamespace(namespace);
// K8s 배포는 항상 default namespace에 배포됨
//status.setNamespace(namespace);
status.setNodeGroupName(deployment.getNodeGroupName()); // 노드 그룹 이름 설정
status.setDeploymentType(DeploymentType.K8S);
status.setCatalog(deployment.getCatalog()); // catalog 정보 설정 추가
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ public void restartApplication(String namespace, String clusterName, SoftwareCat
// kubeconfig 생성
String kubeconfigYaml = getKubeconfigForCluster(namespace, clusterName);
java.nio.file.Path tempKubeconfigPath = createTempKubeconfigFile(kubeconfigYaml);


// K8s 배포는 항상 default namespace에 배포됨
namespace = "default";
try {
// 실제 설치된 릴리스 이름 찾기
String releaseName = findInstalledReleaseName(namespace, tempKubeconfigPath, catalog);
Expand Down Expand Up @@ -54,7 +56,9 @@ public void stopApplication(String namespace, String clusterName, SoftwareCatalo
// kubeconfig 생성
String kubeconfigYaml = getKubeconfigForCluster(namespace, clusterName);
java.nio.file.Path tempKubeconfigPath = createTempKubeconfigFile(kubeconfigYaml);


// K8s 배포는 항상 default namespace에 배포됨
namespace = "default";
try {
// 실제 설치된 릴리스 이름 찾기
String releaseName = findInstalledReleaseName(namespace, tempKubeconfigPath, catalog);
Expand Down Expand Up @@ -90,7 +94,9 @@ public void uninstallApplication(String namespace, String clusterName, SoftwareC
// kubeconfig 생성
String kubeconfigYaml = getKubeconfigForCluster(namespace, clusterName);
java.nio.file.Path tempKubeconfigPath = createTempKubeconfigFile(kubeconfigYaml);


// K8s 배포는 항상 default namespace에 배포됨
namespace = "default";
try {
// 실제 설치된 릴리스 이름 찾기
String releaseName = findInstalledReleaseName(namespace, tempKubeconfigPath, catalog);
Expand Down
Loading