Skip to content

Commit

Permalink
* Chronicle secrets decoded to the correct paths
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan <[email protected]>
  • Loading branch information
ryan-s-roberts committed Jun 17, 2024
1 parent 9f1a236 commit 94db178
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 574 deletions.
10 changes: 4 additions & 6 deletions charts/chronicle/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ spec:
vault.hashicorp.com/agent-pre-populate-only: "true"
vault.hashicorp.com/role: "admin"
vault.hashicorp.com/ca-cert: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
vault.hashicorp.com/agent-inject-secret-chronicle_identity: "kv/chronicle/chronicle_identity"
vault.hashicorp.com/agent-inject-secret-chronicle-pk: "kv/chronicle/chronicle_account"
vault.hashicorp.com/agent-inject-template-chronicle: |
{{`{{ with secret "kv/chronicle/chronicle_identity" }}{{ .Data.data.secret_seed }}{{ end }}`}}
vault.hashicorp.com/agent-inject-template-chronicle-pk: |
{{`{{ with secret "kv/chronicle/chronicle_identity" }}{{ .Data.data.secretSeed }}{{ end }}`}}
vault.hashicorp.com/agent-inject-template-batcher-pk: |
{{`{{ with secret "kv/chronicle/chronicle_account" }}{{ .Data.data.secret_seed }}{{ end }}`}}
{{`{{ with secret "kv/chronicle/chronicle_account" }}{{ .Data.data.secretSeed }}{{ end }}`}}
spec:
serviceAccountName: {{ include "lib.serviceAccountName" . }}
affinity: {{ include "lib.safeToYaml" .Values.affinity | nindent 8 }}
Expand Down Expand Up @@ -100,7 +98,7 @@ spec:
{{ include "chronicle.id-claims" . }}
env: {{ include "lib.safeToYaml" .Values.env | nindent 12 }}
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: "localhost:4317"
value: "signoz-otel-collector-metrics.observability.svc:4317"
- name: OTEL_RESOURCE_ATTRIBUTES
value: "service.name=chronicle,service.instance.id={{ .Release.Name }}"
- name: OTEL_SERVICE_NAME
Expand Down
14 changes: 14 additions & 0 deletions terraform/chronicle-substrate/network.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
resource "kubernetes_namespace" "chronicle-substrate" {
metadata {
name = var.kubernetes_namespace
}

lifecycle {
ignore_changes = [
metadata[0].labels,
]
}
}



#------------------------------------------------------------------------------
# Bootnode deployment
#------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion terraform/chronicle-substrate/templates/bootnode.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ node:
replicas: 1
command: node-chronicle
logLevels:
- info
- trace
- wasmtime_cranelift=info
- wasmtime_jit=info
chainData:
Expand Down
Loading

0 comments on commit 94db178

Please sign in to comment.