From c5722c4a4144df6315d11c00fb85c0fdf8c987cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?onokatio=28=E3=81=8A=E3=81=AE=E3=81=8B=E3=81=A1=E3=81=8A?= =?UTF-8?q?=29?= Date: Wed, 11 Dec 2019 07:14:05 +0900 Subject: [PATCH] use apps/v1 (#17716) Signed-off-by: onokatio --- stable/hackmd/Chart.yaml | 2 +- stable/hackmd/templates/deployment.yaml | 2 +- stable/hackmd/templates/ingress.yaml | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/stable/hackmd/Chart.yaml b/stable/hackmd/Chart.yaml index d92a75748683..246f1a18ebe6 100644 --- a/stable/hackmd/Chart.yaml +++ b/stable/hackmd/Chart.yaml @@ -1,6 +1,6 @@ name: hackmd apiVersion: v1 -version: "1.2.1" +version: "1.2.2" appVersion: "1.3.0-alpine" description: Realtime collaborative markdown notes on all platforms. icon: https://hackmd.io/favicon.png diff --git a/stable/hackmd/templates/deployment.yaml b/stable/hackmd/templates/deployment.yaml index bf05a0fc9b1b..a8b6871ad162 100644 --- a/stable/hackmd/templates/deployment.yaml +++ b/stable/hackmd/templates/deployment.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "hackmd.fullname" . }} diff --git a/stable/hackmd/templates/ingress.yaml b/stable/hackmd/templates/ingress.yaml index c721c52c9955..d44bd1b3b58a 100644 --- a/stable/hackmd/templates/ingress.yaml +++ b/stable/hackmd/templates/ingress.yaml @@ -2,7 +2,7 @@ {{- $fullName := include "hackmd.fullname" . -}} {{- $servicePort := .Values.service.port -}} {{- $ingressPath := .Values.ingress.path -}} -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Ingress metadata: name: {{ $fullName }} @@ -16,6 +16,9 @@ metadata: {{ toYaml . | indent 4 }} {{- end }} spec: + selector: + matchLabels: + app: {{ template "hackmd.name" . }} {{- if .Values.ingress.tls }} tls: {{- range .Values.ingress.tls }}