From 204310968bcd3962856513f1073f97dbf1171bc0 Mon Sep 17 00:00:00 2001 From: hyun123 Date: Thu, 16 Jan 2025 01:33:43 +0900 Subject: [PATCH] helm update --- build.gradle | 3 ++- .../softwarecatalog/kubernetes/service/HelmChartService.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 753aa34..8368cf0 100644 --- a/build.gradle +++ b/build.gradle @@ -104,7 +104,8 @@ dependencies { implementation 'io.fabric8:kubernetes-client:6.10.0' implementation 'io.fabric8:kubernetes-model-metrics:6.10.0' - implementation 'com.marcnuri.helm-java:helm-java:0.0.13' + // implementation 'com.marcnuri.helm-java:helm-java:0.0.13' + implementation 'com.marcnuri.helm-java:helm-java:0.0.9' implementation 'com.github.docker-java:docker-java:3.3.0' implementation 'com.github.docker-java:docker-java-transport-httpclient5:3.3.0' diff --git a/src/main/java/kr/co/mcmp/softwarecatalog/kubernetes/service/HelmChartService.java b/src/main/java/kr/co/mcmp/softwarecatalog/kubernetes/service/HelmChartService.java index 3456242..22ba6f1 100644 --- a/src/main/java/kr/co/mcmp/softwarecatalog/kubernetes/service/HelmChartService.java +++ b/src/main/java/kr/co/mcmp/softwarecatalog/kubernetes/service/HelmChartService.java @@ -40,7 +40,7 @@ public Release deployHelmChart(KubernetesClient client, String namespace, Softwa .withKubeConfig(tempConfigFile) .withName(catalog.getHelmChart().getChartName()) .withNamespace(namespace) - .withVersion(catalog.getHelmChart().getChartVersion()) + // .withVersion(catalog.getHelmChart().getChartVersion()) .set("replicaCount", catalog.getMinReplicas()) .set("image.repository", catalog.getHelmChart().getImageRepository()) .set("image.tag", "latest") @@ -53,7 +53,7 @@ public Release deployHelmChart(KubernetesClient client, String namespace, Softwa .set("persistence.enabled", false) .set("securityContext.enabled", false) .set("serviceAccount.create", true) - .withTimeout(300) + // .with(300) .waitReady(); if (Boolean.TRUE.equals(catalog.getHpaEnabled())) {