Skip to content

Commit

Permalink
Update ingress.yaml (grafana#95)
Browse files Browse the repository at this point in the history
* Update ingress.yaml

Update apiVersion: networking.k8s.io/v1beta1 -> networking.k8s.io/v1 for Kubernetes versions 1.19+
FIX: cortexproject/cortex-helm-chart#94

Signed-off-by: Dilip Kola <[email protected]>

* Update the changelog for grafana#94

Signed-off-by: Dilip Kola <[email protected]>
  • Loading branch information
dilipkk-foyernet authored Jan 4, 2021
1 parent 4136b24 commit 82e6fa3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* [ENHANCEMENT] Compactor service is no longer created if compactor is disabled. #82
* [ENHANCEMENT] Headless service for alert manager is only enabled when the alert manager is deployed as a stateful set. #91
* [ENHANCEMENT] Update apiVersion: networking.k8s.io/v1beta1 -> networking.k8s.io/v1 for Kubernetes versions 1.19+ #94

## 0.2.0 / 2020-10-25

Expand Down
4 changes: 3 additions & 1 deletion templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{{- if and .Values.ingress.enabled .Values.nginx.enabled -}}
{{- $fullName := include "cortex.fullname" . -}}
{{- $svcPort := .Values.nginx.http_listen_port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
Expand Down

0 comments on commit 82e6fa3

Please sign in to comment.