Skip to content

Commit 7651e6c

Browse files
fix crossplane azure container tags (#430)
1 parent e6bf5e2 commit 7651e6c

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Improve CNPG templates.
1313

14+
### Fixed
15+
16+
- Fix crossplane azure container tags.
17+
1418
## [2.33.0] - 2026-03-02
1519

1620
### Changed

helm/grafana/templates/cnpg/crossplane/azure/container.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- if and (include "grafana.crossplane.enabled" .) (include "grafana.crossplane.isAzure" .) .Values.postgresqlCluster.crossplane.azure.enabled -}}
2+
{{- $tags := include "grafana.crossplane.tags" . | fromYaml -}}
23
{{- $containerName := .Values.postgresqlCluster.crossplane.azure.container.name -}}
3-
{{- $storageAccountName := include "grafana.crossplane.azure.storageAccountName" (dict "containerName" $containerName) -}}
44
---
55
apiVersion: storage.azure.upbound.io/v1beta1
66
kind: Container
@@ -13,9 +13,12 @@ metadata:
1313
spec:
1414
forProvider:
1515
containerAccessType: {{ .Values.postgresqlCluster.crossplane.azure.containerAccessType | default "private" }}
16+
{{- if $tags }}
1617
metadata:
17-
app: grafana-postgresql
18-
managed-by: crossplane
18+
{{- range $key, $value := $tags }}
19+
{{ $key }}: {{ $value | quote }}
20+
{{- end }}
21+
{{- end }}
1922
storageAccountNameSelector:
2023
matchLabels:
2124
{{- include "grafana.crossplane.labels" (dict "ctx" . "component" "storage") | nindent 8 }}

0 commit comments

Comments
 (0)