mirror of
https://github.com/bitnami/charts.git
synced 2026-08-09 12:55:41 +08:00
[bitnami/grafana-alloy] Replace configmap with secret for configuration (#34346)
* [bitnami/grafana-alloy] Replace configmap with secret for configuration Signed-off-by: David Gomez <david.gomez@broadcom.com> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> --------- Signed-off-by: David Gomez <david.gomez@broadcom.com> Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> Co-authored-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
co-authored by
Bitnami Bot
parent
aeeefaa625
commit
080d428565
@@ -1,8 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 0.1.3 (2025-06-10)
|
||||
## 0.2.0 (2025-06-11)
|
||||
|
||||
* [bitnami/grafana-alloy] :zap: :arrow_up: Update dependency references ([#34309](https://github.com/bitnami/charts/pull/34309))
|
||||
* [bitnami/grafana-alloy] Replace configmap with secret for configuration ([#34346](https://github.com/bitnami/charts/pull/34346))
|
||||
|
||||
## <small>0.1.3 (2025-06-10)</small>
|
||||
|
||||
* [bitnami/grafana-alloy] :zap: :arrow_up: Update dependency references (#34309) ([a21b221](https://github.com/bitnami/charts/commit/a21b22148fbf5faef8b50ad83a658cf70dc1134d)), closes [#34309](https://github.com/bitnami/charts/issues/34309)
|
||||
|
||||
## <small>0.1.2 (2025-06-10)</small>
|
||||
|
||||
|
||||
@@ -36,4 +36,4 @@ maintainers:
|
||||
name: grafana-alloy
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/grafana-alloy
|
||||
version: 0.1.3
|
||||
version: 0.2.0
|
||||
|
||||
@@ -224,8 +224,8 @@ Install the [Bitnami Kube Prometheus helm chart](https://github.com/bitnami/char
|
||||
| `alloy.image.pullSecrets` | Grafana Alloy image pull secrets | `[]` |
|
||||
| `alloy.containerPorts.http` | Grafana Alloy HTTP container port | `8080` |
|
||||
| `alloy.extraContainerPorts` | Optionally specify extra list of additional ports for Grafana Alloy containers | `[]` |
|
||||
| `alloy.existingConfigmap` | The name of an existing ConfigMap with your custom configuration for Grafana Alloy | `""` |
|
||||
| `alloy.configuration` | Specify content for Grafan Alloy config file. Omitted if alloy.existingConfigmap is provided. | `""` |
|
||||
| `alloy.existingSecret` | The name of an existing Secret with your custom configuration for Grafana Alloy | `""` |
|
||||
| `alloy.configuration` | Specify content for Grafana Alloy config file. Omitted if alloy.existingSecret is provided. | `""` |
|
||||
| `alloy.extraConfig` | Append extra configuration to the default config file | `""` |
|
||||
| `alloy.clustering.enabled` | Deploy Grafana Alloy in a cluster to allow for load distribution. | `false` |
|
||||
| `alloy.clustering.name` | Name for the Grafana Alloy cluster. Used for differentiating between clusters. | `""` |
|
||||
|
||||
@@ -36,11 +36,11 @@ Create the name of the service account to use
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Name of the Grafana Alloy ConfigMap
|
||||
Name of the Grafana Alloy Secret
|
||||
*/}}
|
||||
{{- define "grafana-alloy.configmapName" -}}
|
||||
{{- if .Values.alloy.existingConfigmap -}}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.alloy.existingConfigmap "context" $) -}}
|
||||
{{- define "grafana-alloy.secretName" -}}
|
||||
{{- if .Values.alloy.existingSecret -}}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.alloy.existingSecret "context" $) -}}
|
||||
{{- else -}}
|
||||
{{- include "common.names.fullname" . -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -51,7 +51,7 @@ spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
||||
checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
|
||||
{{- if .Values.podAnnotations }}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }}
|
||||
{{- end }}
|
||||
@@ -330,8 +330,8 @@ spec:
|
||||
{{- end }}
|
||||
volumes:
|
||||
- name: config
|
||||
configMap:
|
||||
name: {{ include "grafana-alloy.configmapName" . }}
|
||||
secret:
|
||||
secretName: {{ include "grafana-alloy.secretName" . }}
|
||||
{{- if .Values.alloy.mounts.varlog }}
|
||||
- name: varlog
|
||||
hostPath:
|
||||
|
||||
+3
-3
@@ -3,9 +3,9 @@ Copyright Broadcom, Inc. All Rights Reserved.
|
||||
SPDX-License-Identifier: APACHE-2.0
|
||||
*/}}
|
||||
|
||||
{{- if not .Values.alloy.existingConfigMap }}
|
||||
{{- if not .Values.alloy.existingSecret }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ template "common.names.fullname" . }}
|
||||
namespace: {{ include "common.names.namespace" . | quote }}
|
||||
@@ -15,7 +15,7 @@ metadata:
|
||||
{{- if .Values.commonAnnotations }}
|
||||
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
||||
{{- end }}
|
||||
data:
|
||||
stringData:
|
||||
config.alloy: |
|
||||
{{- if .Values.alloy.configuration }}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.alloy.configuration "context" .) | nindent 4 }}
|
||||
@@ -300,10 +300,10 @@ alloy:
|
||||
## containerPort: 9090
|
||||
##
|
||||
extraContainerPorts: []
|
||||
## @param alloy.existingConfigmap The name of an existing ConfigMap with your custom configuration for Grafana Alloy
|
||||
## @param alloy.existingSecret The name of an existing Secret with your custom configuration for Grafana Alloy
|
||||
##
|
||||
existingConfigmap: ""
|
||||
## @param alloy.configuration Specify content for Grafan Alloy config file. Omitted if alloy.existingConfigmap is provided.
|
||||
existingSecret: ""
|
||||
## @param alloy.configuration Specify content for Grafana Alloy config file. Omitted if alloy.existingSecret is provided.
|
||||
## e.g:
|
||||
## configuration: |-
|
||||
## ...
|
||||
|
||||
Reference in New Issue
Block a user