diff --git a/app/src/main/java/io/halkyon/services/KubernetesClientService.java b/app/src/main/java/io/halkyon/services/KubernetesClientService.java index 7951902c..4f7133cb 100644 --- a/app/src/main/java/io/halkyon/services/KubernetesClientService.java +++ b/app/src/main/java/io/halkyon/services/KubernetesClientService.java @@ -244,13 +244,12 @@ public void createCrossplaneHelmRelease(Cluster cluster, io.halkyon.model.Servic // Create Release object ReleaseBuilder release = new ReleaseBuilder(); release.withApiVersion("helm.crossplane.io").withKind("v1beta1").withNewMetadata().withName(service.helmChart) - .endMetadata().withNewSpec().withNewV1beta1ForProvider().addNewV1beta1Set().withName("auth.database") - .withValue("fruits_database").endV1beta1Set().addNewV1beta1Set().withName("auth.username") - .withValue("healthy").endV1beta1Set().addNewV1beta1Set().withName("auth.password").withValue("healthy") - .endV1beta1Set().withNamespace(service.namespace).withWait(true).withNewV1beta1Chart() - .withName(service.helmChart).withRepository(service.helmRepo).withVersion(service.helmChartVersion) - .endV1beta1Chart().endV1beta1ForProvider().withNewV1beta1ProviderConfigRef().withName("helm-provider") - .endV1beta1ProviderConfigRef().endSpec(); + .endMetadata().withNewSpec().withNewForProvider().addNewSet().withName("auth.database") + .withValue("fruits_database").endSet().addNewSet().withName("auth.username").withValue("healthy") + .endSet().addNewSet().withName("auth.password").withValue("healthy").endSet() + .withNamespace(service.namespace).withWait(true).withNewChart().withName(service.helmChart) + .withRepository(service.helmRepo).withVersion(service.helmChartVersion).endChart().endForProvider() + .withNewProviderConfigRef().withName("helm-provider").endProviderConfigRef().endSpec(); // TODO: Logic to be reviewed as we have 2 use cases: // Service(s) instances has been discovered in cluster x.y.z diff --git a/pom.xml b/pom.xml index bbdf1565..9a899132 100644 --- a/pom.xml +++ b/pom.xml @@ -42,7 +42,7 @@ 2.23.0 1.9.0 1.18.30 - 0.101.3 + 999-SNAPSHOT true format