Skip to content

Commit 6e7dd82

Browse files
Merge pull request #1419 from njhale/fix-codegen
Remove license year 2: Electric Boogaloo
2 parents b4b160d + 43a283d commit 6e7dd82

File tree

143 files changed

+352
-342
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+352
-342
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,11 @@ manifests: vendor
160160

161161
$(YQ_INTERNAL) w --inplace deploy/chart/crds/0000_50_olm_03-clusterserviceversion.crd.yaml spec.validation.openAPIV3Schema.properties.spec.properties.install.properties.spec.properties.deployments.items.properties.spec.properties.template.properties.metadata.x-kubernetes-preserve-unknown-fields true
162162

163-
# Generate clients, listers, and informers
163+
# Generate deepcopy, conversion, clients, listers, and informers
164164
codegen:
165+
# Deepcopy
166+
$(CONTROLLER_GEN) object:headerFile=./boilerplate.go.txt paths=./pkg/api/apis/operators/...i
167+
# Conversion, clients, listers, and informers
165168
$(CODEGEN)
166169

167170
# Generate mock types.

boilerplate.go.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright YEAR Red Hat, Inc.
2+
Copyright Red Hat, Inc.
33

44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

pkg/api/apis/operators/clusterserviceversion_types.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ type StatusDescriptor struct {
7777
DisplayName string
7878
Description string
7979
XDescriptors []string
80-
Value *json.RawMessage
80+
Value json.RawMessage
8181
}
8282

8383
// SpecDescriptor describes a field in a spec block of a CRD so that OLM can consume it
@@ -86,7 +86,7 @@ type SpecDescriptor struct {
8686
DisplayName string
8787
Description string
8888
XDescriptors []string
89-
Value *json.RawMessage
89+
Value json.RawMessage
9090
}
9191

9292
// ActionDescriptor describes a declarative action that can be performed on a custom resource instance
@@ -95,7 +95,7 @@ type ActionDescriptor struct {
9595
DisplayName string
9696
Description string
9797
XDescriptors []string
98-
Value *json.RawMessage
98+
Value json.RawMessage
9999
}
100100

101101
// CRDDescription provides details to OLM about the CRDs

pkg/api/apis/operators/v1/zz_generated.conversion.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/api/apis/operators/v1/zz_generated.deepcopy.go

+3-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/api/apis/operators/v1alpha1/clusterserviceversion_types.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ type StatusDescriptor struct {
8282
DisplayName string `json:"displayName,omitempty"`
8383
Description string `json:"description,omitempty"`
8484
// +listType=set
85-
XDescriptors []string `json:"x-descriptors,omitempty"`
86-
Value *json.RawMessage `json:"value,omitempty"`
85+
XDescriptors []string `json:"x-descriptors,omitempty"`
86+
Value json.RawMessage `json:"value,omitempty"`
8787
}
8888

8989
// SpecDescriptor describes a field in a spec block of a CRD so that OLM can consume it
@@ -93,8 +93,8 @@ type SpecDescriptor struct {
9393
DisplayName string `json:"displayName,omitempty"`
9494
Description string `json:"description,omitempty"`
9595
// +listType=set
96-
XDescriptors []string `json:"x-descriptors,omitempty"`
97-
Value *json.RawMessage `json:"value,omitempty"`
96+
XDescriptors []string `json:"x-descriptors,omitempty"`
97+
Value json.RawMessage `json:"value,omitempty"`
9898
}
9999

100100
// ActionDescriptor describes a declarative action that can be performed on a custom resource instance
@@ -104,8 +104,8 @@ type ActionDescriptor struct {
104104
DisplayName string `json:"displayName,omitempty"`
105105
Description string `json:"description,omitempty"`
106106
// +listType=set
107-
XDescriptors []string `json:"x-descriptors,omitempty"`
108-
Value *json.RawMessage `json:"value,omitempty"`
107+
XDescriptors []string `json:"x-descriptors,omitempty"`
108+
Value json.RawMessage `json:"value,omitempty"`
109109
}
110110

111111
// CRDDescription provides details to OLM about the CRDs

pkg/api/apis/operators/v1alpha1/zz_generated.conversion.go

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)