From af33e75aefd93f057c41567f97b081fc3f451a93 Mon Sep 17 00:00:00 2001 From: panigs7 <92028646+panigs7@users.noreply.github.com> Date: Thu, 24 Nov 2022 20:11:20 +0530 Subject: [PATCH] Add license headers (#110) --- OLM.md | 13 +++++++++ README.md | 13 +++++++++ api/v1/csiisilon_types.go | 24 ++++++++--------- api/v1/csipowermax_types.go | 24 ++++++++--------- api/v1/csipowermaxrevproxy_types.go | 24 ++++++++--------- api/v1/csipowerstore_types.go | 24 ++++++++--------- api/v1/csiunity_types.go | 24 ++++++++--------- api/v1/csivxflexos_types.go | 24 ++++++++--------- api/v1/groupversion_info.go | 24 ++++++++--------- api/v1/types.go | 14 ++++++++++ check.sh | 13 +++++++++ controllers/csiisilon_controller.go | 24 ++++++++--------- controllers/csipowermax_controller.go | 24 ++++++++--------- controllers/csipowermaxrevproxy_controller.go | 24 ++++++++--------- controllers/csipowerstore_controller.go | 24 ++++++++--------- controllers/csiunity_controller.go | 24 ++++++++--------- controllers/csivxflexos_controller.go | 24 ++++++++--------- controllers/suite_test.go | 27 +++++++++---------- core/core.go | 13 +++++++++ core/semver/semver.go | 14 ++++++++++ dev_documentation/README.md | 13 +++++++++ documentation/Readme.md | 13 +++++++++ main.go | 22 +++++++-------- pkg/config/config.go | 14 ++++++++++ pkg/constants/common.go | 14 ++++++++++ pkg/ctrlconfig/config.go | 14 ++++++++++ pkg/ctrlconfig/opconfig.go | 14 ++++++++++ pkg/resources/configmap/configmap.go | 14 ++++++++++ pkg/resources/csidriver/csidriver.go | 14 ++++++++++ pkg/resources/daemonset/daemonset.go | 15 +++++++++++ pkg/resources/deployment/deployment.go | 15 +++++++++++ pkg/resources/helper.go | 14 ++++++++++ pkg/resources/rbac/controllerrbac.go | 15 +++++++++++ pkg/resources/rbac/noderbac.go | 14 ++++++++++ pkg/resources/rbac/role.go | 14 ++++++++++ pkg/resources/rbac/rolebindings.go | 14 ++++++++++ pkg/resources/secrets/secrets.go | 14 ++++++++++ pkg/resources/service/service.go | 14 ++++++++++ .../serviceaccount/serviceaccount.go | 14 ++++++++++ pkg/resources/statefulset/statefulset.go | 14 ++++++++++ pkg/resources/storageclass/storageclass.go | 15 +++++++++++ .../createvolumesnapshotclass.go | 14 ++++++++++ pkg/utils/common.go | 14 ++++++++++ pkg/utils/status.go | 14 ++++++++++ pkg/utils/utils.go | 14 ++++++++++ pkg/utils/validate.go | 14 ++++++++++ scripts/build_olm_community_images.sh | 13 +++++++++ scripts/csi-offline-bundle.md | 13 +++++++++ scripts/delete_crds.sh | 12 +++++++++ scripts/install.sh | 12 +++++++++ scripts/install_olm.sh | 12 +++++++++ scripts/staging.sh | 12 +++++++++ scripts/uninstall.sh | 13 +++++++++ scripts/updatecsv.sh | 13 +++++++++ scripts/updateopenshiftcsv.sh | 13 +++++++++ scripts/verify.sh | 12 +++++++++ test/controller_test.go | 13 +++++++++ test/driver/Readme.md | 13 +++++++++ test/driver/create_yaml.sh | 13 +++++++++ test/driver/deleteEntities.sh | 13 +++++++++ test/driver/install_csi_driver.sh | 13 +++++++++ test/driver/operatorutils.go | 14 ++++++++++ test/driver/testlib.sh | 13 +++++++++ test/driver/uninstall_driver_operator.sh | 13 +++++++++ test/fakeclient_test.go | 13 +++++++++ test/integration-tests/basic_test.go | 13 +++++++++ test/integration-tests/framework/framework.go | 14 ++++++++++ test/integration-tests/main_test.go | 13 +++++++++ test/integration-tests/powermax_test.go | 13 +++++++++ test/integration-tests/utils/namespaces.go | 15 +++++++++++ test/integration-tests/utils/resources.go | 14 ++++++++++ 71 files changed, 923 insertions(+), 195 deletions(-) diff --git a/OLM.md b/OLM.md index e17ec74..781acf6 100644 --- a/OLM.md +++ b/OLM.md @@ -1,3 +1,16 @@ + # Operator Framework Operator Framework is a framework used for developing and managing entire lifecycle of Operators diff --git a/README.md b/README.md index c339c62..cac5c44 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,16 @@ + - [Dell CSI Operator](#dell-csi-operator) - [Supported Platforms](#supported-platforms) - [Installation](#installation) diff --git a/api/v1/csiisilon_types.go b/api/v1/csiisilon_types.go index 200de4b..dce50f7 100644 --- a/api/v1/csiisilon_types.go +++ b/api/v1/csiisilon_types.go @@ -1,17 +1,15 @@ /* - - -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. + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 v1 diff --git a/api/v1/csipowermax_types.go b/api/v1/csipowermax_types.go index 509d0ca..00bfc38 100644 --- a/api/v1/csipowermax_types.go +++ b/api/v1/csipowermax_types.go @@ -1,17 +1,15 @@ /* - - -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. + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 v1 diff --git a/api/v1/csipowermaxrevproxy_types.go b/api/v1/csipowermaxrevproxy_types.go index 51209e5..f10433f 100644 --- a/api/v1/csipowermaxrevproxy_types.go +++ b/api/v1/csipowermaxrevproxy_types.go @@ -1,17 +1,15 @@ /* - - -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. + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 v1 diff --git a/api/v1/csipowerstore_types.go b/api/v1/csipowerstore_types.go index 582e22f..c0dc5a3 100644 --- a/api/v1/csipowerstore_types.go +++ b/api/v1/csipowerstore_types.go @@ -1,17 +1,15 @@ /* - - -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. + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 v1 diff --git a/api/v1/csiunity_types.go b/api/v1/csiunity_types.go index bd41711..6d50068 100644 --- a/api/v1/csiunity_types.go +++ b/api/v1/csiunity_types.go @@ -1,17 +1,15 @@ /* - - -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. + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 v1 diff --git a/api/v1/csivxflexos_types.go b/api/v1/csivxflexos_types.go index 5b37ceb..cb157f0 100644 --- a/api/v1/csivxflexos_types.go +++ b/api/v1/csivxflexos_types.go @@ -1,17 +1,15 @@ /* - - -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. + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 v1 diff --git a/api/v1/groupversion_info.go b/api/v1/groupversion_info.go index 1f6618f..7f2a31e 100644 --- a/api/v1/groupversion_info.go +++ b/api/v1/groupversion_info.go @@ -1,17 +1,15 @@ /* - - -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. + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 v1 contains API Schema definitions for the storage v1 API group diff --git a/api/v1/types.go b/api/v1/types.go index 27b5ba3..3fc2b4a 100644 --- a/api/v1/types.go +++ b/api/v1/types.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 v1 import ( diff --git a/check.sh b/check.sh index b60f62d..51ec3cc 100644 --- a/check.sh +++ b/check.sh @@ -1,4 +1,17 @@ #!/bin/bash +# +# Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. +# +# 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. + if [ -f "../vendor" ]; then # Tell the applicable Go tools to use the vendor directory, if it exists. MOD_FLAGS="-mod=vendor" diff --git a/controllers/csiisilon_controller.go b/controllers/csiisilon_controller.go index 0d80334..40363ae 100644 --- a/controllers/csiisilon_controller.go +++ b/controllers/csiisilon_controller.go @@ -1,17 +1,15 @@ /* - - -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. + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 controllers diff --git a/controllers/csipowermax_controller.go b/controllers/csipowermax_controller.go index 0744d68..3057980 100644 --- a/controllers/csipowermax_controller.go +++ b/controllers/csipowermax_controller.go @@ -1,17 +1,15 @@ /* - - -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. + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 controllers diff --git a/controllers/csipowermaxrevproxy_controller.go b/controllers/csipowermaxrevproxy_controller.go index 293ba3b..73d7910 100644 --- a/controllers/csipowermaxrevproxy_controller.go +++ b/controllers/csipowermaxrevproxy_controller.go @@ -1,17 +1,15 @@ /* - - -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. + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 controllers diff --git a/controllers/csipowerstore_controller.go b/controllers/csipowerstore_controller.go index 3ffbab4..215088b 100644 --- a/controllers/csipowerstore_controller.go +++ b/controllers/csipowerstore_controller.go @@ -1,17 +1,15 @@ /* - - -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. + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 controllers diff --git a/controllers/csiunity_controller.go b/controllers/csiunity_controller.go index 34be616..a2726e0 100644 --- a/controllers/csiunity_controller.go +++ b/controllers/csiunity_controller.go @@ -1,17 +1,15 @@ /* - - -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. + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 controllers diff --git a/controllers/csivxflexos_controller.go b/controllers/csivxflexos_controller.go index e37aa1e..fb5e94d 100644 --- a/controllers/csivxflexos_controller.go +++ b/controllers/csivxflexos_controller.go @@ -1,17 +1,15 @@ /* - - -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. + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 controllers diff --git a/controllers/suite_test.go b/controllers/suite_test.go index 5973805..a34ad9b 100644 --- a/controllers/suite_test.go +++ b/controllers/suite_test.go @@ -1,26 +1,25 @@ /* - - -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. + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 controllers import ( "path/filepath" + "testing" + logf "sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/log/zap" - "testing" storagev1 "github.com/dell/dell-csi-operator/api/v1" . "github.com/onsi/ginkgo" diff --git a/core/core.go b/core/core.go index 433d399..e679588 100644 --- a/core/core.go +++ b/core/core.go @@ -1,3 +1,16 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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. +*/ //go:generate go run semver/semver.go -f semver.tpl -o core_generated.go package core diff --git a/core/semver/semver.go b/core/semver/semver.go index 74bba84..7751a5e 100644 --- a/core/semver/semver.go +++ b/core/semver/semver.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 main import ( diff --git a/dev_documentation/README.md b/dev_documentation/README.md index 1e95b87..08de35e 100644 --- a/dev_documentation/README.md +++ b/dev_documentation/README.md @@ -1,3 +1,16 @@ + # Dell CSI Operator for Dell CSI Drivers **Repository for development of common operator for Dell CSI Drivers** diff --git a/documentation/Readme.md b/documentation/Readme.md index 5343005..8ca0a34 100644 --- a/documentation/Readme.md +++ b/documentation/Readme.md @@ -1,3 +1,16 @@ + - [Dell CSI Operator](#dell-csi-operator) - [Support](#support) - [Supported Platforms](#supported-platforms) diff --git a/main.go b/main.go index e354dc8..e4565cb 100644 --- a/main.go +++ b/main.go @@ -1,17 +1,15 @@ /* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. - -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. + 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 main diff --git a/pkg/config/config.go b/pkg/config/config.go index 39239a5..0eef919 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 config import csiv1 "github.com/dell/dell-csi-operator/api/v1" diff --git a/pkg/constants/common.go b/pkg/constants/common.go index 655f6f7..96a9444 100644 --- a/pkg/constants/common.go +++ b/pkg/constants/common.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 constants import ( diff --git a/pkg/ctrlconfig/config.go b/pkg/ctrlconfig/config.go index 0a1bc27..e398390 100644 --- a/pkg/ctrlconfig/config.go +++ b/pkg/ctrlconfig/config.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 ctrlconfig import ( diff --git a/pkg/ctrlconfig/opconfig.go b/pkg/ctrlconfig/opconfig.go index 55c3c87..429a3fd 100644 --- a/pkg/ctrlconfig/opconfig.go +++ b/pkg/ctrlconfig/opconfig.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 ctrlconfig import ( diff --git a/pkg/resources/configmap/configmap.go b/pkg/resources/configmap/configmap.go index 78cbcae..3696a42 100644 --- a/pkg/resources/configmap/configmap.go +++ b/pkg/resources/configmap/configmap.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 configmap import ( diff --git a/pkg/resources/csidriver/csidriver.go b/pkg/resources/csidriver/csidriver.go index 310b1c4..e8a0c7a 100644 --- a/pkg/resources/csidriver/csidriver.go +++ b/pkg/resources/csidriver/csidriver.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 csidriver import ( diff --git a/pkg/resources/daemonset/daemonset.go b/pkg/resources/daemonset/daemonset.go index b023a17..7da1daa 100644 --- a/pkg/resources/daemonset/daemonset.go +++ b/pkg/resources/daemonset/daemonset.go @@ -1,8 +1,23 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 daemonset import ( "context" customError "errors" + csiv1 "github.com/dell/dell-csi-operator/api/v1" "github.com/dell/dell-csi-operator/pkg/constants" "github.com/dell/dell-csi-operator/pkg/ctrlconfig" diff --git a/pkg/resources/deployment/deployment.go b/pkg/resources/deployment/deployment.go index aac4dfd..1f50079 100644 --- a/pkg/resources/deployment/deployment.go +++ b/pkg/resources/deployment/deployment.go @@ -1,8 +1,23 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 deployment import ( "context" "fmt" + csiv1 "github.com/dell/dell-csi-operator/api/v1" "github.com/dell/dell-csi-operator/pkg/constants" "github.com/dell/dell-csi-operator/pkg/ctrlconfig" diff --git a/pkg/resources/helper.go b/pkg/resources/helper.go index 58bd4e5..d78fe43 100644 --- a/pkg/resources/helper.go +++ b/pkg/resources/helper.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 resources import ( diff --git a/pkg/resources/rbac/controllerrbac.go b/pkg/resources/rbac/controllerrbac.go index ef521c0..4af156d 100644 --- a/pkg/resources/rbac/controllerrbac.go +++ b/pkg/resources/rbac/controllerrbac.go @@ -1,8 +1,23 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 rbac import ( "context" "fmt" + csiv1 "github.com/dell/dell-csi-operator/api/v1" "github.com/dell/dell-csi-operator/pkg/resources" "github.com/go-logr/logr" diff --git a/pkg/resources/rbac/noderbac.go b/pkg/resources/rbac/noderbac.go index 1ea520b..7f5286c 100644 --- a/pkg/resources/rbac/noderbac.go +++ b/pkg/resources/rbac/noderbac.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 rbac import ( diff --git a/pkg/resources/rbac/role.go b/pkg/resources/rbac/role.go index 74a5aed..dfeeb08 100644 --- a/pkg/resources/rbac/role.go +++ b/pkg/resources/rbac/role.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 rbac import ( diff --git a/pkg/resources/rbac/rolebindings.go b/pkg/resources/rbac/rolebindings.go index f39e5a0..3f16c6b 100644 --- a/pkg/resources/rbac/rolebindings.go +++ b/pkg/resources/rbac/rolebindings.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 rbac import ( diff --git a/pkg/resources/secrets/secrets.go b/pkg/resources/secrets/secrets.go index c2bb31d..c0d0915 100644 --- a/pkg/resources/secrets/secrets.go +++ b/pkg/resources/secrets/secrets.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 secrets import ( diff --git a/pkg/resources/service/service.go b/pkg/resources/service/service.go index 400216c..262505e 100644 --- a/pkg/resources/service/service.go +++ b/pkg/resources/service/service.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 service import ( diff --git a/pkg/resources/serviceaccount/serviceaccount.go b/pkg/resources/serviceaccount/serviceaccount.go index 102e7e2..9c6a179 100644 --- a/pkg/resources/serviceaccount/serviceaccount.go +++ b/pkg/resources/serviceaccount/serviceaccount.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 serviceaccount import ( diff --git a/pkg/resources/statefulset/statefulset.go b/pkg/resources/statefulset/statefulset.go index b486964..cf80df3 100644 --- a/pkg/resources/statefulset/statefulset.go +++ b/pkg/resources/statefulset/statefulset.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 statefulset import ( diff --git a/pkg/resources/storageclass/storageclass.go b/pkg/resources/storageclass/storageclass.go index c7808ff..1891462 100644 --- a/pkg/resources/storageclass/storageclass.go +++ b/pkg/resources/storageclass/storageclass.go @@ -1,8 +1,23 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 storageclass import ( "context" "fmt" + rbacv1 "k8s.io/api/rbac/v1" csiv1 "github.com/dell/dell-csi-operator/api/v1" diff --git a/pkg/resources/volumesnapshotclass/createvolumesnapshotclass.go b/pkg/resources/volumesnapshotclass/createvolumesnapshotclass.go index 65af26f..4a16b4b 100644 --- a/pkg/resources/volumesnapshotclass/createvolumesnapshotclass.go +++ b/pkg/resources/volumesnapshotclass/createvolumesnapshotclass.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 volumesnapshotclass import ( diff --git a/pkg/utils/common.go b/pkg/utils/common.go index 98f9eff..b60fa60 100644 --- a/pkg/utils/common.go +++ b/pkg/utils/common.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 utils import ( diff --git a/pkg/utils/status.go b/pkg/utils/status.go index b3776ab..6bf833a 100644 --- a/pkg/utils/status.go +++ b/pkg/utils/status.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 utils import ( diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index fed2da3..0c9fcb9 100644 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 utils import ( diff --git a/pkg/utils/validate.go b/pkg/utils/validate.go index cfc3562..af225b4 100644 --- a/pkg/utils/validate.go +++ b/pkg/utils/validate.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 utils import ( diff --git a/scripts/build_olm_community_images.sh b/scripts/build_olm_community_images.sh index 2a8a866..681ade6 100644 --- a/scripts/build_olm_community_images.sh +++ b/scripts/build_olm_community_images.sh @@ -1,4 +1,17 @@ #!/bin/bash +# +# Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. +# +# 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. + SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" ROOTDIR="$(dirname "$SCRIPTDIR")" diff --git a/scripts/csi-offline-bundle.md b/scripts/csi-offline-bundle.md index 7a6f521..1e3ee68 100644 --- a/scripts/csi-offline-bundle.md +++ b/scripts/csi-offline-bundle.md @@ -1,3 +1,16 @@ + # Offline Installation of Dell CSI Storage Providers ## Description diff --git a/scripts/delete_crds.sh b/scripts/delete_crds.sh index f132d65..7da9d6d 100755 --- a/scripts/delete_crds.sh +++ b/scripts/delete_crds.sh @@ -1,4 +1,16 @@ #!/bin/bash +# +# Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + +# 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. kubectl delete crd csipowermaxes.storage.dell.com kubectl delete crd csipowermaxrevproxies.storage.dell.com diff --git a/scripts/install.sh b/scripts/install.sh index 4994c26..ae9c575 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,4 +1,16 @@ #!/bin/bash +# +# Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. +# +# 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. VERIFYSCRIPT="verify.sh" SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" diff --git a/scripts/install_olm.sh b/scripts/install_olm.sh index 15ef7b1..369141e 100644 --- a/scripts/install_olm.sh +++ b/scripts/install_olm.sh @@ -1,4 +1,16 @@ #!/bin/bash +# Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. +# +# 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. +# # This script does the following: # 1. Create a CatalogSource containing index for various Operator versions # 2. Create an OperatorGroup diff --git a/scripts/staging.sh b/scripts/staging.sh index d6e8530..100b61a 100644 --- a/scripts/staging.sh +++ b/scripts/staging.sh @@ -1,4 +1,16 @@ #!/bin/bash +# +# Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. +# +# 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. SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" ROOTDIR="$(dirname "$SCRIPTDIR")" diff --git a/scripts/uninstall.sh b/scripts/uninstall.sh index 55bfc5c..905d421 100755 --- a/scripts/uninstall.sh +++ b/scripts/uninstall.sh @@ -1,4 +1,17 @@ #!/bin/bash +# +# Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. +# +# 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. + SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" ROOTDIR="$(dirname "$SCRIPTDIR")" DEPLOYDIR="$ROOTDIR/deploy" diff --git a/scripts/updatecsv.sh b/scripts/updatecsv.sh index c386b2c..00eb3f3 100644 --- a/scripts/updatecsv.sh +++ b/scripts/updatecsv.sh @@ -1,4 +1,17 @@ #!/bin/bash +# +# Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. +# +# 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 -e if [ $# -eq 0 ]; then echo "You must specify an Operator version" diff --git a/scripts/updateopenshiftcsv.sh b/scripts/updateopenshiftcsv.sh index 570a008..afb46f6 100644 --- a/scripts/updateopenshiftcsv.sh +++ b/scripts/updateopenshiftcsv.sh @@ -1,4 +1,17 @@ #!/bin/bash +# +# Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. +# +# 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 -e if [ $# -eq 0 ]; then echo "You must specify an Operator version" diff --git a/scripts/verify.sh b/scripts/verify.sh index e74210b..111c6cf 100755 --- a/scripts/verify.sh +++ b/scripts/verify.sh @@ -1,4 +1,16 @@ #!/bin/bash +# +# Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. +# +# 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. SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" diff --git a/test/controller_test.go b/test/controller_test.go index 5a0874b..983d4eb 100644 --- a/test/controller_test.go +++ b/test/controller_test.go @@ -1,3 +1,16 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 controller_test import ( diff --git a/test/driver/Readme.md b/test/driver/Readme.md index 48a5d86..06b6c87 100644 --- a/test/driver/Readme.md +++ b/test/driver/Readme.md @@ -1,3 +1,16 @@ + # Readme Files present 1. install_csi_driver.sh -> main script which calls other scripts diff --git a/test/driver/create_yaml.sh b/test/driver/create_yaml.sh index 09e4c73..01781a6 100644 --- a/test/driver/create_yaml.sh +++ b/test/driver/create_yaml.sh @@ -1,4 +1,17 @@ #!/bin/bash +# +# Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. +# +# 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. + # This is sample script to show how to create driver custom resource manifests # First set the environment variables which will be passed by the operatorutils binary to # generate the yaml files diff --git a/test/driver/deleteEntities.sh b/test/driver/deleteEntities.sh index 03f0a70..e136c4d 100644 --- a/test/driver/deleteEntities.sh +++ b/test/driver/deleteEntities.sh @@ -1,4 +1,17 @@ #!/bin/sh +# +# Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. +# +# 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. + #This script is to delete the objects created by install script #Parameters are taken from config.properties diff --git a/test/driver/install_csi_driver.sh b/test/driver/install_csi_driver.sh index bba22e1..5844e2a 100644 --- a/test/driver/install_csi_driver.sh +++ b/test/driver/install_csi_driver.sh @@ -1,4 +1,17 @@ #!/bin/sh +# +# Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. +# +# 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. + # Shell script to deploy operators and to create CSI Drivers # Author: gokul.srivathsan@dell.com # Furnish proper values in config.properties file before executing this script diff --git a/test/driver/operatorutils.go b/test/driver/operatorutils.go index eae9012..8420077 100644 --- a/test/driver/operatorutils.go +++ b/test/driver/operatorutils.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 main import ( diff --git a/test/driver/testlib.sh b/test/driver/testlib.sh index 603bdd8..1fc2d17 100644 --- a/test/driver/testlib.sh +++ b/test/driver/testlib.sh @@ -1,4 +1,17 @@ #!/bin/sh +# +# Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. +# +# 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. + # Function to check the secrets present in the system check_unity_secret() diff --git a/test/driver/uninstall_driver_operator.sh b/test/driver/uninstall_driver_operator.sh index a4e5026..e56832e 100644 --- a/test/driver/uninstall_driver_operator.sh +++ b/test/driver/uninstall_driver_operator.sh @@ -1,4 +1,17 @@ #!/bin/sh +# +# Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. +# +# 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. + # Shell script to deploy operators and to create CSI Drivers source ./sample_driver_config diff --git a/test/fakeclient_test.go b/test/fakeclient_test.go index 133effb..76b585a 100644 --- a/test/fakeclient_test.go +++ b/test/fakeclient_test.go @@ -1,3 +1,16 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 controller_test import ( diff --git a/test/integration-tests/basic_test.go b/test/integration-tests/basic_test.go index 94bad4a..ba920a2 100644 --- a/test/integration-tests/basic_test.go +++ b/test/integration-tests/basic_test.go @@ -1,3 +1,16 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 integrationtest import ( diff --git a/test/integration-tests/framework/framework.go b/test/integration-tests/framework/framework.go index fcbafad..55ee1e0 100644 --- a/test/integration-tests/framework/framework.go +++ b/test/integration-tests/framework/framework.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 framework import ( diff --git a/test/integration-tests/main_test.go b/test/integration-tests/main_test.go index 38e0875..1755b25 100644 --- a/test/integration-tests/main_test.go +++ b/test/integration-tests/main_test.go @@ -1,3 +1,16 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 integrationtest import ( diff --git a/test/integration-tests/powermax_test.go b/test/integration-tests/powermax_test.go index e3e51df..c3d3b02 100644 --- a/test/integration-tests/powermax_test.go +++ b/test/integration-tests/powermax_test.go @@ -1,3 +1,16 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 integrationtest import ( diff --git a/test/integration-tests/utils/namespaces.go b/test/integration-tests/utils/namespaces.go index d7f9b70..03839c5 100644 --- a/test/integration-tests/utils/namespaces.go +++ b/test/integration-tests/utils/namespaces.go @@ -1,8 +1,23 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 util import ( "context" "fmt" + corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" diff --git a/test/integration-tests/utils/resources.go b/test/integration-tests/utils/resources.go index ceb448c..eb2d60f 100644 --- a/test/integration-tests/utils/resources.go +++ b/test/integration-tests/utils/resources.go @@ -1,3 +1,17 @@ +/* + Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved. + + 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 util import (