Skip to content

Commit

Permalink
feat: Testing pipeline with multiple module instances
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarek-kindred committed Jun 28, 2024
1 parent 4d6adee commit 5c8f998
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 2 additions & 4 deletions brownie/deployment/helm/templates/dev-secretstore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ spec:
"hostnames": {{ .Values.KAFKA_BROKERS | quote }},
"port": {{ .Values.KAFKA_PORT | quote }},
"username": {{ .Values.KAFKA_USERNAME | quote }},
"password": {{ .Values.KAFKA_PASSWORD | quote }},
"saslMechanism": {{ .Values.SASL_MECHANISM | quote }}
"password": {{ .Values.KAFKA_PASSWORD | quote }}
}
{{- end }}
{{- if .Values.KAFKA_CONFIG_NAMES }}
Expand All @@ -51,8 +50,7 @@ spec:
"hostnames": {{ (index $.Values (printf "%s_KAFKA_BROKERS" ($cfgName | upper))) | quote }},
"port": {{ (index $.Values (printf "%s_KAFKA_PORT" ($cfgName | upper))) | quote }},
"username": {{ (index $.Values (printf "%s_KAFKA_USERNAME" ($cfgName | upper))) | quote }},
"password": {{ (index $.Values (printf "%s_KAFKA_PASSWORD" ($cfgName | upper))) | quote }},
"saslMechanism": {{ (index $.Values (printf "%s_SASL_MECHANISM" ($cfgName | upper))) | quote }}
"password": {{ (index $.Values (printf "%s_KAFKA_PASSWORD" ($cfgName | upper))) | quote }}
}
{{- end }}
{{- end }}
Expand Down
8 changes: 8 additions & 0 deletions brownie/deployment/helm/templates/external-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ spec:
remoteRef:
key: {{ $.Values.EXTERNAL_SECRET_KAFKA_PATH }}
property: username
- secretKey: KAFKA_CLIENT_ID
remoteRef:
key: {{ $.Values.EXTERNAL_SECRET_KAFKA_PATH }}
property: username # intentionally use username
- secretKey: KAFKA_PASSWORD
remoteRef:
key: {{ $.Values.EXTERNAL_SECRET_KAFKA_PATH }}
Expand All @@ -91,6 +95,10 @@ spec:
remoteRef:
key: {{ $.Values.EXTERNAL_SECRET_KAFKA_PATH }}-{{ $cfgName | lower }}
property: username
- secretKey: {{ $cfgName | upper }}_KAFKA_CLIENT_ID
remoteRef:
key: {{ $.Values.EXTERNAL_SECRET_KAFKA_PATH }}-{{ $cfgName | lower }}
property: username
- secretKey: {{ $cfgName | upper }}_KAFKA_PASSWORD
remoteRef:
key: {{ $.Values.EXTERNAL_SECRET_KAFKA_PATH }}-{{ $cfgName | lower }}
Expand Down
2 changes: 1 addition & 1 deletion brownie/scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ getModuleOverwrites() {
POSTGRESQL_CONFIGS=$(getModuleOverwrites "${POSTGRESQL_CONFIG_NAMES}" "PGHOST PGPORT PGUSER PGPASSWORD PGDATABASE" "POSTGRESQL_CONFIG_NAMES")
HELM_OVERWRITES="${HELM_OVERWRITES} ${POSTGRESQL_CONFIGS}"

KAFKA_CONFIGS=$(getModuleOverwrites "${KAFKA_CONFIG_NAMES}" "KAFKA_BROKERS KAFKA_PORT KAFKA_USERNAME KAFKA_PASSWORD")
KAFKA_CONFIGS=$(getModuleOverwrites "${KAFKA_CONFIG_NAMES}" "KAFKA_BROKERS KAFKA_PORT KAFKA_USERNAME KAFKA_PASSWORD KAFKA_CLIENT_ID")
HELM_OVERWRITES="${HELM_OVERWRITES} ${KAFKA_CONFIGS}"

HELM_ARGS="upgrade --install --atomic --timeout 120s --namespace ${K8S_NAMESPACE}"
Expand Down

0 comments on commit 5c8f998

Please sign in to comment.