update helm charts to be more flexible

This commit is contained in:
Maidul Islam
2023-01-26 00:14:07 -08:00
parent 8a49e0817a
commit 099c4836e6
3 changed files with 8 additions and 12 deletions

View File

@@ -7,10 +7,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.7
version: 0.1.8
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "1.17.0"

View File

@@ -121,11 +121,8 @@ Create the mongodb connection string.
{{- $user := "root" -}}
{{- $pass := "root" -}}
{{- $connectionString := printf "mongodb://%s:%s@%s:%d/" $user $pass $host $port -}}
{{- if .Values.mongodbConnection.standardConnectionStringFormat -}}
{{- $connectionString = .Values.mongodbConnection.standardConnectionStringFormat -}}
{{- end -}}
{{- if .Values.mongodbConnection.dnsSeedListConnectionFormat -}}
{{- $connectionString = .Values.mongodbConnection.dnsSeedListConnectionFormat -}}
{{- if .Values.mongodbConnection.externalMongoDBConnectionString -}}
{{- $connectionString = .Values.mongodbConnection.externalMongoDBConnectionString -}}
{{- end -}}
{{- printf "%s" $connectionString -}}
{{- end -}}

View File

@@ -8,7 +8,7 @@ nameOverride: ""
frontend:
name: frontend
podAnnotations: {}
replicaCount: 1
replicaCount: 2
image:
repository: infisical/frontend
pullPolicy: IfNotPresent
@@ -24,7 +24,7 @@ frontend:
backend:
name: backend
podAnnotations: {}
replicaCount: 1
replicaCount: 2
image:
repository: infisical/backend
pullPolicy: IfNotPresent
@@ -44,11 +44,10 @@ mongodb:
annotations: {}
# By default the backend will be connected to a Mongo instance in the cluster.
# However, it is recommended to add a Mongo Cloud connection string as the DB instance in the cluster does not have persistence yet.
# However, it is recommended to add a managed document DB connection string because the DB instance in the cluster does not have persistence yet ( data will be deleted on next deploy).
# Learn about connection string type here https://www.mongodb.com/docs/manual/reference/connection-string/
mongodbConnection: {}
# standardConnectionStringFormat: <>
# dnsSeedListConnectionFormat: <>
# externalMongoDBConnectionString: <>
ingress:
enabled: true