Skip to content

Commit

Permalink
SQDEVOPS-309 add default annotation compatible with new nginx major
Browse files Browse the repository at this point in the history
* SQDEVOPS-309 modify changelog message, as nginx is a major bump

* SQDEVOPS-309 add default annotation compatible with new nginx major
  • Loading branch information
jCOTINEAU authored Nov 13, 2023
1 parent 3001125 commit 36f3b92
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/sonarqube-dce/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ All changes to this chart will be documented in this file.
* Support Kubernetes v1.28
* Avoid duplicate SONAR_WEB_SYSTEMPASSCODE secrets
* Deprecate embedded PostgreSQL
* Update nginx-ingress-controller dependency to version 4.8.3
* Update nginx-ingress-controller dependency to version 4.8.3, please carefully read the changelog of this new major version.

## [10.2.0]
* Update SonarQube to 10.2.0
Expand Down
2 changes: 1 addition & 1 deletion charts/sonarqube-dce/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ annotations:
- kind: deprecated
description: "Deprecate embedded PostgreSQL"
- kind: changed
description: "Update nginx-ingress-controller dependency to version 4.8.3"
description: "Update nginx-ingress-controller dependency to version 4.8.3, please carefully read the changelog of this new major version."
artifacthub.io/links: |
- name: support
url: https://community.sonarsource.com/
Expand Down
2 changes: 1 addition & 1 deletion charts/sonarqube-dce/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ The following table lists the configurable parameters of the SonarQube chart and
| `ingress.hosts[0].servicePort` | Optional field to override the default servicePort of a path | `None` |
| `ingress.tls` | Ingress secrets for TLS certificates | `[]` |
| `ingress.ingressClassName` | Optional field to configure ingress class name | `None` |
| `ingress.annotations` | Field to add extra annotations to the ingress | {`nginx.ingress.kubernetes.io/proxy-body-size=64m`} if `nginx.enabled=true` |
| `ingress.annotations` | Field to add extra annotations to the ingress | {`nginx.org/proxy-body-size: "64m"`} if `nginx.enabled=true` |

### InitContainers

Expand Down
3 changes: 3 additions & 0 deletions charts/sonarqube-dce/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@
WARNING: The embedded PostgreSQL is intended for evaluation only, it is DEPRECATED, and it will be REMOVED in a future release.
Please visit https://artifacthub.io/packages/helm/sonarqube/sonarqube#production-use-case for more information.
{{- end }}
{{ if .Values.nginx.enabled }}
WARNING: The ingress nginx controller dependeny has been upgraded to a major version (4.x), please carefully read the changelogs [here](https://github.com/kubernetes/ingress-nginx/releases) and [here](https://artifacthub.io/packages/helm/ingress-nginx/ingress-nginx?modal=changelog).
{{- end }}
4 changes: 2 additions & 2 deletions charts/sonarqube-dce/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ metadata:
{{- range $key, $value := .Values.ingress.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- if and .Values.nginx.enabled (not (hasKey (.Values.ingress.annotations) "nginx.ingress.kubernetes.io/proxy-body-size")) }}
nginx.ingress.kubernetes.io/proxy-body-size: "64m"
{{- if and .Values.nginx.enabled (not (hasKey (.Values.ingress.annotations) "nginx.org/proxy-body-size/proxy-body-size")) }}
nginx.org/proxy-body-size: "64m"
{{- end -}}
{{- end }}
spec:
Expand Down
2 changes: 1 addition & 1 deletion charts/sonarqube/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ All changes to this chart will be documented in this file.
* Support Kubernetes v1.28
* Avoid duplicate SONAR_WEB_SYSTEMPASSCODE secrets
* Deprecate embedded PostgreSQL
* Update nginx-ingress-controller dependency to version 4.8.3
* Update nginx-ingress-controller dependency to version 4.8.3, please carefully read the changelog of this new major version.

## [10.2.0]
* Update SonarQube to 10.2.0
Expand Down
2 changes: 1 addition & 1 deletion charts/sonarqube/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ annotations:
- kind: deprecated
description: "Deprecate embedded PostgreSQL"
- kind: changed
description: "Update nginx-ingress-controller dependency to version 4.8.3"
description: "Update nginx-ingress-controller dependency to version 4.8.3, please carefully read the changelog of this new major version."
artifacthub.io/containsSecurityUpdates: "false"
artifacthub.io/images: |
- name: sonarqube
Expand Down
2 changes: 1 addition & 1 deletion charts/sonarqube/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ The following table lists the configurable parameters of the SonarQube chart and
| `ingress.hosts[0].servicePort` | Optional field to override the default servicePort of a path | `None` |
| `ingress.tls` | Ingress secrets for TLS certificates | `[]` |
| `ingress.ingressClassName` | Optional field to configure ingress class name | `None` |
| `ingress.annotations` | Field to add extra annotations to the ingress | {`nginx.ingress.kubernetes.io/proxy-body-size=64m`} if `nginx.enabled=true` |
| `ingress.annotations` | Field to add extra annotations to the ingress | {`nginx.org/proxy-body-size: "64m"`} if `nginx.enabled=true` |

### Route

Expand Down
3 changes: 3 additions & 0 deletions charts/sonarqube/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@
WARNING: The embedded PostgreSQL is intended for evaluation only, it is DEPRECATED, and it will be REMOVED in a future release.
Please visit https://artifacthub.io/packages/helm/sonarqube/sonarqube#production-use-case for more information.
{{- end }}
{{ if .Values.nginx.enabled }}
WARNING: The ingress nginx controller dependeny has been upgraded to a major version (4.x), please carefully read the changelogs [here](https://github.com/kubernetes/ingress-nginx/releases) and [here](https://artifacthub.io/packages/helm/ingress-nginx/ingress-nginx?modal=changelog).
{{- end }}
2 changes: 1 addition & 1 deletion charts/sonarqube/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ metadata:
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- if and .Values.nginx.enabled (not (hasKey (.Values.ingress.annotations) "nginx.ingress.kubernetes.io/proxy-body-size")) }}
nginx.ingress.kubernetes.io/proxy-body-size: "64m"
nginx.org/proxy-body-size: "64m"
{{- end -}}
{{- end }}
spec:
Expand Down

0 comments on commit 36f3b92

Please sign in to comment.