fix: Helm giving linting error when no ingress or ingressGrpc extraPaths are given (#435)
* Added conditionals for ingress extraPaths * Added conditionals for ingressGrpc extraPaths * Version bump
This commit is contained in:
parent
ffc9220f04
commit
b9af202660
3 changed files with 14 additions and 5 deletions
|
@ -2,7 +2,7 @@ apiVersion: v1
|
|||
appVersion: "1.6.2"
|
||||
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
||||
name: argo-cd
|
||||
version: 2.6.2
|
||||
version: 2.6.3
|
||||
home: https://github.com/argoproj/argo-helm
|
||||
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
|
||||
keywords:
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
{{- $serviceName := include "argo-cd.server.fullname" . -}}
|
||||
{{- $servicePort := ternary .Values.server.service.servicePortHttps .Values.server.service.servicePortHttp .Values.server.ingressGrpc.https -}}
|
||||
{{- $paths := .Values.server.ingressGrpc.paths -}}
|
||||
{{- $extraPaths := .Values.server.ingressGrpc.extraPaths -}}
|
||||
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }}
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
{{ else }}
|
||||
|
@ -33,7 +34,9 @@ spec:
|
|||
- host: {{ $host }}
|
||||
http:
|
||||
paths:
|
||||
{{- toYaml .Values.server.ingressGrpc.extraPaths | nindent 10 }}
|
||||
{{- if $extraPaths }}
|
||||
{{- toYaml $extraPaths | nindent 10 }}
|
||||
{{- end -}}
|
||||
{{- range $p := $paths }}
|
||||
- path: {{ $p }}
|
||||
backend:
|
||||
|
@ -44,7 +47,9 @@ spec:
|
|||
{{- else }}
|
||||
- http:
|
||||
paths:
|
||||
{{- toYaml .Values.server.ingressGrpc.extraPaths | nindent 10 }}
|
||||
{{- if $extraPaths }}
|
||||
{{- toYaml $extraPaths | nindent 10 }}
|
||||
{{- end -}}
|
||||
{{- range $p := $paths }}
|
||||
- path: {{ $p }}
|
||||
backend:
|
||||
|
|
|
@ -34,7 +34,9 @@ spec:
|
|||
- host: {{ $host }}
|
||||
http:
|
||||
paths:
|
||||
{{- if $extraPaths }}
|
||||
{{- toYaml $extraPaths | nindent 10 }}
|
||||
{{- end }}
|
||||
{{- range $p := $paths }}
|
||||
- path: {{ $p }}
|
||||
backend:
|
||||
|
@ -45,7 +47,9 @@ spec:
|
|||
{{- else }}
|
||||
- http:
|
||||
paths:
|
||||
{{- if $extraPaths }}
|
||||
{{- toYaml $extraPaths | nindent 10 }}
|
||||
{{- end }}
|
||||
{{- range $p := $paths }}
|
||||
- path: {{ $p }}
|
||||
backend:
|
||||
|
|
Loading…
Reference in a new issue