[bitnami/apache] Remove hardcoded references to image repository (#35691)

This commit is contained in:
Juan Ariza Toledano
2025-08-08 08:58:46 +02:00
committed by GitHub
parent 0941bbcbec
commit 29ca30c1b5
4 changed files with 18 additions and 8 deletions

View File

@@ -1,8 +1,12 @@
# Changelog
## 11.4.5 (2025-08-07)
## 11.4.6 (2025-08-08)
* [bitnami/apache] :zap: :arrow_up: Update dependency references ([#35544](https://github.com/bitnami/charts/pull/35544))
* [bitnami/apache] Remove hardcoded references to image repository ([#35691](https://github.com/bitnami/charts/pull/35691))
## <small>11.4.5 (2025-08-07)</small>
* [bitnami/apache] :zap: :arrow_up: Update dependency references (#35544) ([7c8eb6c](https://github.com/bitnami/charts/commit/7c8eb6cff8c8d2bd64c5d7af39abf1ce281a802d)), closes [#35544](https://github.com/bitnami/charts/issues/35544)
## <small>11.4.4 (2025-08-07)</small>

View File

@@ -38,4 +38,4 @@ maintainers:
name: apache
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/apache
version: 11.4.5
version: 11.4.6

View File

@@ -41,12 +41,9 @@ APP VERSION: {{ .Chart.AppVersion }}
{{- if not (include "apache.useHtdocs" .) }}
WARNING: You did not provide a custom web application. Apache will be deployed with a default page. Check the README section "Deploying your custom web application" in https://github.com/bitnami/charts/blob/main/bitnami/apache/README.md#deploying-a-custom-web-application.
{{- end }}
{{- if and (contains "bitnami/" .Values.image.repository) (not (.Values.image.tag | toString | regexFind "-r\\d+$|sha256:")) }}
WARNING: Rolling tag detected ({{ .Values.image.repository }}:{{ .Values.image.tag }}), please note that it is strongly recommended to avoid using rolling tags in a production environment.
+info https://techdocs.broadcom.com/us/en/vmware-tanzu/application-catalog/tanzu-application-catalog/services/tac-doc/apps-tutorials-understand-rolling-tags-containers-index.html
{{- end }}
{{ include "apache.validateValues" . }}
{{- include "apache.validateValues" . }}
{{- include "apache.checkRollingTags" . }}
{{- include "common.warnings.resources" (dict "sections" (list "cloneHtdocsFromGit" "metrics" "") "context" $) }}
{{- include "common.warnings.modifiedImages" (dict "images" (list .Values.image .Values.git .Values.metrics.image) "context" $) }}
{{- include "common.errors.insecureImages" (dict "images" (list .Values.image .Values.metrics.image) "context" $) }}

View File

@@ -144,3 +144,12 @@ Get the httpd.conf config map name.
{{- printf "%s-httpd-conf" (include "common.names.fullname" . ) | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{/*
Check if there are rolling tags in the images
*/}}
{{- define "apache.checkRollingTags" -}}
{{- include "common.warnings.rollingTag" .Values.image }}
{{- include "common.warnings.rollingTag" .Values.metrics.image }}
{{- include "common.warnings.rollingTag" .Values.git }}
{{- end -}}