Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #244 from fr33ky/master
Browse files Browse the repository at this point in the history
Add --no-check-certificate to wget call
  • Loading branch information
rjkernick authored Feb 2, 2021
2 parents be2d446 + 83e3960 commit 3db358c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/sonarqube/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: sonarqube
description: SonarQube is an open sourced code quality scanning tool
version: 9.2.7
version: 9.3.0
appVersion: 8.5.1-community
keywords:
- coverage
Expand Down
1 change: 1 addition & 0 deletions charts/sonarqube/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ The following table lists the configurable parameters of the Sonarqube chart and
| `plugins.image` | Image for plugins container | "" |
| `plugins.resources` | Resources for plugins container | "" |
| `plugins.netrcCreds` | Name of the secret containing .netrc file to use creds when downloading plugins | "" |
| `plugins.noCheckCertificate` | Flag to not check server's certificate when downloading plugins | `false` |
| `jvmOpts` | Values to add to SONARQUBE_WEB_JVM_OPTS | `""` |
| `env` | Environment variables to attach to the pods | `nil` |
| `annotations` | Sonarqube Pod annotations | `{}` |
Expand Down
2 changes: 1 addition & 1 deletion charts/sonarqube/templates/install-plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ data:
[ -e {{ .Values.sonarqubeFolder }}/extensions/downloads/* ] && rm {{ .Values.sonarqubeFolder }}/extensions/downloads/*
{{ range $index, $val := .Values.plugins.install }}
echo {{ $val | quote }} >> {{ $.Values.sonarqubeFolder }}/extensions/downloads/list{{ end }}
cat {{ .Values.sonarqubeFolder }}/extensions/downloads/list | xargs -n 1 -P 8 wget --directory-prefix {{ .Values.sonarqubeFolder }}/extensions/downloads --no-verbose
cat {{ .Values.sonarqubeFolder }}/extensions/downloads/list | xargs -n 1 -P 8 wget --directory-prefix {{ .Values.sonarqubeFolder }}/extensions/downloads --no-verbose {{- if .Values.plugins.noCheckCertificate }}--no-check-certificate{{- end }}
rm {{ .Values.sonarqubeFolder }}/extensions/downloads/list
{{- end }}
{{- if .Values.plugins.lib }}
Expand Down
3 changes: 3 additions & 0 deletions charts/sonarqube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ plugins:
# .netrc secret file with a key "netrc" to use basic auth while downloading plugins
# netrcCreds: ""

# Set to true to not validate the server's certificate to download plugin
noCheckCertificate: false

## Values to add to SONARQUBE_WEB_JVM_OPTS
##
# jvmOpts: "-Djava.net.preferIPv4Stack=true"
Expand Down

0 comments on commit 3db358c

Please sign in to comment.