diff options
author | Bruno Sakoto <bruno.sakoto@bell.ca> | 2022-04-08 06:27:06 -0400 |
---|---|---|
committer | Lukasz Rajewski <lukasz.rajewski@orange.com> | 2022-04-11 15:04:12 +0000 |
commit | 79a0a147fc7a0f660498bd3479e9aa4beb028672 (patch) | |
tree | f8abe43a0840c6e08d6feab55032703c975d1150 /kubernetes/common/common/templates/_storage.tpl | |
parent | c80c2387c1980ac820c1df956aec38479276b3c7 (diff) |
[CPS] Fix statefulset upgrade
Remove helm chart label from timescaledb statefulset fields for which
updates are forbidden
Issue-ID: CPS-857
Change-Id: I024ef0cd8c23c477e1d43a1a4ee9c5d6d1743f3b
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Diffstat (limited to 'kubernetes/common/common/templates/_storage.tpl')
-rw-r--r-- | kubernetes/common/common/templates/_storage.tpl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kubernetes/common/common/templates/_storage.tpl b/kubernetes/common/common/templates/_storage.tpl index 2114d677e6..a7819bef5f 100644 --- a/kubernetes/common/common/templates/_storage.tpl +++ b/kubernetes/common/common/templates/_storage.tpl @@ -1,5 +1,6 @@ {{/* # Copyright © 2019 Amdocs, Bell Canada, Orange +# Modifications Copyright (C) 2022 Bell Canada # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -281,7 +282,7 @@ apiVersion: v1 {{- $persistenceInfos := default $dot.Values.persistence .persistenceInfos -}} {{- $suffix := default "data" .suffix -}} {{- $metadata_suffix := ternary "" $suffix (eq $suffix "data") -}} -metadata: {{- include "common.resourceMetadata" (dict "dot" $dot "suffix" $metadata_suffix "annotations" $persistenceInfos.annotations) | nindent 2 }} +metadata: {{- include "common.resourceMetadata" (dict "dot" $dot "suffix" $metadata_suffix "annotations" $persistenceInfos.annotations "ignoreHelmChart" .ignoreHelmChart) | nindent 2 }} spec: accessModes: - {{ $persistenceInfos.accessMode }} |