From 9abc341479c5ecc78172f9ecd0ac1b7e8818c039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uro=C5=A1=20Simovi=C4=87?= Date: Fri, 22 Nov 2024 11:39:16 +0100 Subject: [PATCH] fix: properly label StatefulSet volumeClaimTemplates --- api/internal/konfig/builtinpluginconsts/commonlabels.go | 5 +++++ api/internal/konfig/builtinpluginconsts/metadatalabels.go | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/internal/konfig/builtinpluginconsts/commonlabels.go b/api/internal/konfig/builtinpluginconsts/commonlabels.go index b2a78f5681..4a6f3a32b3 100644 --- a/api/internal/konfig/builtinpluginconsts/commonlabels.go +++ b/api/internal/konfig/builtinpluginconsts/commonlabels.go @@ -56,6 +56,11 @@ commonLabels: group: apps kind: StatefulSet +- path: spec/volumeClaimTemplates[]/metadata/labels + create: true + group: apps + kind: StatefulSet + - path: spec/template/spec/affinity/podAffinity/preferredDuringSchedulingIgnoredDuringExecution/podAffinityTerm/labelSelector/matchLabels create: false group: apps diff --git a/api/internal/konfig/builtinpluginconsts/metadatalabels.go b/api/internal/konfig/builtinpluginconsts/metadatalabels.go index d070cca4b8..d9d6eb0e12 100644 --- a/api/internal/konfig/builtinpluginconsts/metadatalabels.go +++ b/api/internal/konfig/builtinpluginconsts/metadatalabels.go @@ -29,11 +29,6 @@ const metadataLabelsFieldSpecs = ` group: apps kind: StatefulSet -- path: spec/volumeClaimTemplates[]/metadata/labels - create: true - group: apps - kind: StatefulSet - - path: spec/template/metadata/labels create: true group: batch