Skip to content

Commit

Permalink
SONAR-21534 fix digest too long
Browse files Browse the repository at this point in the history
  • Loading branch information
jCOTINEAU authored Sep 30, 2024
1 parent efe7bc3 commit e0a81ab
Show file tree
Hide file tree
Showing 11 changed files with 1,602 additions and 3 deletions.
1 change: 1 addition & 0 deletions charts/sonarqube-dce/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ All changes to this chart will be documented in this file.
* Refactor Route to be subparameter of OpenShift
* Make OpenShift.createSCC false by default
* Support ApplicationNodes.extraVolumes and ApplicationNodes.extraVolumeMounts
* Ensure kubernetes.io/version label is smaller than 63 chars

## [10.6.0]
* Upgrade SonarQube to 10.6.0
Expand Down
2 changes: 2 additions & 0 deletions charts/sonarqube-dce/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ annotations:
description: "Make OpenShift.createSCC false by default"
- kind: added
description: "Support ApplicationNodes.extraVolumes and ApplicationNodes.extraVolumeMounts"
- kind: added
description: "Ensure kubernetes.io/version label is smaller than 63 chars"
artifacthub.io/links: |
- name: support
url: https://community.sonarsource.com/
Expand Down
2 changes: 1 addition & 1 deletion charts/sonarqube-dce/templates/sonarqube-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/part-of: sonarqube
app.kubernetes.io/component: {{ template "sonarqube.fullname" . }}
app.kubernetes.io/version: {{ .Values.ApplicationNodes.image.tag | quote }}
app.kubernetes.io/version: {{ (tpl .Values.ApplicationNodes.image.tag .) | trunc 63 | trimSuffix "-" | quote }}
spec:
{{- if not .Values.ApplicationNodes.hpa.enabled }}
replicas: {{ .Values.ApplicationNodes.replicaCount }}
Expand Down
2 changes: 1 addition & 1 deletion charts/sonarqube-dce/templates/sonarqube-search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/part-of: sonarqube
app.kubernetes.io/component: {{ template "sonarqube.fullname" . }}
app.kubernetes.io/version: {{ .Values.searchNodes.image.tag | quote }}
app.kubernetes.io/version: {{ (tpl .Values.searchNodes.image.tag .) | trunc 63 | trimSuffix "-" | quote }}
spec:
podManagementPolicy : Parallel
replicas: {{ .Values.searchNodes.replicaCount }}
Expand Down
1 change: 1 addition & 0 deletions charts/sonarqube/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ All changes to this chart will be documented in this file.
* Refactor Route to be subparameter of OpenShift
* Make OpenShift.createSCC false by default
* Deprecate peristence.volumes and persistence.mounts in favor or extraVolumes and extraVolumeMounts
* Ensure kubernetes.io/version label is smaller than 63 chars

## [10.6.0]
* Update SonarQube to 10.6.0
Expand Down
2 changes: 2 additions & 0 deletions charts/sonarqube/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ annotations:
description: "Make OpenShift.createSCC false by default"
- kind: changed
description: "Deprecate peristence.volumes and persistence.mounts in favor or extraVolumes and extraVolumeMounts"
- kind: added
description: "Ensure kubernetes.io/version label is smaller than 63 chars"
artifacthub.io/containsSecurityUpdates: "false"
artifacthub.io/images: |
- name: sonarqube
Expand Down
2 changes: 1 addition & 1 deletion charts/sonarqube/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/part-of: sonarqube
app.kubernetes.io/component: {{ include "sonarqube.fullname" . }}
app.kubernetes.io/version: {{ tpl .Values.image.tag . | quote }}
app.kubernetes.io/version: {{ (tpl .Values.image.tag .) | trunc 63 | trimSuffix "-" | quote }}
{{- end -}}

{{/*
Expand Down
Loading

0 comments on commit e0a81ab

Please sign in to comment.