From e7c732b4ac1702588d709bee1f8e2378c29e8686 Mon Sep 17 00:00:00 2001 From: Humair Khan Date: Fri, 6 Oct 2023 16:53:26 -0400 Subject: [PATCH] Remove unused action and add licenses. Signed-off-by: Humair Khan --- .github/actions/deploy-dsp/action.yml | 52 --------------------------- tests/dspa_test.go | 16 +++++++++ tests/experiments_test.go | 16 +++++++++ tests/main.go | 18 ++++++++++ tests/pipeline_test.go | 16 +++++++++ tests/util/resources.go | 16 +++++++++ tests/util/rest.go | 16 +++++++++ 7 files changed, 98 insertions(+), 52 deletions(-) delete mode 100644 .github/actions/deploy-dsp/action.yml diff --git a/.github/actions/deploy-dsp/action.yml b/.github/actions/deploy-dsp/action.yml deleted file mode 100644 index 59ab7f46a..000000000 --- a/.github/actions/deploy-dsp/action.yml +++ /dev/null @@ -1,52 +0,0 @@ -# Pre-condition: DSPO git repo checked out in appropriate branch -# Kind cluster should be set up before hand -name: "Deploy DSPO/DSPA" -description: "Deploy a lite DSPO/DSPA in a KinD Cluster" - -inputs: - REGISTRY_ADDRESS: - description: "Image registry address." - required: true - DSPA_NAMESPACE: - description: "Namespace to deploy DSPA" - required: true -runs: - using: "composite" - steps: - - name: Apply OCP CRDs - shell: bash - env: - RESOURCES_DIR: ${{ github.workspace }}/.github/resources - run: | - kubectl apply -f ${{ env.RESOURCES_DIR }}/crds - - - name: Build image - shell: bash - env: - DSPO_IMAGE: ${{inputs.REGISTRY_ADDRESS}}/data-science-pipelines-operator - run: | - make podman-build -e IMG="${DSPO_IMAGE}" - - - name: Deploy DSPO - shell: bash - env: - DSPO_IMAGE: ${{inputs.REGISTRY_ADDRESS}}/data-science-pipelines-operator - run: | - make podman-push -e IMG="${DSPO_IMAGE}" - make deploy-kind -e IMG="${DSPO_IMAGE}" - - - name: Wait for DSPO deployment - shell: bash - run: | - kubectl wait -n odh-applications d --timeout=120s --for=condition=Available=true deployment data-science-pipelines-operator-controller-manager - - - name: Deploy DSPA - shell: bash - run: | - kubectl create namespace ${{ inputs.DSPA_NAMESPACE }} - kubectl apply -f .github/resources/dspa-lite/dspa.yaml - - - name: Wait for DSPA deployment - shell: bash - run: | - kubectl wait -n ${{ inputs.DSPA_NAMESPACE }} d --timeout=120s --for=condition=Available=true deployment ds-pipeline-$(yq .metadata.name .github/resources/dspa-lite/dspa.yaml) diff --git a/tests/dspa_test.go b/tests/dspa_test.go index bbfbe54b6..2efd46429 100644 --- a/tests/dspa_test.go +++ b/tests/dspa_test.go @@ -1,5 +1,21 @@ //go:build test_systest +/* +Copyright 2023. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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 systemtests import ( diff --git a/tests/experiments_test.go b/tests/experiments_test.go index 9d7fc2fbd..c301b9171 100644 --- a/tests/experiments_test.go +++ b/tests/experiments_test.go @@ -1,5 +1,21 @@ //go:build test_systest +/* +Copyright 2023. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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 systemtests import ( diff --git a/tests/main.go b/tests/main.go index 5e363f66a..23189779f 100644 --- a/tests/main.go +++ b/tests/main.go @@ -1,3 +1,21 @@ +//go:build test_systest + +/* +Copyright 2023. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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 systemtests // This file only exists as a workaround for: https://github.com/dnephin/pre-commit-golang/issues/78 diff --git a/tests/pipeline_test.go b/tests/pipeline_test.go index a198d3320..d39ef6ba5 100644 --- a/tests/pipeline_test.go +++ b/tests/pipeline_test.go @@ -1,5 +1,21 @@ //go:build test_systest +/* +Copyright 2023. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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 systemtests import ( diff --git a/tests/util/resources.go b/tests/util/resources.go index 1e4030502..4116879e0 100644 --- a/tests/util/resources.go +++ b/tests/util/resources.go @@ -1,3 +1,19 @@ +/* +Copyright 2023. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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 systemsTesttUtil import ( diff --git a/tests/util/rest.go b/tests/util/rest.go index 99290f9cd..9ae7a6eaa 100644 --- a/tests/util/rest.go +++ b/tests/util/rest.go @@ -1,3 +1,19 @@ +/* +Copyright 2023. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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 systemsTesttUtil import (