Skip to content

Commit

Permalink
Use the latest sundrio version
Browse files Browse the repository at this point in the history
Related #464
  • Loading branch information
aureamunoz committed May 3, 2024
1 parent 299f7be commit d9e6439
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<formatter-maven-plugin.version>2.23.0</formatter-maven-plugin.version>
<impsort-maven-plugin.version>1.9.0</impsort-maven-plugin.version>
<lobmok.version>1.18.30</lobmok.version>
<sundrio.version>0.101.3</sundrio.version>
<sundrio.version>999-SNAPSHOT</sundrio.version>

<skipITs>true</skipITs>
<src.format.goal>format</src.format.goal>
Expand Down

0 comments on commit d9e6439

Please sign in to comment.