Skip to content

Commit 6bb2dda

Browse files
authored
fix: preserve metadata fields (#141)
* fix: preserve unknown fields in shoot template metadata * feat: release v0.9.1
1 parent 5d41072 commit 6bb2dda

File tree

5 files changed

+7
-2
lines changed

5 files changed

+7
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.9.0-dev
1+
v0.9.1

api/crds/manifests/gardener.clusters.openmcp.cloud_providerconfigs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ spec:
9090
metadata:
9191
description: Standard object metadata.
9292
type: object
93+
x-kubernetes-preserve-unknown-fields: true
9394
spec:
9495
description: Specification of the desired behavior of the Shoot.
9596
properties:

api/external/gardener/pkg/apis/core/v1beta1/types_shoot.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ type ShootList struct {
5353
type ShootTemplate struct {
5454
// Standard object metadata.
5555
// +optional
56+
// +kubebuilder:pruning:PreserveUnknownFields
5657
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
5758

5859
// Specification of the desired behavior of the Shoot.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
github.com/Masterminds/semver/v3 v3.4.0
1010
github.com/onsi/ginkgo/v2 v2.26.0
1111
github.com/onsi/gomega v1.38.2
12-
github.com/openmcp-project/cluster-provider-gardener/api v0.9.0
12+
github.com/openmcp-project/cluster-provider-gardener/api v0.9.1
1313
github.com/openmcp-project/openmcp-operator/api v0.15.2
1414
gopkg.in/yaml.v3 v3.0.1
1515
k8s.io/apimachinery v0.34.1

hack/external-apis/apis.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ apis:
3838
- name: pkg/apis/core/v1beta1/types_secretbinding.go
3939
- name: pkg/apis/core/v1beta1/types_seed.go
4040
- name: pkg/apis/core/v1beta1/types_shoot.go
41+
patches:
42+
- replace: "type ShootTemplate struct {\n // Standard object metadata.\n // +optional"
43+
with: "type ShootTemplate struct {\n // Standard object metadata.\n // +optional\n // +kubebuilder:pruning:PreserveUnknownFields"
4144
- name: pkg/apis/core/v1beta1/types_shootstate.go
4245
- name: pkg/apis/core/v1beta1/types_utils.go
4346
- name: pkg/apis/core/v1beta1/types.go

0 commit comments

Comments
 (0)