mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/satisfy] upgrade to use apps/v1 (#23431)
Signed-off-by: charles-edouard.breteche <charles.breteche@agriconomie.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
apiVersion: apps/v1beta2
|
||||
{{- $apiVersion := include "satisfy.deployAPIVersion" . -}}
|
||||
apiVersion: {{ $apiVersion }}
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "satisfy.fullname" . }}
|
||||
|
||||
Reference in New Issue
Block a user