[stable/satisfy] upgrade to use apps/v1 (#23431)

Signed-off-by: charles-edouard.breteche <charles.breteche@agriconomie.com>
This commit is contained in:
eddycharly
2020-08-04 05:42:19 -07:00
committed by GitHub
parent 88fa0dbcbe
commit de250ee651
3 changed files with 15 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: satisfy
version: 1.0.0
version: 1.1.0
appVersion: "3.0.4"
description: Composer repo hosting with Satisfy
home: https://github.com/anapsix/docker-satisfy
+12 -1
View File
@@ -37,4 +37,15 @@ Create chart name and version as used by the chart label.
{{- else -}}
{{- printf "%s:%s" .Values.image.repository .Values.image.tag -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{/*
Use apps/v1 when supported, fallback to apps/v1beta2 if it's not.
*/}}
{{- define "satisfy.deployAPIVersion" -}}
{{- if .Capabilities.APIVersions.Has "apps/v1" -}}
{{- printf "apps/v1" -}}
{{- else -}}
{{- printf "apps/v1beta2" -}}
{{- end -}}
{{- end -}}
+2 -1
View File
@@ -1,4 +1,5 @@
apiVersion: apps/v1beta2
{{- $apiVersion := include "satisfy.deployAPIVersion" . -}}
apiVersion: {{ $apiVersion }}
kind: Deployment
metadata:
name: {{ include "satisfy.fullname" . }}