Skip to content

Commit

Permalink
Honor minio fullname (#9565)
Browse files Browse the repository at this point in the history
* Honor minio fullname

* Use minio service port for endpoints

* add changelog

Signed-off-by: Vladimir Varankin <vladimir.varankin@grafana.com>

---------

Signed-off-by: Vladimir Varankin <vladimir.varankin@grafana.com>
Co-authored-by: Vladimir Varankin <vladimir.varankin@grafana.com>
  • Loading branch information
elsoa-invitech and narqo authored Oct 31, 2024
1 parent ab948a9 commit a817319
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions operations/helm/charts/mimir-distributed/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Entries should include a reference to the Pull Request that introduced the chang
* [ENHANCEMENT] Add support for setting type and internal traffic policy for Kubernetes service. Set `internalTrafficPolicy=Cluster` by default in all services with type `ClusterIP`. #9619
* [ENHANCEMENT] Add the possibility to create a dedicated serviceAccount for the `alertmanager` component by setting `alertmanager.serviceAcount.create` to true in the values. #9781
* [BUGFIX] Fix PVC template in AlertManager to not show diff in ArgoCD. #9774
* [BUGFIX] Fix how `fullnameOverride` is reflected in generated manifests. #9564

## 5.5.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ spec:
projected:
sources:
- configMap:
name: {{ .Release.Name }}-minio
name: {{ template "minio.fullname" .Subcharts.minio }}
- secret:
name: {{ .Release.Name }}-minio
name: {{ template "minio.fullname" .Subcharts.minio }}
{{- if .Values.minio.tls.enabled }}
- name: cert-secret-volume-mc
secret:
Expand All @@ -76,7 +76,7 @@ spec:
command: ["/bin/sh", "/config/initialize"]
env:
- name: MINIO_ENDPOINT
value: {{ .Release.Name }}-minio
value: {{ template "minio.fullname" .Subcharts.minio }}
- name: MINIO_PORT
value: {{ .Values.minio.service.port | quote }}
volumeMounts:
Expand Down
8 changes: 4 additions & 4 deletions operations/helm/charts/mimir-distributed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ mimir:
s3:
access_key_id: {{ .Values.minio.rootUser }}
bucket_name: enterprise-metrics-admin
endpoint: {{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc:9000
endpoint: {{ template "minio.fullname" .Subcharts.minio }}.{{ .Release.Namespace }}.svc:{{ .Values.minio.service.port }}
insecure: true
secret_access_key: {{ .Values.minio.rootPassword }}
{{- end }}
Expand Down Expand Up @@ -171,7 +171,7 @@ mimir:
s3:
access_key_id: {{ .Values.minio.rootUser }}
bucket_name: {{ include "mimir.minioBucketPrefix" . }}-ruler
endpoint: {{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc:9000
endpoint: {{ template "minio.fullname" .Subcharts.minio }}.{{ .Release.Namespace }}.svc:{{ .Values.minio.service.port }}
insecure: true
secret_access_key: {{ .Values.minio.rootPassword }}
{{- end }}
Expand Down Expand Up @@ -219,7 +219,7 @@ mimir:
s3:
access_key_id: {{ .Values.minio.rootUser }}
bucket_name: {{ include "mimir.minioBucketPrefix" . }}-tsdb
endpoint: {{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc:9000
endpoint: {{ template "minio.fullname" .Subcharts.minio }}.{{ .Release.Namespace }}.svc:{{ .Values.minio.service.port }}
insecure: true
secret_access_key: {{ .Values.minio.rootPassword }}
{{- end }}
Expand Down Expand Up @@ -374,7 +374,7 @@ mimir:
{{- if .Values.minio.enabled }}
backend: s3
s3:
endpoint: {{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc:9000
endpoint: {{ template "minio.fullname" .Subcharts.minio }}.{{ .Release.Namespace }}.svc:{{ .Values.minio.service.port }}
bucket_name: {{ include "mimir.minioBucketPrefix" . }}-ruler
access_key_id: {{ .Values.minio.rootUser }}
secret_access_key: {{ .Values.minio.rootPassword }}
Expand Down

0 comments on commit a817319

Please sign in to comment.