From e08a3c189887629080c45af579ed587403ade2d5 Mon Sep 17 00:00:00 2001 From: Michael Valdron Date: Mon, 18 Sep 2023 00:35:18 -0400 Subject: [PATCH 1/8] add license header file Signed-off-by: Michael Valdron --- license_header.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 license_header.txt diff --git a/license_header.txt b/license_header.txt new file mode 100644 index 000000000..014a00587 --- /dev/null +++ b/license_header.txt @@ -0,0 +1,15 @@ + + +Copyright Red Hat + +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. From 85263aaae46f1ad6e7c555eec10f11b61e16222a Mon Sep 17 00:00:00 2001 From: Michael Valdron Date: Mon, 18 Sep 2023 00:35:56 -0400 Subject: [PATCH 2/8] addlicense script Signed-off-by: Michael Valdron --- add_licenses.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 add_licenses.sh diff --git a/add_licenses.sh b/add_licenses.sh new file mode 100755 index 000000000..2d1d460e7 --- /dev/null +++ b/add_licenses.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# This script adds license headers that are missing from go files + + +if ! command -v addlicense 2> /dev/null +then + echo "error addlicense must be installed with this command: go install github.com/google/addlicense@latest" && exit 1 +else + echo 'addlicense -v -f license_header.txt **/*.go' + addlicense -v -f license_header.txt $(find . -not -path '*/\.*' -not -path '*/vendor/*' -name '*.go') +fi + + From 7074439ebb54a5efa4950a44b552eb18dab75f80 Mon Sep 17 00:00:00 2001 From: Michael Valdron Date: Mon, 18 Sep 2023 09:56:49 -0400 Subject: [PATCH 3/8] update README with instructions on adding license headers Signed-off-by: Michael Valdron --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 9a650578c..7b79caf2f 100644 --- a/README.md +++ b/README.md @@ -73,3 +73,9 @@ Please see our [contributing.md](./CONTRIBUTING.md). ## License Apache License 2.0, see [LICENSE](./LICENSE) for details. + +### Adding License Headers + +[`license_header`](./license_header.txt) contains the license header to be contained under all source files. For Go sources, this can be included by running `bash add_licenses.sh`. + +Ensure `github.com/google/addlicense` is installed by running `go install github.com/google/addlicense@latest`. From 471ff663c37999b83066207cae377fa4209aba88 Mon Sep 17 00:00:00 2001 From: Michael Valdron Date: Mon, 18 Sep 2023 16:18:17 -0400 Subject: [PATCH 4/8] update license headers under source files Signed-off-by: Michael Valdron --- .codecov.yaml | 16 ++++++++++++++ .devfile.yaml | 5 +++-- .devfile/Dockerfile | 15 +++++++++++++ .devfile/entrypoint.sh | 15 +++++++++++++ .github/workflows/che.yaml | 16 ++++++++++++++ .github/workflows/ci.yaml | 16 ++++++++++++++ .github/workflows/codecov.yaml | 16 ++++++++++++++ .github/workflows/publish-devfile-schema.yaml | 16 ++++++++++++++ .github/workflows/release-devfile-schema.yaml | 16 ++++++++++++++ .../workflows/release-typescript-models.yaml | 16 ++++++++++++++ .github/workflows/stale.yaml | 16 ++++++++++++++ add_licenses.sh | 16 ++++++++++++++ build-generator.sh | 21 ++++++++++--------- build.sh | 21 ++++++++++--------- build/typescript-model/generate-metadata.py | 21 ++++++++++--------- .../typescript-model/generate-swagger-json.py | 21 ++++++++++--------- build/typescript-model/generate.sh | 16 ++++++++++++++ diffJsons.sh | 21 ++++++++++--------- docker-run.sh | 21 ++++++++++--------- generator/crds/gen.go | 16 ++++++++++++++ generator/genutils/json_schema_edit.go | 16 ++++++++++++++ generator/genutils/kube_like_versions.go | 16 ++++++++++++++ generator/genutils/markers.go | 16 ++++++++++++++ generator/genutils/output.go | 16 ++++++++++++++ generator/genutils/patch_strategy.go | 16 ++++++++++++++ generator/getters/gen.go | 16 ++++++++++++++ generator/interfaces/gen.go | 16 ++++++++++++++ generator/main.go | 16 ++++++++++++++ generator/overrides/gen.go | 16 ++++++++++++++ generator/schemas/gen.go | 16 ++++++++++++++ generator/validate/gen.go | 16 ++++++++++++++ make-release.sh | 21 ++++++++++--------- pkg/apis/addtoscheme_workspaces_v1alpha2.go | 16 ++++++++++++++ pkg/apis/apis.go | 16 ++++++++++++++ pkg/apis/workspaces/group.go | 16 ++++++++++++++ .../v1alpha1/attributes_conversion.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha1/commands.go | 16 ++++++++++++++ .../v1alpha1/commands_conversion.go | 16 ++++++++++++++ .../v1alpha1/commands_conversion_test.go | 16 ++++++++++++++ .../workspaces/v1alpha1/component__plugin.go | 16 ++++++++++++++ .../v1alpha1/component_container.go | 16 ++++++++++++++ .../v1alpha1/component_kubernetes_like.go | 16 ++++++++++++++ .../v1alpha1/component_plugin_conversion.go | 16 ++++++++++++++ .../workspaces/v1alpha1/component_volume.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha1/components.go | 16 ++++++++++++++ .../v1alpha1/components_conversion.go | 16 ++++++++++++++ .../v1alpha1/components_conversion_test.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha1/conversion.go | 16 ++++++++++++++ .../workspaces/v1alpha1/conversion_test.go | 16 ++++++++++++++ .../v1alpha1/devworkspace_conversion.go | 16 ++++++++++++++ .../workspaces/v1alpha1/devworkspace_types.go | 16 ++++++++++++++ .../devworkspacetemplate_conversion.go | 16 ++++++++++++++ .../v1alpha1/devworkspacetemplate_spec.go | 16 ++++++++++++++ .../v1alpha1/devworkspacetemplate_types.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha1/doc.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha1/endpoint.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha1/events.go | 16 ++++++++++++++ .../workspaces/v1alpha1/events_conversion.go | 16 ++++++++++++++ .../v1alpha1/events_conversion_test.go | 16 ++++++++++++++ .../workspaces/v1alpha1/import_reference.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha1/keyed.go | 16 ++++++++++++++ .../v1alpha1/override_directives.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha1/overrides.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha1/parent.go | 16 ++++++++++++++ .../workspaces/v1alpha1/parent_conversion.go | 16 ++++++++++++++ .../v1alpha1/parent_conversion_test.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha1/projects.go | 16 ++++++++++++++ .../v1alpha1/projects_conversion.go | 16 ++++++++++++++ .../v1alpha1/projects_conversion_test.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha1/register.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha1/union.go | 16 ++++++++++++++ .../workspaces/v1alpha1/union_definitions.go | 16 ++++++++++++++ .../v1alpha1/union_implementation.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha1/union_test.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha2/commands.go | 16 ++++++++++++++ .../v1alpha2/component_container.go | 16 ++++++++++++++ .../v1alpha2/component_contribution.go | 16 ++++++++++++++ .../workspaces/v1alpha2/component_image.go | 16 ++++++++++++++ .../v1alpha2/component_image_dockerfile.go | 16 ++++++++++++++ .../v1alpha2/component_kubernetes_like.go | 16 ++++++++++++++ .../workspaces/v1alpha2/component_plugin.go | 16 ++++++++++++++ .../workspaces/v1alpha2/component_volume.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha2/components.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha2/devfile.go | 16 ++++++++++++++ .../v1alpha2/devworkspace_conversion.go | 16 ++++++++++++++ .../workspaces/v1alpha2/devworkspace_types.go | 16 ++++++++++++++ .../devworkspacetemplate_conversion.go | 16 ++++++++++++++ .../v1alpha2/devworkspacetemplate_spec.go | 16 ++++++++++++++ .../v1alpha2/devworkspacetemplate_types.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha2/doc.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha2/endpoint.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha2/events.go | 16 ++++++++++++++ .../workspaces/v1alpha2/import_reference.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha2/keyed.go | 16 ++++++++++++++ .../v1alpha2/keyed_implementations.go | 16 ++++++++++++++ .../v1alpha2/override_directives.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha2/overrides.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha2/parent.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha2/projects.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha2/register.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha2/union.go | 16 ++++++++++++++ .../v1alpha2/union_implementation.go | 16 ++++++++++++++ pkg/apis/workspaces/v1alpha2/union_test.go | 16 ++++++++++++++ .../v1alpha2/zz_generated.getters.go | 16 ++++++++++++++ .../zz_generated.keyed_definitions.go | 16 ++++++++++++++ .../v1alpha2/zz_generated.parent_overrides.go | 16 ++++++++++++++ .../v1alpha2/zz_generated.plugin_overrides.go | 16 ++++++++++++++ ...rated.toplevellistcontainer_definitions.go | 16 ++++++++++++++ .../zz_generated.union_definitions.go | 16 ++++++++++++++ pkg/attributes/attributes.go | 16 ++++++++++++++ pkg/attributes/attributes_test.go | 16 ++++++++++++++ pkg/attributes/errors.go | 16 ++++++++++++++ pkg/devfile/header.go | 16 ++++++++++++++ pkg/devfile/header_test.go | 16 ++++++++++++++ pkg/utils/overriding/keys.go | 16 ++++++++++++++ pkg/utils/overriding/merging.go | 16 ++++++++++++++ pkg/utils/overriding/merging_test.go | 16 ++++++++++++++ pkg/utils/overriding/overriding.go | 16 ++++++++++++++ pkg/utils/overriding/overriding_test.go | 16 ++++++++++++++ pkg/utils/overriding/utils.go | 16 ++++++++++++++ pkg/utils/unions/normalize.go | 16 ++++++++++++++ pkg/utils/unions/normalize_test.go | 16 ++++++++++++++ pkg/validation/commands.go | 16 ++++++++++++++ pkg/validation/commands_test.go | 16 ++++++++++++++ pkg/validation/components.go | 16 ++++++++++++++ pkg/validation/components_test.go | 16 ++++++++++++++ pkg/validation/endpoints.go | 16 ++++++++++++++ pkg/validation/endpoints_test.go | 16 ++++++++++++++ pkg/validation/errors.go | 16 ++++++++++++++ pkg/validation/events.go | 16 ++++++++++++++ pkg/validation/events_test.go | 16 ++++++++++++++ pkg/validation/projects.go | 16 ++++++++++++++ pkg/validation/projects_test.go | 16 ++++++++++++++ pkg/validation/utils.go | 16 ++++++++++++++ pkg/validation/utils_test.go | 16 ++++++++++++++ pkg/validation/variables/errors.go | 16 ++++++++++++++ pkg/validation/variables/utils.go | 16 ++++++++++++++ pkg/validation/variables/utils_test.go | 16 ++++++++++++++ pkg/validation/variables/variables.go | 16 ++++++++++++++ pkg/validation/variables/variables_command.go | 16 ++++++++++++++ .../variables/variables_command_test.go | 16 ++++++++++++++ .../variables/variables_component.go | 16 ++++++++++++++ .../variables/variables_component_test.go | 16 ++++++++++++++ .../variables/variables_endpoint.go | 16 ++++++++++++++ .../variables/variables_endpoint_test.go | 16 ++++++++++++++ pkg/validation/variables/variables_project.go | 16 ++++++++++++++ .../variables/variables_project_test.go | 16 ++++++++++++++ pkg/validation/variables/variables_test.go | 16 ++++++++++++++ run_gosec.sh | 16 ++++++++++++++ test/v200/apiTest/api_test.go | 16 ++++++++++++++ test/v200/schemaTest/schema_test.go | 16 ++++++++++++++ test/v200/utils/api/test_utils.go | 16 ++++++++++++++ test/v200/utils/common/command_test_utils.go | 16 ++++++++++++++ .../v200/utils/common/component_test_utils.go | 16 ++++++++++++++ test/v200/utils/common/endpoint_test_utils.go | 16 ++++++++++++++ test/v200/utils/common/events-utils.go | 16 ++++++++++++++ test/v200/utils/common/metadata_test_utils.go | 16 ++++++++++++++ .../utils/common/parent_command_test_utils.go | 16 ++++++++++++++ .../common/parent_component_test_utils.go | 16 ++++++++++++++ .../common/parent_endpoint-test-utils.go | 16 ++++++++++++++ .../utils/common/parent_project_test_utils.go | 16 ++++++++++++++ test/v200/utils/common/parent_test_utils.go | 16 ++++++++++++++ test/v200/utils/common/project_test_utils.go | 16 ++++++++++++++ test/v200/utils/common/test_utils.go | 16 ++++++++++++++ validate-samples.sh | 21 ++++++++++--------- validate_yaml.py | 15 +++++++++++++ 166 files changed, 2600 insertions(+), 82 deletions(-) diff --git a/.codecov.yaml b/.codecov.yaml index 8739c455c..dec70cc05 100644 --- a/.codecov.yaml +++ b/.codecov.yaml @@ -1,3 +1,19 @@ +# +# +# Copyright Red Hat +# +# 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. + # See http://docs.codecov.io/docs/coverage-configuration coverage: precision: 2 # 2 = xx.xx%, 0 = xx% diff --git a/.devfile.yaml b/.devfile.yaml index 15bf87dfe..6330e091c 100644 --- a/.devfile.yaml +++ b/.devfile.yaml @@ -1,4 +1,6 @@ -# Copyright (c) 2022 Red Hat, Inc. +# +# +# Copyright Red Hat # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +13,6 @@ # 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. -# schemaVersion: 2.1.0 metadata: name: devfile-api diff --git a/.devfile/Dockerfile b/.devfile/Dockerfile index bd49a2f0f..5549ab2a7 100644 --- a/.devfile/Dockerfile +++ b/.devfile/Dockerfile @@ -1,3 +1,18 @@ +# +# +# Copyright Red Hat +# +# 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. FROM python:3-alpine ENV GOROOT /usr/lib/go diff --git a/.devfile/entrypoint.sh b/.devfile/entrypoint.sh index 3c79715c3..e21b228c8 100644 --- a/.devfile/entrypoint.sh +++ b/.devfile/entrypoint.sh @@ -1,4 +1,19 @@ #!/bin/bash +# +# +# Copyright Red Hat +# +# 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. # Ensure $HOME exists when starting if [ ! -d "${HOME}" ]; then diff --git a/.github/workflows/che.yaml b/.github/workflows/che.yaml index 71e483d83..67fdc7b20 100644 --- a/.github/workflows/che.yaml +++ b/.github/workflows/che.yaml @@ -1,3 +1,19 @@ +# +# +# Copyright Red Hat +# +# 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. + # Add Che link on PRs name: Che diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 453797dd2..e1c5032f0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,3 +1,19 @@ +# +# +# Copyright Red Hat +# +# 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. + name: CI # Triggers the workflow on push or pull request events but only for the main branch diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml index 97910c52b..c966d9b77 100644 --- a/.github/workflows/codecov.yaml +++ b/.github/workflows/codecov.yaml @@ -1,3 +1,19 @@ +# +# +# Copyright Red Hat +# +# 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. + name: Code Coverage Report on: push: diff --git a/.github/workflows/publish-devfile-schema.yaml b/.github/workflows/publish-devfile-schema.yaml index 4faf40617..f2321e547 100644 --- a/.github/workflows/publish-devfile-schema.yaml +++ b/.github/workflows/publish-devfile-schema.yaml @@ -1,3 +1,19 @@ +# +# +# Copyright Red Hat +# +# 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. + name: Publish Devfile Schema # Triggers the workflow on push events but only for the main branch diff --git a/.github/workflows/release-devfile-schema.yaml b/.github/workflows/release-devfile-schema.yaml index 19eddbd77..fd77c2a58 100644 --- a/.github/workflows/release-devfile-schema.yaml +++ b/.github/workflows/release-devfile-schema.yaml @@ -1,3 +1,19 @@ +# +# +# Copyright Red Hat +# +# 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. + name: Release Devfile Schema # Triggers the workflow when a release is published on GitHub. diff --git a/.github/workflows/release-typescript-models.yaml b/.github/workflows/release-typescript-models.yaml index 686e688bc..d89dc2e46 100644 --- a/.github/workflows/release-typescript-models.yaml +++ b/.github/workflows/release-typescript-models.yaml @@ -1,3 +1,19 @@ +# +# +# Copyright Red Hat +# +# 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. + # Release a typescript package to npm containing the typescript types generated from the latest merged crds name: Release Typescript Models diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml index b47aad022..e51d1f77c 100644 --- a/.github/workflows/stale.yaml +++ b/.github/workflows/stale.yaml @@ -1,3 +1,19 @@ +# +# +# Copyright Red Hat +# +# 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. + name: Mark stale issues and pull requests on: diff --git a/add_licenses.sh b/add_licenses.sh index 2d1d460e7..09c212165 100755 --- a/add_licenses.sh +++ b/add_licenses.sh @@ -1,4 +1,20 @@ #!/bin/bash +# +# +# Copyright Red Hat +# +# 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 adds license headers that are missing from go files diff --git a/build-generator.sh b/build-generator.sh index 923c63c36..701de1b83 100755 --- a/build-generator.sh +++ b/build-generator.sh @@ -1,18 +1,19 @@ #!/bin/bash # -# Copyright 2020-2022 Red Hat, Inc. # -# 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 +# Copyright Red Hat # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 # -# 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. +# 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. BLUE='\033[1;34m' GREEN='\033[0;32m' diff --git a/build.sh b/build.sh index 45dec0431..96ebc27be 100755 --- a/build.sh +++ b/build.sh @@ -1,18 +1,19 @@ #!/bin/bash # -# Copyright 2020-2022 Red Hat, Inc. # -# 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 +# Copyright Red Hat # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 # -# 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. +# 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. BLUE='\033[1;34m' GREEN='\033[0;32m' diff --git a/build/typescript-model/generate-metadata.py b/build/typescript-model/generate-metadata.py index 7f924f562..71c9b3d28 100644 --- a/build/typescript-model/generate-metadata.py +++ b/build/typescript-model/generate-metadata.py @@ -1,17 +1,18 @@ # -# Copyright 2021-2022 Red Hat, Inc. # -# 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 +# Copyright Red Hat # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 # -# 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. +# 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. import os import argparse diff --git a/build/typescript-model/generate-swagger-json.py b/build/typescript-model/generate-swagger-json.py index 65121f820..9b825519b 100644 --- a/build/typescript-model/generate-swagger-json.py +++ b/build/typescript-model/generate-swagger-json.py @@ -1,17 +1,18 @@ # -# Copyright 2021-2022 Red Hat, Inc. # -# 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 +# Copyright Red Hat # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 # -# 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. +# 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. import os import json diff --git a/build/typescript-model/generate.sh b/build/typescript-model/generate.sh index 5fbdb006a..23504c9f6 100755 --- a/build/typescript-model/generate.sh +++ b/build/typescript-model/generate.sh @@ -1,4 +1,20 @@ #!/bin/bash +# +# +# Copyright Red Hat +# +# 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 SCRIPT_DIR=`dirname $( readlink -m $( type -p ${0} ))` diff --git a/diffJsons.sh b/diffJsons.sh index 0e62df193..e6a2a7341 100755 --- a/diffJsons.sh +++ b/diffJsons.sh @@ -1,18 +1,19 @@ #!/bin/bash # -# Copyright 2020-2022 Red Hat, Inc. # -# 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 +# Copyright Red Hat # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 # -# 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. +# 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. BLUE='\033[1;34m' GREEN='\033[0;32m' diff --git a/docker-run.sh b/docker-run.sh index 88a9297c4..9485421d1 100755 --- a/docker-run.sh +++ b/docker-run.sh @@ -1,18 +1,19 @@ #!/bin/bash # -# Copyright 2020-2022 Red Hat, Inc. # -# 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 +# Copyright Red Hat # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 # -# 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. +# 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. # git ROOT directory used to mount filesystem diff --git a/generator/crds/gen.go b/generator/crds/gen.go index 091b25769..2b1fd9432 100644 --- a/generator/crds/gen.go +++ b/generator/crds/gen.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 crds import ( diff --git a/generator/genutils/json_schema_edit.go b/generator/genutils/json_schema_edit.go index e5e6181b1..b5abb8e84 100644 --- a/generator/genutils/json_schema_edit.go +++ b/generator/genutils/json_schema_edit.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 genutils import ( diff --git a/generator/genutils/kube_like_versions.go b/generator/genutils/kube_like_versions.go index 0b3487172..f1e672f0d 100644 --- a/generator/genutils/kube_like_versions.go +++ b/generator/genutils/kube_like_versions.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 genutils import ( diff --git a/generator/genutils/markers.go b/generator/genutils/markers.go index ad84e9b90..4ec936e18 100644 --- a/generator/genutils/markers.go +++ b/generator/genutils/markers.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 genutils import ( diff --git a/generator/genutils/output.go b/generator/genutils/output.go index af9cc5b42..81b1b5bfc 100644 --- a/generator/genutils/output.go +++ b/generator/genutils/output.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 genutils import ( diff --git a/generator/genutils/patch_strategy.go b/generator/genutils/patch_strategy.go index 4da10684e..98e5126cb 100644 --- a/generator/genutils/patch_strategy.go +++ b/generator/genutils/patch_strategy.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 genutils import ( diff --git a/generator/getters/gen.go b/generator/getters/gen.go index 2c70b5d5f..208a93062 100644 --- a/generator/getters/gen.go +++ b/generator/getters/gen.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 getters import ( diff --git a/generator/interfaces/gen.go b/generator/interfaces/gen.go index f00a69cea..34e02d269 100644 --- a/generator/interfaces/gen.go +++ b/generator/interfaces/gen.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 interfaces import ( diff --git a/generator/main.go b/generator/main.go index 27d72a289..05a3f2f02 100644 --- a/generator/main.go +++ b/generator/main.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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/generator/overrides/gen.go b/generator/overrides/gen.go index 283ee72ee..c721a34c3 100644 --- a/generator/overrides/gen.go +++ b/generator/overrides/gen.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 overrides import ( diff --git a/generator/schemas/gen.go b/generator/schemas/gen.go index 6ece78ef1..a08649987 100644 --- a/generator/schemas/gen.go +++ b/generator/schemas/gen.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 schemas import ( diff --git a/generator/validate/gen.go b/generator/validate/gen.go index 27e77898b..ed96bc2fe 100644 --- a/generator/validate/gen.go +++ b/generator/validate/gen.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 validate import ( diff --git a/make-release.sh b/make-release.sh index 65f8eb5b9..8741e6a6a 100755 --- a/make-release.sh +++ b/make-release.sh @@ -1,18 +1,19 @@ #!/bin/bash # -# Copyright 2020-2022 Red Hat, Inc. # -# 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 +# Copyright Red Hat # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 # -# 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. +# 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 set -u diff --git a/pkg/apis/addtoscheme_workspaces_v1alpha2.go b/pkg/apis/addtoscheme_workspaces_v1alpha2.go index 6fb15f929..498466053 100644 --- a/pkg/apis/addtoscheme_workspaces_v1alpha2.go +++ b/pkg/apis/addtoscheme_workspaces_v1alpha2.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 apis import ( diff --git a/pkg/apis/apis.go b/pkg/apis/apis.go index 07dc96164..c2860eff1 100644 --- a/pkg/apis/apis.go +++ b/pkg/apis/apis.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 apis import ( diff --git a/pkg/apis/workspaces/group.go b/pkg/apis/workspaces/group.go index 99f4f2649..3fc0ce68e 100644 --- a/pkg/apis/workspaces/group.go +++ b/pkg/apis/workspaces/group.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 org contains org API versions. // // This file ensures Go source parsers acknowledge the org package diff --git a/pkg/apis/workspaces/v1alpha1/attributes_conversion.go b/pkg/apis/workspaces/v1alpha1/attributes_conversion.go index 505da885c..2df50fce1 100644 --- a/pkg/apis/workspaces/v1alpha1/attributes_conversion.go +++ b/pkg/apis/workspaces/v1alpha1/attributes_conversion.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha1/commands.go b/pkg/apis/workspaces/v1alpha1/commands.go index 5ef65444b..36fecbf4d 100644 --- a/pkg/apis/workspaces/v1alpha1/commands.go +++ b/pkg/apis/workspaces/v1alpha1/commands.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import runtime "k8s.io/apimachinery/pkg/runtime" diff --git a/pkg/apis/workspaces/v1alpha1/commands_conversion.go b/pkg/apis/workspaces/v1alpha1/commands_conversion.go index 878b448d6..c4229b9de 100644 --- a/pkg/apis/workspaces/v1alpha1/commands_conversion.go +++ b/pkg/apis/workspaces/v1alpha1/commands_conversion.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha1/commands_conversion_test.go b/pkg/apis/workspaces/v1alpha1/commands_conversion_test.go index d33e6e801..22af4a477 100644 --- a/pkg/apis/workspaces/v1alpha1/commands_conversion_test.go +++ b/pkg/apis/workspaces/v1alpha1/commands_conversion_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha1/component__plugin.go b/pkg/apis/workspaces/v1alpha1/component__plugin.go index 35dfb044d..51f292c2d 100644 --- a/pkg/apis/workspaces/v1alpha1/component__plugin.go +++ b/pkg/apis/workspaces/v1alpha1/component__plugin.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 type PluginComponent struct { diff --git a/pkg/apis/workspaces/v1alpha1/component_container.go b/pkg/apis/workspaces/v1alpha1/component_container.go index ea7dc4287..36d11ab10 100644 --- a/pkg/apis/workspaces/v1alpha1/component_container.go +++ b/pkg/apis/workspaces/v1alpha1/component_container.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 // Component that allows the developer to add a configured container into his workspace diff --git a/pkg/apis/workspaces/v1alpha1/component_kubernetes_like.go b/pkg/apis/workspaces/v1alpha1/component_kubernetes_like.go index b17863161..7d75304a1 100644 --- a/pkg/apis/workspaces/v1alpha1/component_kubernetes_like.go +++ b/pkg/apis/workspaces/v1alpha1/component_kubernetes_like.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 // K8sLikeComponentLocationType describes the type of diff --git a/pkg/apis/workspaces/v1alpha1/component_plugin_conversion.go b/pkg/apis/workspaces/v1alpha1/component_plugin_conversion.go index 1d6eedcff..22faea499 100644 --- a/pkg/apis/workspaces/v1alpha1/component_plugin_conversion.go +++ b/pkg/apis/workspaces/v1alpha1/component_plugin_conversion.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha1/component_volume.go b/pkg/apis/workspaces/v1alpha1/component_volume.go index 7815e1a10..cea775ff3 100644 --- a/pkg/apis/workspaces/v1alpha1/component_volume.go +++ b/pkg/apis/workspaces/v1alpha1/component_volume.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 // Component that allows the developer to declare and configure a volume into his workspace diff --git a/pkg/apis/workspaces/v1alpha1/components.go b/pkg/apis/workspaces/v1alpha1/components.go index f4c603d8b..b64c1c137 100644 --- a/pkg/apis/workspaces/v1alpha1/components.go +++ b/pkg/apis/workspaces/v1alpha1/components.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import runtime "k8s.io/apimachinery/pkg/runtime" diff --git a/pkg/apis/workspaces/v1alpha1/components_conversion.go b/pkg/apis/workspaces/v1alpha1/components_conversion.go index 0398eb256..3b5947b9b 100644 --- a/pkg/apis/workspaces/v1alpha1/components_conversion.go +++ b/pkg/apis/workspaces/v1alpha1/components_conversion.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha1/components_conversion_test.go b/pkg/apis/workspaces/v1alpha1/components_conversion_test.go index 95be9ca7b..7ef53ed0c 100644 --- a/pkg/apis/workspaces/v1alpha1/components_conversion_test.go +++ b/pkg/apis/workspaces/v1alpha1/components_conversion_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha1/conversion.go b/pkg/apis/workspaces/v1alpha1/conversion.go index 2aa6dd9f6..98ff8bb78 100644 --- a/pkg/apis/workspaces/v1alpha1/conversion.go +++ b/pkg/apis/workspaces/v1alpha1/conversion.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha1/conversion_test.go b/pkg/apis/workspaces/v1alpha1/conversion_test.go index 9181dfa9a..0e2184ddc 100644 --- a/pkg/apis/workspaces/v1alpha1/conversion_test.go +++ b/pkg/apis/workspaces/v1alpha1/conversion_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha1/devworkspace_conversion.go b/pkg/apis/workspaces/v1alpha1/devworkspace_conversion.go index a4e01a4b8..46f302ab6 100644 --- a/pkg/apis/workspaces/v1alpha1/devworkspace_conversion.go +++ b/pkg/apis/workspaces/v1alpha1/devworkspace_conversion.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha1/devworkspace_types.go b/pkg/apis/workspaces/v1alpha1/devworkspace_types.go index e9acd8d55..ac78c87dd 100644 --- a/pkg/apis/workspaces/v1alpha1/devworkspace_types.go +++ b/pkg/apis/workspaces/v1alpha1/devworkspace_types.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha1/devworkspacetemplate_conversion.go b/pkg/apis/workspaces/v1alpha1/devworkspacetemplate_conversion.go index f74b766d8..902e29114 100644 --- a/pkg/apis/workspaces/v1alpha1/devworkspacetemplate_conversion.go +++ b/pkg/apis/workspaces/v1alpha1/devworkspacetemplate_conversion.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha1/devworkspacetemplate_spec.go b/pkg/apis/workspaces/v1alpha1/devworkspacetemplate_spec.go index ac0c3ac5b..6d814493d 100644 --- a/pkg/apis/workspaces/v1alpha1/devworkspacetemplate_spec.go +++ b/pkg/apis/workspaces/v1alpha1/devworkspacetemplate_spec.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 // Structure of the workspace. This is also the specification of a workspace template. diff --git a/pkg/apis/workspaces/v1alpha1/devworkspacetemplate_types.go b/pkg/apis/workspaces/v1alpha1/devworkspacetemplate_types.go index 0b8c955b6..005f35e94 100644 --- a/pkg/apis/workspaces/v1alpha1/devworkspacetemplate_types.go +++ b/pkg/apis/workspaces/v1alpha1/devworkspacetemplate_types.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha1/doc.go b/pkg/apis/workspaces/v1alpha1/doc.go index 1c2d6aa60..97accd6aa 100644 --- a/pkg/apis/workspaces/v1alpha1/doc.go +++ b/pkg/apis/workspaces/v1alpha1/doc.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 contains API Schema definitions for the org v1alpha1 API group // +k8s:deepcopy-gen=package,register // +groupName=workspace.devfile.io diff --git a/pkg/apis/workspaces/v1alpha1/endpoint.go b/pkg/apis/workspaces/v1alpha1/endpoint.go index affd725e0..8e6dcf88c 100644 --- a/pkg/apis/workspaces/v1alpha1/endpoint.go +++ b/pkg/apis/workspaces/v1alpha1/endpoint.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 // EndpointProtocol defines the application and transport protocols of the traffic that will go through this endpoint. diff --git a/pkg/apis/workspaces/v1alpha1/events.go b/pkg/apis/workspaces/v1alpha1/events.go index 4897a4b2c..a379e767f 100644 --- a/pkg/apis/workspaces/v1alpha1/events.go +++ b/pkg/apis/workspaces/v1alpha1/events.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 type Events struct { diff --git a/pkg/apis/workspaces/v1alpha1/events_conversion.go b/pkg/apis/workspaces/v1alpha1/events_conversion.go index 9b93c6b63..bd95522e6 100644 --- a/pkg/apis/workspaces/v1alpha1/events_conversion.go +++ b/pkg/apis/workspaces/v1alpha1/events_conversion.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha1/events_conversion_test.go b/pkg/apis/workspaces/v1alpha1/events_conversion_test.go index dd10b5ac3..02cee6d71 100644 --- a/pkg/apis/workspaces/v1alpha1/events_conversion_test.go +++ b/pkg/apis/workspaces/v1alpha1/events_conversion_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha1/import_reference.go b/pkg/apis/workspaces/v1alpha1/import_reference.go index 57cc2d3df..f1e615cd2 100644 --- a/pkg/apis/workspaces/v1alpha1/import_reference.go +++ b/pkg/apis/workspaces/v1alpha1/import_reference.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 // ImportReferenceType describes the type of location diff --git a/pkg/apis/workspaces/v1alpha1/keyed.go b/pkg/apis/workspaces/v1alpha1/keyed.go index 6615d78ed..1541426fd 100644 --- a/pkg/apis/workspaces/v1alpha1/keyed.go +++ b/pkg/apis/workspaces/v1alpha1/keyed.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 // +k8s:deepcopy-gen=false diff --git a/pkg/apis/workspaces/v1alpha1/override_directives.go b/pkg/apis/workspaces/v1alpha1/override_directives.go index cd9f9294d..fbd7abd76 100644 --- a/pkg/apis/workspaces/v1alpha1/override_directives.go +++ b/pkg/apis/workspaces/v1alpha1/override_directives.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 // +kubebuilder:validation:Enum=replace;delete diff --git a/pkg/apis/workspaces/v1alpha1/overrides.go b/pkg/apis/workspaces/v1alpha1/overrides.go index 252f6ad4e..1db3aa315 100644 --- a/pkg/apis/workspaces/v1alpha1/overrides.go +++ b/pkg/apis/workspaces/v1alpha1/overrides.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 type OverridesBase struct { diff --git a/pkg/apis/workspaces/v1alpha1/parent.go b/pkg/apis/workspaces/v1alpha1/parent.go index 78a69ddf7..64119e835 100644 --- a/pkg/apis/workspaces/v1alpha1/parent.go +++ b/pkg/apis/workspaces/v1alpha1/parent.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 type Parent struct { diff --git a/pkg/apis/workspaces/v1alpha1/parent_conversion.go b/pkg/apis/workspaces/v1alpha1/parent_conversion.go index 7d06f4c58..e6e4468ca 100644 --- a/pkg/apis/workspaces/v1alpha1/parent_conversion.go +++ b/pkg/apis/workspaces/v1alpha1/parent_conversion.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha1/parent_conversion_test.go b/pkg/apis/workspaces/v1alpha1/parent_conversion_test.go index aaf7c8f69..881560f0a 100644 --- a/pkg/apis/workspaces/v1alpha1/parent_conversion_test.go +++ b/pkg/apis/workspaces/v1alpha1/parent_conversion_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha1/projects.go b/pkg/apis/workspaces/v1alpha1/projects.go index baf1883f5..caf58f455 100644 --- a/pkg/apis/workspaces/v1alpha1/projects.go +++ b/pkg/apis/workspaces/v1alpha1/projects.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import runtime "k8s.io/apimachinery/pkg/runtime" diff --git a/pkg/apis/workspaces/v1alpha1/projects_conversion.go b/pkg/apis/workspaces/v1alpha1/projects_conversion.go index 452fad712..531014a58 100644 --- a/pkg/apis/workspaces/v1alpha1/projects_conversion.go +++ b/pkg/apis/workspaces/v1alpha1/projects_conversion.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha1/projects_conversion_test.go b/pkg/apis/workspaces/v1alpha1/projects_conversion_test.go index 45d290161..f1416c678 100644 --- a/pkg/apis/workspaces/v1alpha1/projects_conversion_test.go +++ b/pkg/apis/workspaces/v1alpha1/projects_conversion_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha1/register.go b/pkg/apis/workspaces/v1alpha1/register.go index 95ffde3a9..84a8fe3f2 100644 --- a/pkg/apis/workspaces/v1alpha1/register.go +++ b/pkg/apis/workspaces/v1alpha1/register.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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. + // NOTE: Boilerplate only. Ignore this file. // Package v1alpha1 contains API Schema definitions for the org v1alpha1 API group diff --git a/pkg/apis/workspaces/v1alpha1/union.go b/pkg/apis/workspaces/v1alpha1/union.go index 39c06e01e..d4553c6d6 100644 --- a/pkg/apis/workspaces/v1alpha1/union.go +++ b/pkg/apis/workspaces/v1alpha1/union.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 // Union is an interface that allows managing structs defined as diff --git a/pkg/apis/workspaces/v1alpha1/union_definitions.go b/pkg/apis/workspaces/v1alpha1/union_definitions.go index d8647caf1..bda8edd43 100644 --- a/pkg/apis/workspaces/v1alpha1/union_definitions.go +++ b/pkg/apis/workspaces/v1alpha1/union_definitions.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha1/union_implementation.go b/pkg/apis/workspaces/v1alpha1/union_implementation.go index 6114fac2b..c4149658c 100644 --- a/pkg/apis/workspaces/v1alpha1/union_implementation.go +++ b/pkg/apis/workspaces/v1alpha1/union_implementation.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha1/union_test.go b/pkg/apis/workspaces/v1alpha1/union_test.go index d769bf391..79dcc88a0 100644 --- a/pkg/apis/workspaces/v1alpha1/union_test.go +++ b/pkg/apis/workspaces/v1alpha1/union_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha1 import ( diff --git a/pkg/apis/workspaces/v1alpha2/commands.go b/pkg/apis/workspaces/v1alpha2/commands.go index 6c926cafd..aff840427 100644 --- a/pkg/apis/workspaces/v1alpha2/commands.go +++ b/pkg/apis/workspaces/v1alpha2/commands.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 import ( diff --git a/pkg/apis/workspaces/v1alpha2/component_container.go b/pkg/apis/workspaces/v1alpha2/component_container.go index fdd0848c2..cb937cd33 100644 --- a/pkg/apis/workspaces/v1alpha2/component_container.go +++ b/pkg/apis/workspaces/v1alpha2/component_container.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 // Component that allows the developer to add a configured container into their devworkspace diff --git a/pkg/apis/workspaces/v1alpha2/component_contribution.go b/pkg/apis/workspaces/v1alpha2/component_contribution.go index 2ed69da19..49479dcf2 100644 --- a/pkg/apis/workspaces/v1alpha2/component_contribution.go +++ b/pkg/apis/workspaces/v1alpha2/component_contribution.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 import attributes "github.com/devfile/api/v2/pkg/attributes" diff --git a/pkg/apis/workspaces/v1alpha2/component_image.go b/pkg/apis/workspaces/v1alpha2/component_image.go index 59ac2174a..f7b261a35 100644 --- a/pkg/apis/workspaces/v1alpha2/component_image.go +++ b/pkg/apis/workspaces/v1alpha2/component_image.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 // ImageType describes the type of image. diff --git a/pkg/apis/workspaces/v1alpha2/component_image_dockerfile.go b/pkg/apis/workspaces/v1alpha2/component_image_dockerfile.go index 87f43a83c..c804f16cd 100644 --- a/pkg/apis/workspaces/v1alpha2/component_image_dockerfile.go +++ b/pkg/apis/workspaces/v1alpha2/component_image_dockerfile.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 // DockerfileSrcType describes the type of diff --git a/pkg/apis/workspaces/v1alpha2/component_kubernetes_like.go b/pkg/apis/workspaces/v1alpha2/component_kubernetes_like.go index 941900a85..61f551514 100644 --- a/pkg/apis/workspaces/v1alpha2/component_kubernetes_like.go +++ b/pkg/apis/workspaces/v1alpha2/component_kubernetes_like.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 // K8sLikeComponentLocationType describes the type of diff --git a/pkg/apis/workspaces/v1alpha2/component_plugin.go b/pkg/apis/workspaces/v1alpha2/component_plugin.go index 68933dd71..4e4005481 100644 --- a/pkg/apis/workspaces/v1alpha2/component_plugin.go +++ b/pkg/apis/workspaces/v1alpha2/component_plugin.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 type PluginComponent struct { diff --git a/pkg/apis/workspaces/v1alpha2/component_volume.go b/pkg/apis/workspaces/v1alpha2/component_volume.go index c3bd69280..f056dc0b0 100644 --- a/pkg/apis/workspaces/v1alpha2/component_volume.go +++ b/pkg/apis/workspaces/v1alpha2/component_volume.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 // Component that allows the developer to declare and configure a volume into their devworkspace diff --git a/pkg/apis/workspaces/v1alpha2/components.go b/pkg/apis/workspaces/v1alpha2/components.go index 9356aa655..83631575c 100644 --- a/pkg/apis/workspaces/v1alpha2/components.go +++ b/pkg/apis/workspaces/v1alpha2/components.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 import ( diff --git a/pkg/apis/workspaces/v1alpha2/devfile.go b/pkg/apis/workspaces/v1alpha2/devfile.go index 4785ce11b..077bfc36d 100644 --- a/pkg/apis/workspaces/v1alpha2/devfile.go +++ b/pkg/apis/workspaces/v1alpha2/devfile.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 import ( diff --git a/pkg/apis/workspaces/v1alpha2/devworkspace_conversion.go b/pkg/apis/workspaces/v1alpha2/devworkspace_conversion.go index 03731eb1e..863cc06c2 100644 --- a/pkg/apis/workspaces/v1alpha2/devworkspace_conversion.go +++ b/pkg/apis/workspaces/v1alpha2/devworkspace_conversion.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 // Hub marks this type as a conversion hub. diff --git a/pkg/apis/workspaces/v1alpha2/devworkspace_types.go b/pkg/apis/workspaces/v1alpha2/devworkspace_types.go index c8a500a08..20a80f420 100644 --- a/pkg/apis/workspaces/v1alpha2/devworkspace_types.go +++ b/pkg/apis/workspaces/v1alpha2/devworkspace_types.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 import ( diff --git a/pkg/apis/workspaces/v1alpha2/devworkspacetemplate_conversion.go b/pkg/apis/workspaces/v1alpha2/devworkspacetemplate_conversion.go index fe889a1b4..75f731485 100644 --- a/pkg/apis/workspaces/v1alpha2/devworkspacetemplate_conversion.go +++ b/pkg/apis/workspaces/v1alpha2/devworkspacetemplate_conversion.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 // Hub marks this type as a conversion hub. diff --git a/pkg/apis/workspaces/v1alpha2/devworkspacetemplate_spec.go b/pkg/apis/workspaces/v1alpha2/devworkspacetemplate_spec.go index f398cc9dd..1d48cf7cc 100644 --- a/pkg/apis/workspaces/v1alpha2/devworkspacetemplate_spec.go +++ b/pkg/apis/workspaces/v1alpha2/devworkspacetemplate_spec.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 import attributes "github.com/devfile/api/v2/pkg/attributes" diff --git a/pkg/apis/workspaces/v1alpha2/devworkspacetemplate_types.go b/pkg/apis/workspaces/v1alpha2/devworkspacetemplate_types.go index e7c31813e..71fc5e606 100644 --- a/pkg/apis/workspaces/v1alpha2/devworkspacetemplate_types.go +++ b/pkg/apis/workspaces/v1alpha2/devworkspacetemplate_types.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 import ( diff --git a/pkg/apis/workspaces/v1alpha2/doc.go b/pkg/apis/workspaces/v1alpha2/doc.go index 53f8d0a4c..ce7183fca 100644 --- a/pkg/apis/workspaces/v1alpha2/doc.go +++ b/pkg/apis/workspaces/v1alpha2/doc.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 contains API Schema definitions for the org v1alpha2 API group // +k8s:deepcopy-gen=package,register // +k8s:openapi-gen=true diff --git a/pkg/apis/workspaces/v1alpha2/endpoint.go b/pkg/apis/workspaces/v1alpha2/endpoint.go index 92f7f9e14..3d6cff4d5 100644 --- a/pkg/apis/workspaces/v1alpha2/endpoint.go +++ b/pkg/apis/workspaces/v1alpha2/endpoint.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 import "github.com/devfile/api/v2/pkg/attributes" diff --git a/pkg/apis/workspaces/v1alpha2/events.go b/pkg/apis/workspaces/v1alpha2/events.go index 2a8bd91a5..9a7eee2cd 100644 --- a/pkg/apis/workspaces/v1alpha2/events.go +++ b/pkg/apis/workspaces/v1alpha2/events.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 type Events struct { diff --git a/pkg/apis/workspaces/v1alpha2/import_reference.go b/pkg/apis/workspaces/v1alpha2/import_reference.go index 65414c10a..fef3238f4 100644 --- a/pkg/apis/workspaces/v1alpha2/import_reference.go +++ b/pkg/apis/workspaces/v1alpha2/import_reference.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 // ImportReferenceType describes the type of location diff --git a/pkg/apis/workspaces/v1alpha2/keyed.go b/pkg/apis/workspaces/v1alpha2/keyed.go index 81182efc7..46df04f43 100644 --- a/pkg/apis/workspaces/v1alpha2/keyed.go +++ b/pkg/apis/workspaces/v1alpha2/keyed.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 // Keyed is expected to be implemented by the elements of the devfile top-level lists diff --git a/pkg/apis/workspaces/v1alpha2/keyed_implementations.go b/pkg/apis/workspaces/v1alpha2/keyed_implementations.go index 5121f4ff1..0e1e70279 100644 --- a/pkg/apis/workspaces/v1alpha2/keyed_implementations.go +++ b/pkg/apis/workspaces/v1alpha2/keyed_implementations.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 import ( diff --git a/pkg/apis/workspaces/v1alpha2/override_directives.go b/pkg/apis/workspaces/v1alpha2/override_directives.go index 280ea367c..8e8f6adf3 100644 --- a/pkg/apis/workspaces/v1alpha2/override_directives.go +++ b/pkg/apis/workspaces/v1alpha2/override_directives.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 // +kubebuilder:validation:Enum=replace;delete diff --git a/pkg/apis/workspaces/v1alpha2/overrides.go b/pkg/apis/workspaces/v1alpha2/overrides.go index 69ad5b6e3..4ac07495b 100644 --- a/pkg/apis/workspaces/v1alpha2/overrides.go +++ b/pkg/apis/workspaces/v1alpha2/overrides.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 // +k8s:deepcopy-gen=false diff --git a/pkg/apis/workspaces/v1alpha2/parent.go b/pkg/apis/workspaces/v1alpha2/parent.go index 69ebaa6b2..279ac14b2 100644 --- a/pkg/apis/workspaces/v1alpha2/parent.go +++ b/pkg/apis/workspaces/v1alpha2/parent.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 type Parent struct { diff --git a/pkg/apis/workspaces/v1alpha2/projects.go b/pkg/apis/workspaces/v1alpha2/projects.go index 9348d4d68..047bbdccc 100644 --- a/pkg/apis/workspaces/v1alpha2/projects.go +++ b/pkg/apis/workspaces/v1alpha2/projects.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 import ( diff --git a/pkg/apis/workspaces/v1alpha2/register.go b/pkg/apis/workspaces/v1alpha2/register.go index e83c8de58..0bc568d17 100644 --- a/pkg/apis/workspaces/v1alpha2/register.go +++ b/pkg/apis/workspaces/v1alpha2/register.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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. + // NOTE: Boilerplate only. Ignore this file. // Package v1alpha2 contains API Schema definitions for the org v1alpha2 API group diff --git a/pkg/apis/workspaces/v1alpha2/union.go b/pkg/apis/workspaces/v1alpha2/union.go index 34fb138c9..62bbfd943 100644 --- a/pkg/apis/workspaces/v1alpha2/union.go +++ b/pkg/apis/workspaces/v1alpha2/union.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 // +k8s:deepcopy-gen=false diff --git a/pkg/apis/workspaces/v1alpha2/union_implementation.go b/pkg/apis/workspaces/v1alpha2/union_implementation.go index 9a01552e8..6f9819d35 100644 --- a/pkg/apis/workspaces/v1alpha2/union_implementation.go +++ b/pkg/apis/workspaces/v1alpha2/union_implementation.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 import ( diff --git a/pkg/apis/workspaces/v1alpha2/union_test.go b/pkg/apis/workspaces/v1alpha2/union_test.go index c06518c54..15b52e21c 100644 --- a/pkg/apis/workspaces/v1alpha2/union_test.go +++ b/pkg/apis/workspaces/v1alpha2/union_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 import ( diff --git a/pkg/apis/workspaces/v1alpha2/zz_generated.getters.go b/pkg/apis/workspaces/v1alpha2/zz_generated.getters.go index e6a5a0ac7..f98ee06f9 100644 --- a/pkg/apis/workspaces/v1alpha2/zz_generated.getters.go +++ b/pkg/apis/workspaces/v1alpha2/zz_generated.getters.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 // GetIsDefault returns the value of the boolean property. If unset, it's the default value specified in the devfile:default:value marker diff --git a/pkg/apis/workspaces/v1alpha2/zz_generated.keyed_definitions.go b/pkg/apis/workspaces/v1alpha2/zz_generated.keyed_definitions.go index 27a85e013..27240b32b 100644 --- a/pkg/apis/workspaces/v1alpha2/zz_generated.keyed_definitions.go +++ b/pkg/apis/workspaces/v1alpha2/zz_generated.keyed_definitions.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 func (keyed Component) Key() string { diff --git a/pkg/apis/workspaces/v1alpha2/zz_generated.parent_overrides.go b/pkg/apis/workspaces/v1alpha2/zz_generated.parent_overrides.go index 85a966e88..b47ac08fa 100644 --- a/pkg/apis/workspaces/v1alpha2/zz_generated.parent_overrides.go +++ b/pkg/apis/workspaces/v1alpha2/zz_generated.parent_overrides.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 import ( diff --git a/pkg/apis/workspaces/v1alpha2/zz_generated.plugin_overrides.go b/pkg/apis/workspaces/v1alpha2/zz_generated.plugin_overrides.go index 62b43946e..b3a22b8b0 100644 --- a/pkg/apis/workspaces/v1alpha2/zz_generated.plugin_overrides.go +++ b/pkg/apis/workspaces/v1alpha2/zz_generated.plugin_overrides.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 import ( diff --git a/pkg/apis/workspaces/v1alpha2/zz_generated.toplevellistcontainer_definitions.go b/pkg/apis/workspaces/v1alpha2/zz_generated.toplevellistcontainer_definitions.go index 45be709ff..94aa32756 100644 --- a/pkg/apis/workspaces/v1alpha2/zz_generated.toplevellistcontainer_definitions.go +++ b/pkg/apis/workspaces/v1alpha2/zz_generated.toplevellistcontainer_definitions.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 func (container DevWorkspaceTemplateSpecContent) GetToplevelLists() TopLevelLists { diff --git a/pkg/apis/workspaces/v1alpha2/zz_generated.union_definitions.go b/pkg/apis/workspaces/v1alpha2/zz_generated.union_definitions.go index 417d47e12..17cc5258e 100644 --- a/pkg/apis/workspaces/v1alpha2/zz_generated.union_definitions.go +++ b/pkg/apis/workspaces/v1alpha2/zz_generated.union_definitions.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 v1alpha2 import ( diff --git a/pkg/attributes/attributes.go b/pkg/attributes/attributes.go index 43c77c4e6..282caf2d6 100644 --- a/pkg/attributes/attributes.go +++ b/pkg/attributes/attributes.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 attributes import ( diff --git a/pkg/attributes/attributes_test.go b/pkg/attributes/attributes_test.go index 766d33e08..1b5a379b9 100644 --- a/pkg/attributes/attributes_test.go +++ b/pkg/attributes/attributes_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 attributes import ( diff --git a/pkg/attributes/errors.go b/pkg/attributes/errors.go index 3c7552416..006e9f501 100644 --- a/pkg/attributes/errors.go +++ b/pkg/attributes/errors.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 attributes import "fmt" diff --git a/pkg/devfile/header.go b/pkg/devfile/header.go index 6606b068a..b7c5be810 100644 --- a/pkg/devfile/header.go +++ b/pkg/devfile/header.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 devfile import ( diff --git a/pkg/devfile/header_test.go b/pkg/devfile/header_test.go index b2efc796c..b4c29d47f 100644 --- a/pkg/devfile/header_test.go +++ b/pkg/devfile/header_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 devfile import ( diff --git a/pkg/utils/overriding/keys.go b/pkg/utils/overriding/keys.go index b525e8a7b..b30feb5a6 100644 --- a/pkg/utils/overriding/keys.go +++ b/pkg/utils/overriding/keys.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 overriding import ( diff --git a/pkg/utils/overriding/merging.go b/pkg/utils/overriding/merging.go index 279e54de9..eb1aec164 100644 --- a/pkg/utils/overriding/merging.go +++ b/pkg/utils/overriding/merging.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 overriding import ( diff --git a/pkg/utils/overriding/merging_test.go b/pkg/utils/overriding/merging_test.go index 59e1b4bb6..5430b8577 100644 --- a/pkg/utils/overriding/merging_test.go +++ b/pkg/utils/overriding/merging_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 overriding import ( diff --git a/pkg/utils/overriding/overriding.go b/pkg/utils/overriding/overriding.go index 1a6f1d25c..16fea8f89 100644 --- a/pkg/utils/overriding/overriding.go +++ b/pkg/utils/overriding/overriding.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 overriding import ( diff --git a/pkg/utils/overriding/overriding_test.go b/pkg/utils/overriding/overriding_test.go index 41c9499af..0f553579d 100644 --- a/pkg/utils/overriding/overriding_test.go +++ b/pkg/utils/overriding/overriding_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 overriding import ( diff --git a/pkg/utils/overriding/utils.go b/pkg/utils/overriding/utils.go index 4e7d489a9..9fd1e7700 100644 --- a/pkg/utils/overriding/utils.go +++ b/pkg/utils/overriding/utils.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 overriding import ( diff --git a/pkg/utils/unions/normalize.go b/pkg/utils/unions/normalize.go index e819f7814..95d3b50e4 100644 --- a/pkg/utils/unions/normalize.go +++ b/pkg/utils/unions/normalize.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 unions import ( diff --git a/pkg/utils/unions/normalize_test.go b/pkg/utils/unions/normalize_test.go index 373e5e2a0..1ad7121f2 100644 --- a/pkg/utils/unions/normalize_test.go +++ b/pkg/utils/unions/normalize_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 unions import ( diff --git a/pkg/validation/commands.go b/pkg/validation/commands.go index 1ebf6d316..754e712ef 100644 --- a/pkg/validation/commands.go +++ b/pkg/validation/commands.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 validation import ( diff --git a/pkg/validation/commands_test.go b/pkg/validation/commands_test.go index 28b89bfe8..461d65c71 100644 --- a/pkg/validation/commands_test.go +++ b/pkg/validation/commands_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 validation import ( diff --git a/pkg/validation/components.go b/pkg/validation/components.go index 997e4daa1..32b997e45 100644 --- a/pkg/validation/components.go +++ b/pkg/validation/components.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 validation import ( diff --git a/pkg/validation/components_test.go b/pkg/validation/components_test.go index b6213beea..d5c7db492 100644 --- a/pkg/validation/components_test.go +++ b/pkg/validation/components_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 validation import ( diff --git a/pkg/validation/endpoints.go b/pkg/validation/endpoints.go index 83992a28b..fdfb48524 100644 --- a/pkg/validation/endpoints.go +++ b/pkg/validation/endpoints.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 validation import "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2" diff --git a/pkg/validation/endpoints_test.go b/pkg/validation/endpoints_test.go index 97bc88aeb..7965168c0 100644 --- a/pkg/validation/endpoints_test.go +++ b/pkg/validation/endpoints_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 validation import ( diff --git a/pkg/validation/errors.go b/pkg/validation/errors.go index fd582e14a..cefea6466 100644 --- a/pkg/validation/errors.go +++ b/pkg/validation/errors.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 validation import ( diff --git a/pkg/validation/events.go b/pkg/validation/events.go index e31e474ba..b38016bf7 100644 --- a/pkg/validation/events.go +++ b/pkg/validation/events.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 validation import ( diff --git a/pkg/validation/events_test.go b/pkg/validation/events_test.go index da48dbc8a..cc468a72a 100644 --- a/pkg/validation/events_test.go +++ b/pkg/validation/events_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 validation import ( diff --git a/pkg/validation/projects.go b/pkg/validation/projects.go index 4cbc875c0..b78fcf8f6 100644 --- a/pkg/validation/projects.go +++ b/pkg/validation/projects.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 validation import ( diff --git a/pkg/validation/projects_test.go b/pkg/validation/projects_test.go index 4ceb970d4..9cdfed612 100644 --- a/pkg/validation/projects_test.go +++ b/pkg/validation/projects_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 validation import ( diff --git a/pkg/validation/utils.go b/pkg/validation/utils.go index 6f0ec12df..37c60f14b 100644 --- a/pkg/validation/utils.go +++ b/pkg/validation/utils.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 validation import ( diff --git a/pkg/validation/utils_test.go b/pkg/validation/utils_test.go index d45ddda12..85f9a0d03 100644 --- a/pkg/validation/utils_test.go +++ b/pkg/validation/utils_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 validation import ( diff --git a/pkg/validation/variables/errors.go b/pkg/validation/variables/errors.go index 572eefaac..861230fd6 100644 --- a/pkg/validation/variables/errors.go +++ b/pkg/validation/variables/errors.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 variables import ( diff --git a/pkg/validation/variables/utils.go b/pkg/validation/variables/utils.go index be047ee25..cd4da41c0 100644 --- a/pkg/validation/variables/utils.go +++ b/pkg/validation/variables/utils.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 variables // checkForInvalidError checks for InvalidKeysError and stores the key in the map diff --git a/pkg/validation/variables/utils_test.go b/pkg/validation/variables/utils_test.go index a77d25f3d..976480adb 100644 --- a/pkg/validation/variables/utils_test.go +++ b/pkg/validation/variables/utils_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 variables import ( diff --git a/pkg/validation/variables/variables.go b/pkg/validation/variables/variables.go index 0abba8f81..b1adf413a 100644 --- a/pkg/validation/variables/variables.go +++ b/pkg/validation/variables/variables.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 variables import ( diff --git a/pkg/validation/variables/variables_command.go b/pkg/validation/variables/variables_command.go index eb51b230a..23733d409 100644 --- a/pkg/validation/variables/variables_command.go +++ b/pkg/validation/variables/variables_command.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 variables import ( diff --git a/pkg/validation/variables/variables_command_test.go b/pkg/validation/variables/variables_command_test.go index b94d2667d..ec3c93974 100644 --- a/pkg/validation/variables/variables_command_test.go +++ b/pkg/validation/variables/variables_command_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 variables import ( diff --git a/pkg/validation/variables/variables_component.go b/pkg/validation/variables/variables_component.go index a42aa2f17..4a1984714 100644 --- a/pkg/validation/variables/variables_component.go +++ b/pkg/validation/variables/variables_component.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 variables import ( diff --git a/pkg/validation/variables/variables_component_test.go b/pkg/validation/variables/variables_component_test.go index 95164198a..c275a0e49 100644 --- a/pkg/validation/variables/variables_component_test.go +++ b/pkg/validation/variables/variables_component_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 variables import ( diff --git a/pkg/validation/variables/variables_endpoint.go b/pkg/validation/variables/variables_endpoint.go index 17a1e2ed0..229df1e32 100644 --- a/pkg/validation/variables/variables_endpoint.go +++ b/pkg/validation/variables/variables_endpoint.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 variables import ( diff --git a/pkg/validation/variables/variables_endpoint_test.go b/pkg/validation/variables/variables_endpoint_test.go index 42e157eb7..a40fc3413 100644 --- a/pkg/validation/variables/variables_endpoint_test.go +++ b/pkg/validation/variables/variables_endpoint_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 variables import ( diff --git a/pkg/validation/variables/variables_project.go b/pkg/validation/variables/variables_project.go index 15afe4616..dad0d2a7b 100644 --- a/pkg/validation/variables/variables_project.go +++ b/pkg/validation/variables/variables_project.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 variables import ( diff --git a/pkg/validation/variables/variables_project_test.go b/pkg/validation/variables/variables_project_test.go index a1d99a9e4..62deb8855 100644 --- a/pkg/validation/variables/variables_project_test.go +++ b/pkg/validation/variables/variables_project_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 variables import ( diff --git a/pkg/validation/variables/variables_test.go b/pkg/validation/variables/variables_test.go index 0ebdc7eb6..b1c6fa7e9 100644 --- a/pkg/validation/variables/variables_test.go +++ b/pkg/validation/variables/variables_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 variables import ( diff --git a/run_gosec.sh b/run_gosec.sh index 8023217a9..2032163bc 100755 --- a/run_gosec.sh +++ b/run_gosec.sh @@ -1,4 +1,20 @@ #!/bin/bash +# +# +# Copyright Red Hat +# +# 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 runs the gosec scanner locally if ! command -v gosec 2> /dev/null diff --git a/test/v200/apiTest/api_test.go b/test/v200/apiTest/api_test.go index 5aee218a2..ea3ea66fb 100644 --- a/test/v200/apiTest/api_test.go +++ b/test/v200/apiTest/api_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 apiTest import ( diff --git a/test/v200/schemaTest/schema_test.go b/test/v200/schemaTest/schema_test.go index 3af4643c4..6fcc6bea9 100644 --- a/test/v200/schemaTest/schema_test.go +++ b/test/v200/schemaTest/schema_test.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 schemaTest import ( diff --git a/test/v200/utils/api/test_utils.go b/test/v200/utils/api/test_utils.go index e450eb791..86b0874a2 100644 --- a/test/v200/utils/api/test_utils.go +++ b/test/v200/utils/api/test_utils.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 api import ( diff --git a/test/v200/utils/common/command_test_utils.go b/test/v200/utils/common/command_test_utils.go index 47e1d7483..5747d3108 100644 --- a/test/v200/utils/common/command_test_utils.go +++ b/test/v200/utils/common/command_test_utils.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 common import ( diff --git a/test/v200/utils/common/component_test_utils.go b/test/v200/utils/common/component_test_utils.go index 179fe5153..8f2acfa22 100644 --- a/test/v200/utils/common/component_test_utils.go +++ b/test/v200/utils/common/component_test_utils.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 common import ( diff --git a/test/v200/utils/common/endpoint_test_utils.go b/test/v200/utils/common/endpoint_test_utils.go index 3bbff4f95..62e4eb0a2 100644 --- a/test/v200/utils/common/endpoint_test_utils.go +++ b/test/v200/utils/common/endpoint_test_utils.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 common import ( diff --git a/test/v200/utils/common/events-utils.go b/test/v200/utils/common/events-utils.go index 54506ffb3..ab809eea4 100644 --- a/test/v200/utils/common/events-utils.go +++ b/test/v200/utils/common/events-utils.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 common import ( diff --git a/test/v200/utils/common/metadata_test_utils.go b/test/v200/utils/common/metadata_test_utils.go index 5df0cc2ed..02774f69d 100644 --- a/test/v200/utils/common/metadata_test_utils.go +++ b/test/v200/utils/common/metadata_test_utils.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 common import ( diff --git a/test/v200/utils/common/parent_command_test_utils.go b/test/v200/utils/common/parent_command_test_utils.go index bc94df339..8f0f61037 100644 --- a/test/v200/utils/common/parent_command_test_utils.go +++ b/test/v200/utils/common/parent_command_test_utils.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 common import ( diff --git a/test/v200/utils/common/parent_component_test_utils.go b/test/v200/utils/common/parent_component_test_utils.go index fc34acd9b..bde1e485b 100644 --- a/test/v200/utils/common/parent_component_test_utils.go +++ b/test/v200/utils/common/parent_component_test_utils.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 common import ( diff --git a/test/v200/utils/common/parent_endpoint-test-utils.go b/test/v200/utils/common/parent_endpoint-test-utils.go index 4508b05a9..4c20f5ce5 100644 --- a/test/v200/utils/common/parent_endpoint-test-utils.go +++ b/test/v200/utils/common/parent_endpoint-test-utils.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 common import ( diff --git a/test/v200/utils/common/parent_project_test_utils.go b/test/v200/utils/common/parent_project_test_utils.go index 7da12fe9e..cbac43642 100644 --- a/test/v200/utils/common/parent_project_test_utils.go +++ b/test/v200/utils/common/parent_project_test_utils.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 common import ( diff --git a/test/v200/utils/common/parent_test_utils.go b/test/v200/utils/common/parent_test_utils.go index 00874d1ab..8bcbd224c 100644 --- a/test/v200/utils/common/parent_test_utils.go +++ b/test/v200/utils/common/parent_test_utils.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 common import ( diff --git a/test/v200/utils/common/project_test_utils.go b/test/v200/utils/common/project_test_utils.go index 225317dc7..ad5388d5d 100644 --- a/test/v200/utils/common/project_test_utils.go +++ b/test/v200/utils/common/project_test_utils.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 common import ( diff --git a/test/v200/utils/common/test_utils.go b/test/v200/utils/common/test_utils.go index 7160d3226..488fd53ec 100644 --- a/test/v200/utils/common/test_utils.go +++ b/test/v200/utils/common/test_utils.go @@ -1,3 +1,19 @@ +// +// +// Copyright Red Hat +// +// 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 common import ( diff --git a/validate-samples.sh b/validate-samples.sh index d4ea4649c..8ce0daaca 100755 --- a/validate-samples.sh +++ b/validate-samples.sh @@ -1,18 +1,19 @@ #!/bin/bash # -# Copyright 2020-2022 Red Hat, Inc. # -# 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 +# Copyright Red Hat # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 # -# 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. +# 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. BLUE='\033[1;34m' GREEN='\033[0;32m' diff --git a/validate_yaml.py b/validate_yaml.py index d9b6fb14a..0848c2136 100644 --- a/validate_yaml.py +++ b/validate_yaml.py @@ -1,4 +1,19 @@ #!/usr/bin/env python +# +# +# Copyright Red Hat +# +# 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. import json import yaml import sys From 829a3e85f60fd79d5374ed84c68bf2396ca205dc Mon Sep 17 00:00:00 2001 From: "14838510+michael-valdron@users.noreply.github.com" <14838510+michael-valdron@users.noreply.github.com> Date: Mon, 18 Sep 2023 19:12:59 -0400 Subject: [PATCH 5/8] remove license header from generated source Signed-off-by: Michael Valdron --- .../workspaces/v1alpha2/zz_generated.getters.go | 16 ---------------- .../v1alpha2/zz_generated.keyed_definitions.go | 16 ---------------- .../v1alpha2/zz_generated.parent_overrides.go | 16 ---------------- .../v1alpha2/zz_generated.plugin_overrides.go | 16 ---------------- ...enerated.toplevellistcontainer_definitions.go | 16 ---------------- .../v1alpha2/zz_generated.union_definitions.go | 16 ---------------- 6 files changed, 96 deletions(-) diff --git a/pkg/apis/workspaces/v1alpha2/zz_generated.getters.go b/pkg/apis/workspaces/v1alpha2/zz_generated.getters.go index f98ee06f9..e6a5a0ac7 100644 --- a/pkg/apis/workspaces/v1alpha2/zz_generated.getters.go +++ b/pkg/apis/workspaces/v1alpha2/zz_generated.getters.go @@ -1,19 +1,3 @@ -// -// -// Copyright Red Hat -// -// 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 v1alpha2 // GetIsDefault returns the value of the boolean property. If unset, it's the default value specified in the devfile:default:value marker diff --git a/pkg/apis/workspaces/v1alpha2/zz_generated.keyed_definitions.go b/pkg/apis/workspaces/v1alpha2/zz_generated.keyed_definitions.go index 27240b32b..27a85e013 100644 --- a/pkg/apis/workspaces/v1alpha2/zz_generated.keyed_definitions.go +++ b/pkg/apis/workspaces/v1alpha2/zz_generated.keyed_definitions.go @@ -1,19 +1,3 @@ -// -// -// Copyright Red Hat -// -// 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 v1alpha2 func (keyed Component) Key() string { diff --git a/pkg/apis/workspaces/v1alpha2/zz_generated.parent_overrides.go b/pkg/apis/workspaces/v1alpha2/zz_generated.parent_overrides.go index b47ac08fa..85a966e88 100644 --- a/pkg/apis/workspaces/v1alpha2/zz_generated.parent_overrides.go +++ b/pkg/apis/workspaces/v1alpha2/zz_generated.parent_overrides.go @@ -1,19 +1,3 @@ -// -// -// Copyright Red Hat -// -// 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 v1alpha2 import ( diff --git a/pkg/apis/workspaces/v1alpha2/zz_generated.plugin_overrides.go b/pkg/apis/workspaces/v1alpha2/zz_generated.plugin_overrides.go index b3a22b8b0..62b43946e 100644 --- a/pkg/apis/workspaces/v1alpha2/zz_generated.plugin_overrides.go +++ b/pkg/apis/workspaces/v1alpha2/zz_generated.plugin_overrides.go @@ -1,19 +1,3 @@ -// -// -// Copyright Red Hat -// -// 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 v1alpha2 import ( diff --git a/pkg/apis/workspaces/v1alpha2/zz_generated.toplevellistcontainer_definitions.go b/pkg/apis/workspaces/v1alpha2/zz_generated.toplevellistcontainer_definitions.go index 94aa32756..45be709ff 100644 --- a/pkg/apis/workspaces/v1alpha2/zz_generated.toplevellistcontainer_definitions.go +++ b/pkg/apis/workspaces/v1alpha2/zz_generated.toplevellistcontainer_definitions.go @@ -1,19 +1,3 @@ -// -// -// Copyright Red Hat -// -// 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 v1alpha2 func (container DevWorkspaceTemplateSpecContent) GetToplevelLists() TopLevelLists { diff --git a/pkg/apis/workspaces/v1alpha2/zz_generated.union_definitions.go b/pkg/apis/workspaces/v1alpha2/zz_generated.union_definitions.go index 17cc5258e..417d47e12 100644 --- a/pkg/apis/workspaces/v1alpha2/zz_generated.union_definitions.go +++ b/pkg/apis/workspaces/v1alpha2/zz_generated.union_definitions.go @@ -1,19 +1,3 @@ -// -// -// Copyright Red Hat -// -// 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 v1alpha2 import ( From 6802642a3089f9873abec14b345b5aa6c1969c29 Mon Sep 17 00:00:00 2001 From: Michael Valdron Date: Mon, 18 Sep 2023 19:29:50 -0400 Subject: [PATCH 6/8] add_license.sh ignores zz_generated.* source files Signed-off-by: Michael Valdron --- add_licenses.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/add_licenses.sh b/add_licenses.sh index 09c212165..d11687224 100755 --- a/add_licenses.sh +++ b/add_licenses.sh @@ -23,7 +23,7 @@ then echo "error addlicense must be installed with this command: go install github.com/google/addlicense@latest" && exit 1 else echo 'addlicense -v -f license_header.txt **/*.go' - addlicense -v -f license_header.txt $(find . -not -path '*/\.*' -not -path '*/vendor/*' -name '*.go') + addlicense -v -f license_header.txt $(find . -not -path '*/\.*' -not -path '*/vendor/*' -not -name 'zz_generated.*.go' -name '*.go') fi From 8dfc215c9e925438d9dd72c141db8311cc5b4a06 Mon Sep 17 00:00:00 2001 From: Michael Valdron Date: Thu, 21 Sep 2023 16:52:33 -0400 Subject: [PATCH 7/8] check license headers script added Signed-off-by: Michael Valdron --- check_licenses.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 check_licenses.sh diff --git a/check_licenses.sh b/check_licenses.sh new file mode 100644 index 000000000..fe1edebfb --- /dev/null +++ b/check_licenses.sh @@ -0,0 +1,40 @@ +#!/bin/bash +# +# +# Copyright Red Hat +# +# 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 checks if license headers that are missing/invalid from go files + +if ! command -v addlicense 2> /dev/null +then + echo "error addlicense must be installed with this command: go install github.com/google/addlicense@latest" && exit 1 +else + files=($(addlicense -check -v -f license_header.txt $(find . -not -path '*/\.*' -not -path '*/vendor/*' -not -name 'zz_generated.*.go' -name '*.go'))) + if [[ $? != 0 ]] && [[ ${#files[@]} -eq 0 ]] + then + echo "addheader check failed to run " + exit 1 + elif [[ ${#files[@]} -gt 0 ]] + then + echo "The following files do not have valid license headers:" + for file in ${files[@]} + do + echo ${file} + done + exit 1 + else + echo "license headers are valid" + fi +fi From 88feb0f2095da9cbbc51ce93fdfb94fd0b2d1976 Mon Sep 17 00:00:00 2001 From: Michael Valdron Date: Thu, 21 Sep 2023 16:54:04 -0400 Subject: [PATCH 8/8] check license headers script added to CI workflow Signed-off-by: Michael Valdron --- .github/workflows/ci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e1c5032f0..ee15cb8b5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -54,6 +54,12 @@ jobs: - name: Validate samples against schemas run: bash ./docker-run.sh ./validate-samples.sh + - name: Check license headers + run: | + export PATH=$PATH:$(go env GOPATH)/bin + go install github.com/google/addlicense@latest + bash ./check_licenses.sh + - name: Run GO tests run: go test -coverprofile cover.out -v ./...