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

Commit

Permalink
[stable/sonarqube] support also k8s <= v1.13
Browse files Browse the repository at this point in the history
Signed-off-by: Usman Akeju <akeju00+github@gmail.com>
  • Loading branch information
usmonster committed Jan 2, 2020
1 parent aa7245b commit 02d70c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion REVIEW_GUIDELINES.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,11 @@ ingress:

```yaml
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }}
apiVersion: networking.k8s.io/v1beta1
{{ else }}
apiVersion: extensions/v1beta1
{{ end -}}
kind: Ingress
metadata:
name: {{ include "myapp.fullname" }}
Expand Down
6 changes: 5 additions & 1 deletion stable/sonarqube/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{{- if .Values.ingress.enabled -}}
{{- $serviceName := include "sonarqube.fullname" . -}}
{{- $servicePort := .Values.service.externalPort -}}
apiVersion: networking.k8s.io/v1
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }}
apiVersion: networking.k8s.io/v1beta1
{{ else }}
apiVersion: extensions/v1beta1
{{ end -}}
kind: Ingress
metadata:
name: {{ template "sonarqube.fullname" . }}
Expand Down

0 comments on commit 02d70c9

Please sign in to comment.