-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Opentwins Helm upgrade: connections are now independent of the releas…
…e name assigned when installing.
- Loading branch information
1 parent
43c57a7
commit b5f0aaf
Showing
5 changed files
with
132 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
OpenTwins/templates/config-maps/cm-influxdb-grafana-datasource.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{{- if and .Values.grafana.enabled .Values.influxdb2.enabled }} | ||
|
||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: "{{ .Release.Name }}-influxdb2-grafana-datasource" | ||
labels: | ||
app.kubernetes.io/managed-by: {{ .Release.Service | quote }} | ||
app.kubernetes.io/instance: {{ .Release.Name | quote }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion }} | ||
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
"{{ .Values.grafana.sidecar.datasources.label }}": "" | ||
data: | ||
datasources.yaml: |+ | ||
apiVersion: 1 | ||
datasources: | ||
- name: opentwins | ||
type: influxdb | ||
access: proxy | ||
url: http://{{ include "opentwins.influxdb2.fullname" . }}:80 | ||
isDefault: true | ||
jsonData: | ||
version: Flux | ||
organization: "{{ .Values.influxdb2.adminUser.organization }}" | ||
defaultBucket: "{{ .Values.influxdb2.adminUser.bucket }}" | ||
tlsSkipVerify: true | ||
secureJsonData: | ||
token: "{{ .Values.influxdb2.adminUser.token }}" | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{- if or .Values.mongodb.enabled .Values "OpenTwins-MongoDB" "fullnameOverride" }} | ||
{{- $mongoName := include "opentwins.mongodb.fullname" . -}} | ||
|
||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: ditto-mongodb-connection-secret | ||
labels: | ||
app.kubernetes.io/name: {{ template "opentwins.name" . }} | ||
helm.sh/chart: {{ template "opentwins.chart" . }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion }} | ||
type: Opaque | ||
data: | ||
connectivity-uri: {{ .Values.ditto.dbconfig.connectivity.uri | replace "#{PLACEHOLDER_MONGODB_HOSTNAME}#" $mongoName | b64enc | quote }} | ||
things-uri: {{ .Values.ditto.dbconfig.things.uri | replace "#{PLACEHOLDER_MONGODB_HOSTNAME}#" $mongoName | b64enc | quote }} | ||
thingsSearch-uri: {{ .Values.ditto.dbconfig.thingsSearch.uri | replace "#{PLACEHOLDER_MONGODB_HOSTNAME}#" $mongoName | b64enc | quote }} | ||
policies-uri: {{ .Values.ditto.dbconfig.policies.uri | replace "#{PLACEHOLDER_MONGODB_HOSTNAME}#" $mongoName | b64enc | quote }} | ||
|
||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters