From 9025b6c2c7fbf5287789d8daea57cee33ce91b40 Mon Sep 17 00:00:00 2001 From: Ryan Holt Date: Tue, 17 Mar 2020 13:12:22 -0400 Subject: [PATCH] enable deployment annotations, bump chart version (#21502) Signed-off-by: Ryan Holt --- stable/minecraft/Chart.yaml | 2 +- stable/minecraft/templates/deployment.yaml | 6 ++++++ stable/minecraft/values.yaml | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/stable/minecraft/Chart.yaml b/stable/minecraft/Chart.yaml index 4792ac985f..546f33c5ea 100755 --- a/stable/minecraft/Chart.yaml +++ b/stable/minecraft/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: minecraft -version: 1.2.0 +version: 1.2.1 appVersion: 1.14.4 home: https://minecraft.net/ description: Minecraft server diff --git a/stable/minecraft/templates/deployment.yaml b/stable/minecraft/templates/deployment.yaml index 3ed21b1f99..859cedcc31 100644 --- a/stable/minecraft/templates/deployment.yaml +++ b/stable/minecraft/templates/deployment.yaml @@ -3,6 +3,12 @@ apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "minecraft.fullname" . }} + {{- if .Values.deploymentAnnotations }} + annotations: + {{- range $key, $value := .Values.deploymentAnnotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} labels: app: {{ template "minecraft.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" diff --git a/stable/minecraft/values.yaml b/stable/minecraft/values.yaml index 215e570358..170fe1b876 100644 --- a/stable/minecraft/values.yaml +++ b/stable/minecraft/values.yaml @@ -176,3 +176,5 @@ persistence: Size: 1Gi podAnnotations: {} + +deploymentAnnotations: {}