Skip to content

Commit 24b8f80

Browse files
morri-sonmorrison-sapjakobmoellerdev
authored
chore: Fix Deepcopy issue for Component struct (#1266)
On-behalf-of: Gerald Morrison (SAP) <gerald.morrison@sap.com> <!-- markdownlint-disable MD041 --> #### What this PR does / why we need it Fix Deepcopy issue for Component struct --------- Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com> Co-authored-by: Gerald Morrison (SAP) <gerald.morrison@sap.com> Co-authored-by: Jakob Möller <jakob.moeller@sap.com>
1 parent 50350c0 commit 24b8f80

2 files changed

Lines changed: 74 additions & 0 deletions

File tree

bindings/go/descriptor/v2/descriptor.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const (
3232

3333
// Descriptor defines a schema specific descriptor of a component containing additionally embedded signatures
3434
// verifying the validity of the component.
35+
// +k8s:deepcopy-gen=true
3536
type Descriptor struct {
3637
// Meta defines the schema version of the component.
3738
Meta Meta `json:"meta"`
@@ -51,6 +52,7 @@ func (d *Descriptor) String() string {
5152

5253
// Component defines a named and versioned component containing dependencies such as sources, resources and
5354
// references pointing to further component versions.
55+
// +k8s:deepcopy-gen=true
5456
type Component struct {
5557
ComponentMeta `json:",inline"`
5658
// RepositoryContexts defines the previous repositories of the component.

bindings/go/descriptor/v2/zz_generated.deepcopy.go

Lines changed: 72 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)