install-plugins.yaml 542 Bytes
Newer Older
konfiot's avatar
konfiot committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ template "sonarqube.fullname" . }}-install-plugins
  labels:
    app: {{ template "sonarqube.name" . }}
    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
data:
  install_plugins.sh: |-
    cd /opt/sonarqube/extensions/plugins
    {{- if .Values.plugins.install }}
      {{- range $index, $val := .Values.plugins.install }}
        wget {{ $val }} --no-check-certificate
      {{- end }}
    {{- end }}