Skip to content

Commit 8e30273

Browse files
authored
Preserve Copyright notice (#305)
Before this commit 'make manifests' removed the copyright notice from config/crd/bases/rabbitmq.com_rabbitmqclusters.yaml. After this commit, the copyright notice is preserved.
1 parent d257ce5 commit 8e30273

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ integration-tests: generate fmt vet manifests ## Run integration tests
2020
manifests: controller-gen ## Generate manifests e.g. CRD, RBAC etc.
2121
$(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=operator-role paths="./api/...;./controllers/..." output:crd:artifacts:config=config/crd/bases
2222
./hack/add-notice-to-yaml.sh config/rbac/role.yaml
23-
./hack/add-notice-to-yaml.sh config/crd/bases/rabbitmq.com_rabbitmqclusters.yaml
2423
# this is temporary workaround due to issue https://github.com/kubernetes/kubernetes/issues/91395
2524
# the hack ensures that "protocal" is a required value where this field is listed as x-kubernetes-list-map-keys
2625
# without the hack, our crd doesn't install on k8s 1.18 because of the issue above
2726
./hack/patch-crd.sh
27+
./hack/add-notice-to-yaml.sh config/crd/bases/rabbitmq.com_rabbitmqclusters.yaml
2828

2929
# Run go fmt against code
3030
fmt:

config/crd/bases/rabbitmq.com_rabbitmqclusters.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
#
77
# This product may include a number of subcomponents with separate copyright notices and license terms. Your use of these subcomponents is subject to the terms and conditions of the subcomponent's license, as noted in the LICENSE file.
88

9-
10-
---
119
apiVersion: apiextensions.k8s.io/v1
1210
kind: CustomResourceDefinition
1311
metadata:

0 commit comments

Comments
 (0)