From 1ba4ff977ea3d48e3b15d8615d4f32ba7ba0c1d0 Mon Sep 17 00:00:00 2001 From: Valentin Gerlach Date: Mon, 25 Aug 2025 16:20:21 +0200 Subject: [PATCH 1/2] fix: function IsCRDNotFound should also work with NoResourceMatchErrors --- pkg/utils/errors.go | 5 +++++ pkg/utils/errors_test.go | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/pkg/utils/errors.go b/pkg/utils/errors.go index 81e7c31..ab04e10 100644 --- a/pkg/utils/errors.go +++ b/pkg/utils/errors.go @@ -15,6 +15,11 @@ func IsCRDNotFound(err error) bool { return true } + // check if err tree contains a "NoResourceMatchError" error. + if errors.Is(err, &meta.NoResourceMatchError{}) { + return true + } + // check if err tree contains a "ErrResourceDiscoveryFailed" error. var rdfErr *apiutil.ErrResourceDiscoveryFailed if !errors.As(err, &rdfErr) { diff --git a/pkg/utils/errors_test.go b/pkg/utils/errors_test.go index bf95a10..a392ff0 100644 --- a/pkg/utils/errors_test.go +++ b/pkg/utils/errors_test.go @@ -25,6 +25,11 @@ func TestIsCRDNotFound(t *testing.T) { err: &meta.NoKindMatchError{}, want: true, }, + { + name: "no resource match error", + err: &meta.NoResourceMatchError{}, + want: true, + }, { name: "resource discovery failed error", err: &apiutil.ErrResourceDiscoveryFailed{}, From 56b04858d64c5c282f7288545fcb4a08a49501c8 Mon Sep 17 00:00:00 2001 From: Valentin Gerlach Date: Mon, 25 Aug 2025 16:21:54 +0200 Subject: [PATCH 2/2] feat: release v0.1.14 --- VERSION | 2 +- charts/control-plane-operator/Chart.yaml | 4 ++-- charts/control-plane-operator/values.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index a9bbfaf..26452c5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v0.1.13-dev \ No newline at end of file +v0.1.14 \ No newline at end of file diff --git a/charts/control-plane-operator/Chart.yaml b/charts/control-plane-operator/Chart.yaml index cf02a4f..194c185 100644 --- a/charts/control-plane-operator/Chart.yaml +++ b/charts/control-plane-operator/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: control-plane-operator description: A Helm chart for the Cloud Orchestration Control Plane Operator type: application -version: v0.1.13 -appVersion: v0.1.13 +version: v0.1.14 +appVersion: v0.1.14 home: https://github.com/openmcp-project/control-plane-operator sources: - https://github.com/openmcp-project/control-plane-operator diff --git a/charts/control-plane-operator/values.yaml b/charts/control-plane-operator/values.yaml index 5460d99..ae56f34 100644 --- a/charts/control-plane-operator/values.yaml +++ b/charts/control-plane-operator/values.yaml @@ -8,7 +8,7 @@ image: repository: ghcr.io/openmcp-project/images/control-plane-operator pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: v0.1.13 + tag: v0.1.14 imagePullSecrets: [] nameOverride: ""