Skip to content

Commit 235bae5

Browse files
oleksandr-codefreshcf-ci-bot-v2
andauthored
fix: runtime components logs not working for some of components (#1087)
* fix: runtime components logs not working for some of components (#1069) (cherry picked from commit 81a48ee) * CI Automatic commit - align Chart version * CI Automatic commit - align Chart version --------- Co-authored-by: cf-ci-bot-v2 <cf-ci-bot-v2@codefresh.io>
1 parent c7280db commit 235bae5

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

charts/gitops-runtime/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: 0.2.1
33
description: A Helm chart for Codefresh gitops runtime
44
name: gitops-runtime
5-
version: 0.27.3
5+
version: 0.27.4
66
home: https://github.com/codefresh-io/gitops-runtime-helm
77
icon: https://avatars1.githubusercontent.com/u/11412079?v=3
88
keywords:

charts/gitops-runtime/templates/_helpers.tpl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,21 @@ Output comma separated list of installed runtime components
369369
{{- $internalRouter := dict "name" "internal-router" "version" .Chart.AppVersion }}
370370
{{- $appProxy := dict "name" "app-proxy" "version" (index (get .Values "app-proxy") "image" "tag") }}
371371
{{- $argoApiGateway := dict "name" "argo-gateway" "version" (get .Values "argo-gateway").image.tag }}
372-
{{- $comptList := list $appProxy $internalRouter $argoApiGateway }}
372+
{{- $runtimeEventReporter := dict "name" "runtime-event-reporter" "version" (default (index .Values "global" "event-reporters" "image") (index .Values "event-reporters" "runtime-event-reporter" "image")).tag }}
373+
{{- $clusterEventReporter := dict "name" "cluster-event-reporter" "version" (default (index .Values "global" "event-reporters" "image") (index .Values "event-reporters" "cluster-event-reporter" "image")).tag }}
374+
{{- $comptList := list $appProxy $internalRouter $argoApiGateway $runtimeEventReporter $clusterEventReporter }}
373375
{{- if and (index .Values "sealed-secrets" "enabled") }}
374376
{{- $sealedSecrets := dict "name" "sealed-secrets" "version" (get .Subcharts "sealed-secrets").Chart.AppVersion }}
375377
{{- $comptList = append $comptList $sealedSecrets }}
376378
{{- end }}
379+
{{- if and (index .Values "redis" "enabled") }}
380+
{{- $redisComp := dict "name" (include "redis.fullname" .) "version" (index (get .Values "redis") "image" "tag") }}
381+
{{- $comptList = append $comptList $redisComp }}
382+
{{- end }}
383+
{{- if and (index .Values "redis-ha" "enabled") }}
384+
{{- $redisHaComp := dict "name" (index (get .Values "redis-ha") "fullnameOverride") "version" (get .Subcharts "redis-ha").Chart.AppVersion }}
385+
{{- $comptList = append $comptList $redisHaComp }}
386+
{{- end }}
377387
{{- if and (index .Values "argo-cd" "enabled") }}
378388
{{- $argoCD := dict "name" "argocd" "version" (get .Subcharts "argo-cd").Chart.AppVersion }}
379389
{{- $comptList = append $comptList $argoCD }}

charts/gitops-runtime/templates/redis/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ helm.sh/chart: {{ include "redis.chart" . }}
2424
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
2525
{{- end }}
2626
app.kubernetes.io/managed-by: {{ .Release.Service }}
27-
app.kubernetes.io/part-of: redis
27+
app.kubernetes.io/part-of: {{ include "redis.fullname" . }}
2828
codefresh.io/internal: "true"
2929
{{- end }}
3030

0 commit comments

Comments
 (0)