Skip to content

Commit

Permalink
add management policies
Browse files Browse the repository at this point in the history
  • Loading branch information
aureamunoz committed May 3, 2024
1 parent f2e8299 commit e265ffb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import java.util.Optional;
import java.util.regex.Pattern;

import io.crossplane.helm.v1beta1.ReleaseSpec;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.transaction.Transactional;

Expand Down Expand Up @@ -244,7 +245,7 @@ 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().withNewForProvider().addNewSet().withName("auth.database")
.endMetadata().withNewSpec().withManagementPolicies(ReleaseSpec.ManagementPolicies.CREATE).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)
Expand Down

0 comments on commit e265ffb

Please sign in to comment.