UNCLASSIFIED

Commit 23071bb6 authored by Branden Cobb's avatar Branden Cobb
Browse files

Add plugins to helm chart

parent 555905a7
...@@ -2,7 +2,7 @@ apiVersion: v1 ...@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 8.6-community appVersion: 8.6-community
name: sonarqube name: sonarqube
description: SonarQube is an open sourced code quality scanning tool description: SonarQube is an open sourced code quality scanning tool
version: 9.2.6-bb.0 version: 9.2.6-bb.1
keywords: keywords:
- coverage - coverage
- security - security
......
{{- if .Values.monitoring.enabled -}}
apiVersion: rbac.authorization.k8s.io/v1
items:
- apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: prometheus-k8s
namespace: {{ .Release.Namespace }}
rules:
- apiGroups:
- ""
resources:
- services
- endpoints
- pods
verbs:
- get
- list
- watch
kind: RoleList
---
apiVersion: rbac.authorization.k8s.io/v1
items:
- apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: prometheus-k8s
namespace: {{ .Release.Namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: prometheus-k8s
subjects:
- kind: ServiceAccount
name: prometheus-k8s
namespace: monitoring
kind: RoleBindingList
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
prometheus: k8s
name: {{ template "sonarqube.fullname" . }}
spec:
selector:
matchLabels:
app: {{ template "sonarqube.fullname" . }}
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
endpoints:
- interval: 30s
basicAuth:
password: admin
# name: login
# key: username
username: admin
# name: login
# key: password
path: /api/prometheus/metrics
port: http
jobLabel: sonarqube
{{- end }}
...@@ -148,7 +148,11 @@ initSysctl: ...@@ -148,7 +148,11 @@ initSysctl:
# - "https://github.com/AmadeusITGroup/sonar-stash/releases/download/1.3.0/sonar-stash-plugin-1.3.0.jar" # - "https://github.com/AmadeusITGroup/sonar-stash/releases/download/1.3.0/sonar-stash-plugin-1.3.0.jar"
# - "https://github.com/SonarSource/sonar-ldap/releases/download/2.2-RC3/sonar-ldap-plugin-2.2.0.601.jar" # - "https://github.com/SonarSource/sonar-ldap/releases/download/2.2-RC3/sonar-ldap-plugin-2.2.0.601.jar"
plugins: plugins:
install: [] install:
- https://github.com/dependency-check/dependency-check-sonar-plugin/releases/download/1.2.6/sonar-dependency-check-plugin-1.2.6.jar
- https://github.com/SonarOpenCommunity/sonar-cxx/releases/download/cxx-1.3.2/sonar-c-plugin-1.3.2.1853.jar
- https://github.com/SonarOpenCommunity/sonar-cxx/releases/download/cxx-1.3.2/sonar-cxx-plugin-1.3.2.1853.jar
- https://github.com/dmeiners88/sonarqube-prometheus-exporter/releases/download/v1.0.0-SNAPSHOT-2018-07-04/sonar-prometheus-exporter-1.0.0-SNAPSHOT.jar
lib: [] lib: []
# For use behind a corporate proxy when downloading plugins # For use behind a corporate proxy when downloading plugins
...@@ -353,3 +357,5 @@ terminationGracePeriodSeconds: 60 ...@@ -353,3 +357,5 @@ terminationGracePeriodSeconds: 60
hostname: bigbang.dev hostname: bigbang.dev
istio: istio:
enabled: true enabled: true
monitoring:
enabled: false
...@@ -148,7 +148,11 @@ initSysctl: ...@@ -148,7 +148,11 @@ initSysctl:
# - "https://github.com/AmadeusITGroup/sonar-stash/releases/download/1.3.0/sonar-stash-plugin-1.3.0.jar" # - "https://github.com/AmadeusITGroup/sonar-stash/releases/download/1.3.0/sonar-stash-plugin-1.3.0.jar"
# - "https://github.com/SonarSource/sonar-ldap/releases/download/2.2-RC3/sonar-ldap-plugin-2.2.0.601.jar" # - "https://github.com/SonarSource/sonar-ldap/releases/download/2.2-RC3/sonar-ldap-plugin-2.2.0.601.jar"
plugins: plugins:
install: [] install:
- https://github.com/dependency-check/dependency-check-sonar-plugin/releases/download/1.2.6/sonar-dependency-check-plugin-1.2.6.jar
- https://github.com/SonarOpenCommunity/sonar-cxx/releases/download/cxx-1.3.2/sonar-c-plugin-1.3.2.1853.jar
- https://github.com/SonarOpenCommunity/sonar-cxx/releases/download/cxx-1.3.2/sonar-cxx-plugin-1.3.2.1853.jar
- https://github.com/dmeiners88/sonarqube-prometheus-exporter/releases/download/v1.0.0-SNAPSHOT-2018-07-04/sonar-prometheus-exporter-1.0.0-SNAPSHOT.jar
lib: [] lib: []
# For use behind a corporate proxy when downloading plugins # For use behind a corporate proxy when downloading plugins
...@@ -353,3 +357,5 @@ terminationGracePeriodSeconds: 60 ...@@ -353,3 +357,5 @@ terminationGracePeriodSeconds: 60
hostname: bigbang.dev hostname: bigbang.dev
istio: istio:
enabled: true enabled: true
monitoring:
enabled: false
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment