Skip to content

Commit 772e377

Browse files
committed
Fix #9: Remove behavior change based on specific opcrouter/runtime image repository
1 parent b0a0037 commit 772e377

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

charts/opc-router/templates/deployment.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ spec:
2020
labels:
2121
{{- include "opc-router.labels" . | nindent 8 }}
2222
{{- include "opc-router.originalSelectorLabels" . | nindent 8 }}
23-
{{- if eq .Values.image.repository "opcrouter/runtime" }}
2423
{{- if not .Values.mongodb.deploy }}
2524
{{- include "opc-router.selectorLabels" . | nindent 8 }}
2625
{{- end }}
27-
{{- end }}
2826
spec:
2927
{{- with .Values.imagePullSecrets }}
3028
imagePullSecrets:
@@ -49,13 +47,11 @@ spec:
4947
protocol: TCP
5048
name: web-management
5149
{{- end }}
52-
{{- if eq .Values.image.repository "opcrouter/runtime" }}
5350
{{- if not .Values.mongodb.deploy }}
5451
- name: mongodb
5552
containerPort: 27017
5653
protocol: TCP
5754
{{- end }}
58-
{{- end }}
5955
# Environment variables for the opcrouter container
6056
env:
6157
# Variables for connecting a service to the mongodb if a service is specified

charts/opc-router/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ image:
66
# Image for the opc router container
77
# Has to be either "opcrouter/runtime" for the integrated database
88
# or "opcrouter/service", which utilizes the external mongodb
9+
# If using an image which uses an integrated mongodb like opcrouter/runtime,
10+
# it is required to set 'mongodb.deploy' to 'false' for the integrated mongodb to be used
911
repository: opcrouter/service
1012
pullPolicy: IfNotPresent
1113
# Overrides the image tag whose default is the chart appVersion.

0 commit comments

Comments
 (0)