Skip to content

Commit

Permalink
add env variables for io_context knative service
Browse files Browse the repository at this point in the history
  • Loading branch information
metacoma committed May 18, 2024
1 parent ba6e08b commit 0bcd832
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions crossplane/xrd_kcl_function.k
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ items = [
{
apiVersion = "helm.crossplane.io/v1beta1"
kind = "Release"
metadata.name = "neo4j"
metadata.name = "${config.neo4j.release_name}"
spec = {
forProvider = {
chart = {
name = "${charts.neo4j.name}"
repository = "${charts.neo4j.repoURL}"
version = "${config.config.neo4j_version}"
version = "${config.neo4j.version}"
}
namespace = makeContextNamespace("{{ context_name }}")
values = {
Expand Down Expand Up @@ -318,6 +318,20 @@ kind: InMemoryChannel
namespace = makeContextNamespace("{{ context_name }}")
}
spec.template.spec.containers = [{
env = [
{
name = "NEO4J_URL"
value = "bolt://${config.neo4j.release_name}." + makeContextNamespace("{{ context_name }}") + ":${config.neo4j.port}"
}
{
name = "NEO4J_USERNAME"
value = "${config.neo4j.username}"
}
{
name = "NEO4J_PASSWORD"
value = "${config.neo4j.password}"
}
]
image = "${config.Mindwm.context.io_context.image}"
}]

Expand Down

0 comments on commit 0bcd832

Please sign in to comment.