From 35e914d159d92d9ef7b4ff38494d314504b27620 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Thu, 7 Dec 2023 17:37:00 +0100 Subject: [PATCH] api: deprecate stragic merge and JSON 6902 patches They have been deprecated for a long time, and should be scheduled for removal to ensure they can be removed in the final `v2` release. Signed-off-by: Hidde Beydals --- api/v2beta2/helmrelease_types.go | 2 ++ config/crd/bases/helm.toolkit.fluxcd.io_helmreleases.yaml | 7 ++++--- docs/api/v2beta2/helm.md | 6 ++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/api/v2beta2/helmrelease_types.go b/api/v2beta2/helmrelease_types.go index eaea9c01c..e9e36b240 100644 --- a/api/v2beta2/helmrelease_types.go +++ b/api/v2beta2/helmrelease_types.go @@ -50,10 +50,12 @@ type Kustomize struct { Patches []kustomize.Patch `json:"patches,omitempty"` // Strategic merge patches, defined as inline YAML objects. + // Deprecated: use Patches instead. // +optional PatchesStrategicMerge []apiextensionsv1.JSON `json:"patchesStrategicMerge,omitempty"` // JSON 6902 patches, defined as inline YAML objects. + // Deprecated: use Patches instead. // +optional PatchesJSON6902 []kustomize.JSON6902Patch `json:"patchesJson6902,omitempty"` diff --git a/config/crd/bases/helm.toolkit.fluxcd.io_helmreleases.yaml b/config/crd/bases/helm.toolkit.fluxcd.io_helmreleases.yaml index fd970a64c..1eaf12d74 100644 --- a/config/crd/bases/helm.toolkit.fluxcd.io_helmreleases.yaml +++ b/config/crd/bases/helm.toolkit.fluxcd.io_helmreleases.yaml @@ -1529,7 +1529,8 @@ spec: type: object type: array patchesJson6902: - description: JSON 6902 patches, defined as inline YAML objects. + description: 'JSON 6902 patches, defined as inline YAML + objects. Deprecated: use Patches instead.' items: description: JSON6902Patch contains a JSON6902 patch and the target the patch should be applied to. @@ -1624,8 +1625,8 @@ spec: type: object type: array patchesStrategicMerge: - description: Strategic merge patches, defined as inline - YAML objects. + description: 'Strategic merge patches, defined as inline + YAML objects. Deprecated: use Patches instead.' items: x-kubernetes-preserve-unknown-fields: true type: array diff --git a/docs/api/v2beta2/helm.md b/docs/api/v2beta2/helm.md index 3a62206c3..840a1ca2d 100644 --- a/docs/api/v2beta2/helm.md +++ b/docs/api/v2beta2/helm.md @@ -1897,7 +1897,8 @@ capable of targeting objects based on kind, label and annotation selectors.

(Optional) -

Strategic merge patches, defined as inline YAML objects.

+

Strategic merge patches, defined as inline YAML objects. +Deprecated: use Patches instead.

@@ -1911,7 +1912,8 @@ capable of targeting objects based on kind, label and annotation selectors.

(Optional) -

JSON 6902 patches, defined as inline YAML objects.

+

JSON 6902 patches, defined as inline YAML objects. +Deprecated: use Patches instead.