Skip to content

Commit

Permalink
clean up (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
mershad-manesh authored Sep 11, 2023
1 parent 9757979 commit 47a5644
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/modules/installation/pages/installation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ helm upgrade --install -f helm-cloud.yaml \
--set storageClass=onms-share \
--set ingress.certManager.clusterIssuer=opennms-issuer \
--set-file dependencies.truststore.content=jks/truststore.jks \
--set-file dependencies.postgresql.ca_cert=jks/postgresql-ca.crt \
--set-file dependencies.postgresql.caCert=jks/postgresql-ca.crt \
--set dependencies.postgresql.hostname=onms-db.shared.svc \
--set dependencies.kafka.hostname=onms-kafka-bootstrap.shared.svc \
--set dependencies.elasticsearch.hostname=onms-es-http.shared.svc \
Expand Down
8 changes: 4 additions & 4 deletions horizon/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,16 @@ Define custom content for JVM_OPTS to conditionally handle Truststores
{{/*
Define whether RRD is enabled
*/}}
{{- define "core.enable_tss_rrd" -}}
{{ or (not .Values.core.configuration.enable_cortex) .Values.core.configuration.enable_tss_dual_write -}}
{{- define "core.enableTssDualWrite" -}}
{{ or (not .Values.core.configuration.enableCortex) .Values.core.configuration.enableTssDualWrite -}}
{{- end }}

{{/*
Define common content for Grafana Promtail
*/}}
{{- define "core.promtailBaseConfig" -}}
{{- $scheme := "http" -}}
{{- if ((.Values.dependencies).loki).ca_cert -}}
{{- if ((.Values.dependencies).loki).caCert -}}
{{- $scheme := "https" -}}
{{- end -}}
server:
Expand All @@ -104,7 +104,7 @@ clients:
username: {{ .Values.dependencies.loki.username }}
password: {{ .Values.dependencies.loki.password }}
{{- end }}
{{- if ((.Values.dependencies).loki).ca_cert }}
{{- if ((.Values.dependencies).loki).caCert }}
tls_config:
ca_file: /etc/jks/loki-ca.cert
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions horizon/templates/inspector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
volumeMounts:
- name: etc
mountPath: /opt/opennms/etc
{{- if (include "core.enable_tss_rrd" .) }}
{{- if (include "core.enableTssDualWrite" .) }}
- name: rrd
mountPath: /opennms-data/rrd
{{- end }}
Expand All @@ -30,7 +30,7 @@ spec:
- name: etc
persistentVolumeClaim:
claimName: onms-etc-pvc
{{- if (include "core.enable_tss_rrd" .) }}
{{- if (include "core.enableTssDualWrite" .) }}
- name: rrd
persistentVolumeClaim:
claimName: onms-rrd-pvc
Expand Down
4 changes: 2 additions & 2 deletions horizon/templates/opennms-core.statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ spec:
- secretRef:
name: app-credentials
volumeMounts:
{{- if (include "core.enable_tss_rrd" .) }}
{{- if (include "core.enableTssDualWrite" .) }}
- name: rrd
mountPath: /opennms-data/rrd
{{- end }}
Expand Down Expand Up @@ -211,7 +211,7 @@ spec:
persistentVolumeClaim:
claimName: onms-etc-pvc
readOnly: false
{{- if (include "core.enable_tss_rrd" .) }}
{{- if (include "core.enableTssDualWrite" .) }}
- name: rrd
persistentVolumeClaim:
claimName: onms-rrd-pvc
Expand Down
2 changes: 1 addition & 1 deletion horizon/templates/opennms.rrd.pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if (include "core.enable_tss_rrd" .) }}
{{- if (include "core.enableTssDualWrite" .) }}
---
apiVersion: v1
kind: PersistentVolumeClaim
Expand Down

0 comments on commit 47a5644

Please sign in to comment.