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: "" 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{},