UNCLASSIFIED

Commit 78e48d32 authored by Branden Cobb's avatar Branden Cobb
Browse files

Virtualservice enhancement

parent 9b72df66
# Changelog # Changelog
## 9.2.6-bb.4 - 2021-03-22
Adding ability to specify istio gateways and hosts in values file
## 9.2.6-bb.3 - 2021-03-16 ## 9.2.6-bb.3 - 2021-03-16
Plugins have been preinstalled into the container and made available at registry.dso.mil. Plugins have been preinstalled into the container and made available at registry.dso.mil.
......
...@@ -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.3 version: 9.2.6-bb.4
keywords: keywords:
- coverage - coverage
- security - security
......
...@@ -60,3 +60,10 @@ false ...@@ -60,3 +60,10 @@ false
true true
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "sonarqube.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
...@@ -6,14 +6,19 @@ metadata: ...@@ -6,14 +6,19 @@ metadata:
name: {{ template "sonarqube.fullname" . }} name: {{ template "sonarqube.fullname" . }}
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
labels: labels:
helm.sh/chart: {{ include "sonarqube.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/part-of: sonarqube app.kubernetes.io/part-of: sonarqube
spec: spec:
gateways: gateways:
- istio-system/main {{- range .Values.istio.sonarqube.gateways }}
- {{ . }}
{{- end }}
hosts: hosts:
- "sonarqube.{{ .Values.hostname }}" {{- range .Values.istio.sonarqube.hosts }}
- {{ tpl . $}}
{{- end }}
http: http:
- route: - route:
- destination: - destination:
......
...@@ -354,8 +354,19 @@ extraConfig: ...@@ -354,8 +354,19 @@ extraConfig:
terminationGracePeriodSeconds: 60 terminationGracePeriodSeconds: 60
# Big Bang Additions # Big Bang Additions
## Your FQDN will be ${ .Values.subdomain }.${ .Values.hostname }
hostname: bigbang.dev hostname: bigbang.dev
istio: istio:
enabled: true # Toggle istio integration
enabled: false
sonarqube:
# Toggle vs creation
enabled: true
annotations: {}
labels: {}
gateways:
- istio-system/main
hosts:
- sonarqube.{{ .Values.hostname }}
monitoring: monitoring:
enabled: false enabled: false
...@@ -3,4 +3,3 @@ image: ...@@ -3,4 +3,3 @@ image:
istio: istio:
enabled: true enabled: true
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