diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 981ea740..586160bd 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -45,9 +45,6 @@ jobs: - name: Format test run: make format - - name: License test - run: make license-check - - name: bootstrap run: make bootstrap diff --git a/Makefile b/Makefile index 3fe72c29..b3f7f3fd 100644 --- a/Makefile +++ b/Makefile @@ -90,7 +90,7 @@ export DBUILD_ARGS=--build-arg DBUILD_DATE=${DBUILD_DATE} --build-arg DBUILD_REP CSI_DRIVER=lvm-driver .PHONY: all -all: license-check golint test manifests lvm-driver-image +all: golint test manifests lvm-driver-image .PHONY: clean clean: @@ -276,17 +276,4 @@ golint: @echo "--------------------------------" @echo "" -.PHONY: license-check -license-check: - @echo "--> Checking license header..." - @licRes=$$(for file in $$(find . -type f -regex '.*\.sh\|.*\.go\|.*Docker.*\|.*\Makefile*') ; do \ - awk 'NR<=5' $$file | grep -Eq "(Copyright|generated|GENERATED)" || echo $$file; \ - done); \ - if [ -n "$${licRes}" ]; then \ - echo "license header checking failed:"; echo "$${licRes}"; \ - exit 1; \ - fi - @echo "--> Done checking license." - @echo - include Makefile.buildx.mk diff --git a/pkg/driver/controller.go b/pkg/driver/controller.go index f50e711e..e0708321 100644 --- a/pkg/driver/controller.go +++ b/pkg/driver/controller.go @@ -1,19 +1,3 @@ -/* -Copyright © 2019 The OpenEBS 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 driver import ( diff --git a/tests/utils.go b/tests/utils.go index 99de47d7..edd48042 100644 --- a/tests/utils.go +++ b/tests/utils.go @@ -1,19 +1,3 @@ -/* -Copyright 2021 The OpenEBS 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 tests import ( @@ -25,6 +9,11 @@ import ( "github.com/onsi/gomega" "github.com/openebs/lib-csi/pkg/csipv" + appsv1 "k8s.io/api/apps/v1" + corev1 "k8s.io/api/core/v1" + k8serrors "k8s.io/apimachinery/pkg/api/errors" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "github.com/openebs/lvm-localpv/pkg/lvm" "github.com/openebs/lvm-localpv/tests/container" "github.com/openebs/lvm-localpv/tests/deploy" @@ -33,10 +22,6 @@ import ( "github.com/openebs/lvm-localpv/tests/pts" "github.com/openebs/lvm-localpv/tests/pvc" "github.com/openebs/lvm-localpv/tests/sc" - appsv1 "k8s.io/api/apps/v1" - corev1 "k8s.io/api/core/v1" - k8serrors "k8s.io/apimachinery/pkg/api/errors" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/api/resource" )