From d46ae98ba67b8ee40af1187a065456a93e8f2c6a Mon Sep 17 00:00:00 2001 From: Helene Durand <90329641+hdurand0710@users.noreply.github.com> Date: Tue, 3 Jan 2023 09:56:20 +0100 Subject: [PATCH] Configure for prow (#8) * Configure for prow Signed-off-by: Helene Durand * Fix job Signed-off-by: Helene Durand * Add OWNERS and OWNERS_ALIASES Signed-off-by: Helene Durand Signed-off-by: Helene Durand --- .prow/verify.yaml | 33 +++++++++++++++++++++ Dockerfile | 14 +++++++++ Makefile | 16 +++++++++- OWNERS | 10 +++++++ OWNERS_ALIASES | 9 ++++++ api/v1alpha1/groupversion_info.go | 2 +- api/v1alpha1/tenant_types.go | 2 +- api/v1alpha1/zz_generated.deepcopy.go | 2 +- controllers/tenant/controller.go | 2 +- controllers/tenant/csi-driver.go | 16 ++++++++++ controllers/tenant/daemonset.go | 16 ++++++++++ controllers/tenant/rbac.go | 16 ++++++++++ controllers/tenant/storageclass.go | 16 ++++++++++ controllers/tenant/storageclass_test.go | 16 ++++++++++ controllers/tenant/suite_test.go | 2 +- go.mod | 2 ++ go.sum | 5 ++++ hack/boilerplate/boilerplate.Dockerfile.txt | 14 +++++++++ hack/boilerplate/boilerplate.Makefile.txt | 14 +++++++++ hack/boilerplate/boilerplate.bzl.txt | 14 +++++++++ hack/boilerplate/boilerplate.generatego.txt | 16 ++++++++++ hack/boilerplate/boilerplate.go.txt | 16 ++++++++++ hack/boilerplate/boilerplate.py.txt | 16 ++++++++++ hack/boilerplate/boilerplate.sh.txt | 13 ++++++++ hack/verify-boilerplate.sh | 22 ++++++++++++++ main.go | 2 +- 26 files changed, 299 insertions(+), 7 deletions(-) create mode 100644 .prow/verify.yaml create mode 100644 OWNERS create mode 100644 OWNERS_ALIASES create mode 100644 hack/boilerplate/boilerplate.Dockerfile.txt create mode 100644 hack/boilerplate/boilerplate.Makefile.txt create mode 100644 hack/boilerplate/boilerplate.bzl.txt create mode 100644 hack/boilerplate/boilerplate.generatego.txt create mode 100644 hack/boilerplate/boilerplate.go.txt create mode 100644 hack/boilerplate/boilerplate.py.txt create mode 100644 hack/boilerplate/boilerplate.sh.txt create mode 100755 hack/verify-boilerplate.sh diff --git a/.prow/verify.yaml b/.prow/verify.yaml new file mode 100644 index 0000000..3c0a78a --- /dev/null +++ b/.prow/verify.yaml @@ -0,0 +1,33 @@ +# Copyright 2022 The KubeVirt CSI driver Operator contributors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +presubmits: + - name: pull-kubevirt-csi-driver-operator-verify-boilerplate + always_run: true + decorate: true + clone_uri: "ssh://git@github.com/kubermatic/kubevirt-csi-driver-operator.git" + labels: + preset-goproxy: "true" + spec: + containers: + - image: quay.io/kubermatic-labs/boilerplate:v0.2.0 + command: + - "./hack/verify-boilerplate.sh" + resources: + requests: + memory: 32Mi + cpu: 50m + limits: + memory: 256Mi + cpu: 250m diff --git a/Dockerfile b/Dockerfile index af79763..3161512 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2022 The KubeVirt CSI driver Operator Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Build the manager binary FROM golang:1.19 as builder diff --git a/Makefile b/Makefile index 6e3a901..3115dc4 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,17 @@ +# Copyright 2022 The KubeVirt CSI driver Operator Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Image URL to use all building/pushing image targets IMG ?= quay.io/kubermatic/kubevirt-csi-driver-operator:v0.2.0 @@ -44,7 +58,7 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust .PHONY: generate generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations. - $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..." + $(CONTROLLER_GEN) object:headerFile="./hack/boilerplate/boilerplate.go.txt" paths="./..." output:stdout .PHONY: fmt fmt: ## Run go fmt against code. diff --git a/OWNERS b/OWNERS new file mode 100644 index 0000000..ef99b24 --- /dev/null +++ b/OWNERS @@ -0,0 +1,10 @@ +# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md + +approvers: + - sig-virtualization + +reviewers: + - sig-virtualization + +labels: + - sig/virtualization diff --git a/OWNERS_ALIASES b/OWNERS_ALIASES new file mode 100644 index 0000000..d2d24cc --- /dev/null +++ b/OWNERS_ALIASES @@ -0,0 +1,9 @@ +# See the OWNERS docs: https://github.com/kubernetes/community/blob/master/contributors/guide/owners.md + +aliases: + sig-virtualization: + - dermorz + - hdurand0710 + - mfranczy + - sankalp-r + diff --git a/api/v1alpha1/groupversion_info.go b/api/v1alpha1/groupversion_info.go index 832aea4..f793eac 100644 --- a/api/v1alpha1/groupversion_info.go +++ b/api/v1alpha1/groupversion_info.go @@ -1,5 +1,5 @@ /* -Copyright 2021. +Copyright 2022 The KubeVirt CSI driver Operator Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/api/v1alpha1/tenant_types.go b/api/v1alpha1/tenant_types.go index e25af15..865d721 100644 --- a/api/v1alpha1/tenant_types.go +++ b/api/v1alpha1/tenant_types.go @@ -1,5 +1,5 @@ /* -Copyright 2021. +Copyright 2022 The KubeVirt CSI driver Operator Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index fb9adab..535f247 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -2,7 +2,7 @@ // +build !ignore_autogenerated /* -Copyright 2021. +Copyright 2022 The KubeVirt CSI driver Operator Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/controllers/tenant/controller.go b/controllers/tenant/controller.go index 7ff40eb..437c555 100644 --- a/controllers/tenant/controller.go +++ b/controllers/tenant/controller.go @@ -1,5 +1,5 @@ /* -Copyright 2021. +Copyright 2022 The KubeVirt CSI driver Operator Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/controllers/tenant/csi-driver.go b/controllers/tenant/csi-driver.go index 74ceec1..eb0aee4 100644 --- a/controllers/tenant/csi-driver.go +++ b/controllers/tenant/csi-driver.go @@ -1,3 +1,19 @@ +/* +Copyright 2022 The KubeVirt CSI driver Operator Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package tenant import ( diff --git a/controllers/tenant/daemonset.go b/controllers/tenant/daemonset.go index d8708a5..022dcfd 100644 --- a/controllers/tenant/daemonset.go +++ b/controllers/tenant/daemonset.go @@ -1,3 +1,19 @@ +/* +Copyright 2022 The KubeVirt CSI driver Operator Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package tenant import ( diff --git a/controllers/tenant/rbac.go b/controllers/tenant/rbac.go index ab772ba..7a2b5a4 100644 --- a/controllers/tenant/rbac.go +++ b/controllers/tenant/rbac.go @@ -1,3 +1,19 @@ +/* +Copyright 2022 The KubeVirt CSI driver Operator Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package tenant import ( diff --git a/controllers/tenant/storageclass.go b/controllers/tenant/storageclass.go index ae43e37..e72ecd6 100644 --- a/controllers/tenant/storageclass.go +++ b/controllers/tenant/storageclass.go @@ -1,3 +1,19 @@ +/* +Copyright 2022 The KubeVirt CSI driver Operator Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package tenant import ( diff --git a/controllers/tenant/storageclass_test.go b/controllers/tenant/storageclass_test.go index 23829ce..82c86b9 100644 --- a/controllers/tenant/storageclass_test.go +++ b/controllers/tenant/storageclass_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2022 The KubeVirt CSI driver Operator Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package tenant import ( diff --git a/controllers/tenant/suite_test.go b/controllers/tenant/suite_test.go index 712b4d6..d916b27 100644 --- a/controllers/tenant/suite_test.go +++ b/controllers/tenant/suite_test.go @@ -1,5 +1,5 @@ /* -Copyright 2021. +Copyright 2022 The KubeVirt CSI driver Operator Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/go.mod b/go.mod index e982a89..0dc35ef 100644 --- a/go.mod +++ b/go.mod @@ -45,6 +45,7 @@ require ( github.com/imdario/mergo v0.3.12 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect + github.com/kubermatic-labs/boilerplate v0.2.0 // indirect github.com/mailru/easyjson v0.7.6 // indirect github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect @@ -56,6 +57,7 @@ require ( github.com/prometheus/client_model v0.2.0 // indirect github.com/prometheus/common v0.32.1 // indirect github.com/prometheus/procfs v0.7.3 // indirect + github.com/sirupsen/logrus v1.8.1 // indirect github.com/spf13/pflag v1.0.5 // indirect go.uber.org/atomic v1.7.0 // indirect go.uber.org/multierr v1.6.0 // indirect diff --git a/go.sum b/go.sum index f9ce43b..835a9cf 100644 --- a/go.sum +++ b/go.sum @@ -259,6 +259,8 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/kubermatic-labs/boilerplate v0.2.0 h1:OoihYen170DygW5d4mP5wSGX45TG7OJrZHUljSbBmL0= +github.com/kubermatic-labs/boilerplate v0.2.0/go.mod h1:mOpCjyxYd0FAFOAwiPzowUByxL+NDpB/vpcc9fueJ90= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.7.6 h1:8yTIVnZgCoiM1TgqoeTl+LfU5Jg6/xL3QhGQnimLYnA= @@ -324,6 +326,8 @@ github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= +github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE= +github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= @@ -493,6 +497,7 @@ golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= diff --git a/hack/boilerplate/boilerplate.Dockerfile.txt b/hack/boilerplate/boilerplate.Dockerfile.txt new file mode 100644 index 0000000..65aee17 --- /dev/null +++ b/hack/boilerplate/boilerplate.Dockerfile.txt @@ -0,0 +1,14 @@ +# Copyright YEAR The KubeVirt CSI driver Operator Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + diff --git a/hack/boilerplate/boilerplate.Makefile.txt b/hack/boilerplate/boilerplate.Makefile.txt new file mode 100644 index 0000000..65aee17 --- /dev/null +++ b/hack/boilerplate/boilerplate.Makefile.txt @@ -0,0 +1,14 @@ +# Copyright YEAR The KubeVirt CSI driver Operator Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + diff --git a/hack/boilerplate/boilerplate.bzl.txt b/hack/boilerplate/boilerplate.bzl.txt new file mode 100644 index 0000000..65aee17 --- /dev/null +++ b/hack/boilerplate/boilerplate.bzl.txt @@ -0,0 +1,14 @@ +# Copyright YEAR The KubeVirt CSI driver Operator Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + diff --git a/hack/boilerplate/boilerplate.generatego.txt b/hack/boilerplate/boilerplate.generatego.txt new file mode 100644 index 0000000..b580bed --- /dev/null +++ b/hack/boilerplate/boilerplate.generatego.txt @@ -0,0 +1,16 @@ +/* +Copyright The KubeVirt CSI driver Operator Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + diff --git a/hack/boilerplate/boilerplate.go.txt b/hack/boilerplate/boilerplate.go.txt new file mode 100644 index 0000000..f1b3fc3 --- /dev/null +++ b/hack/boilerplate/boilerplate.go.txt @@ -0,0 +1,16 @@ +/* +Copyright YEAR The KubeVirt CSI driver Operator Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + diff --git a/hack/boilerplate/boilerplate.py.txt b/hack/boilerplate/boilerplate.py.txt new file mode 100644 index 0000000..7738371 --- /dev/null +++ b/hack/boilerplate/boilerplate.py.txt @@ -0,0 +1,16 @@ +#!/usr/bin/env python + +# Copyright YEAR The KubeVirt CSI driver Operator Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + diff --git a/hack/boilerplate/boilerplate.sh.txt b/hack/boilerplate/boilerplate.sh.txt new file mode 100644 index 0000000..beda37a --- /dev/null +++ b/hack/boilerplate/boilerplate.sh.txt @@ -0,0 +1,13 @@ +# Copyright YEAR The KubeVirt CSI driver Operator Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/hack/verify-boilerplate.sh b/hack/verify-boilerplate.sh new file mode 100755 index 0000000..c5a9b93 --- /dev/null +++ b/hack/verify-boilerplate.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +# Copyright 2022 The KubeVirt CSI driver Operator Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -euo pipefail + +cd $(dirname $0)/.. + +boilerplate \ + -boilerplates hack/boilerplate diff --git a/main.go b/main.go index 2df69cb..918ff97 100644 --- a/main.go +++ b/main.go @@ -1,5 +1,5 @@ /* -Copyright 2021. +Copyright 2022 The KubeVirt CSI driver Operator Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.