From fe3e47aff0f3e93201dea4cfce99c8f3a054140b Mon Sep 17 00:00:00 2001 From: Gage Hugo Date: Mon, 4 Apr 2022 15:27:53 -0500 Subject: [PATCH] Update Makefile for helm v3 scripts With the removal of helm v2, the Makefile still points to the old playbooks that try to deploy helm v2. Since we have moved to using shell scripts to deploy helm v3, this change updates the Makefile to point to the new scripts. Change-Id: I6e363f3ce92a228da1301a45c754e68a859325ea --- Makefile | 6 ----- playbooks/osh-infra-build.yaml | 36 ----------------------------- playbooks/osh-infra-deploy-k8s.yaml | 36 ----------------------------- tools/gate/devel/start.sh | 7 +++--- 4 files changed, 3 insertions(+), 82 deletions(-) delete mode 100644 playbooks/osh-infra-build.yaml delete mode 100644 playbooks/osh-infra-deploy-k8s.yaml diff --git a/Makefile b/Makefile index 356035a8e..06974d4a2 100644 --- a/Makefile +++ b/Makefile @@ -38,12 +38,6 @@ lint-%: init-% build-%: lint-% if [ -d $* ]; then $(HELM) package $*; fi -# Note: user running helm3 can package the charts, but can run into helm lint -# issue due to stricter logic in helm3. This adds a target to package charts -# without executing a lint until the issues are fixed. -package-%: init-% - if [ -d $* ]; then $(HELM) package $*; fi - clean: @echo "Removed .b64, _partials.tpl, and _globals.tpl files" rm -f helm-toolkit/secrets/*.b64 diff --git a/playbooks/osh-infra-build.yaml b/playbooks/osh-infra-build.yaml deleted file mode 100644 index 5765727d6..000000000 --- a/playbooks/osh-infra-build.yaml +++ /dev/null @@ -1,36 +0,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 -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - ---- -- hosts: primary - vars_files: - - vars.yaml - vars: - work_dir: "{{ zuul.project.src_dir }}/{{ zuul_osh_infra_relative_path | default('') }}" - gather_facts: True - roles: - - build-helm-packages - tags: - - build-helm-packages - -- hosts: all - vars_files: - - vars.yaml - vars: - work_dir: "{{ zuul.project.src_dir }}/{{ zuul_osh_infra_relative_path | default('') }}" - gather_facts: False - become: yes - roles: - - build-images - tags: - - build-images -... diff --git a/playbooks/osh-infra-deploy-k8s.yaml b/playbooks/osh-infra-deploy-k8s.yaml deleted file mode 100644 index fe867017d..000000000 --- a/playbooks/osh-infra-deploy-k8s.yaml +++ /dev/null @@ -1,36 +0,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 -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - ---- -- hosts: primary - vars_files: - - vars.yaml - vars: - work_dir: "{{ zuul.project.src_dir }}/{{ zuul_osh_infra_relative_path | default('') }}" - gather_facts: True - roles: - - build-helm-packages - - deploy-kubeadm-aio-master - tags: - - build-helm-packages - - deploy-kubeadm-aio-master - -- hosts: nodes - vars_files: - - vars.yaml - vars: - work_dir: "{{ zuul.project.src_dir }}/{{ zuul_osh_infra_relative_path | default('') }}" - roles: - - deploy-kubeadm-aio-node - tags: - - deploy-kubeadm-aio-node -... diff --git a/tools/gate/devel/start.sh b/tools/gate/devel/start.sh index fc2fc685e..d370079fc 100755 --- a/tools/gate/devel/start.sh +++ b/tools/gate/devel/start.sh @@ -66,12 +66,11 @@ if [ "x${DEPLOY}" == "xsetup-host" ]; then ansible_install PLAYBOOKS="osh-infra-deploy-docker" elif [ "x${DEPLOY}" == "xk8s" ]; then - PLAYBOOKS="osh-infra-build osh-infra-deploy-k8s" + ${WORK_DIR}/tools/deployment/common/000-install-packages.sh + ${WORK_DIR}/tools/gate/deploy-k8s.sh + exit 0 elif [ "x${DEPLOY}" == "xlogs" ]; then PLAYBOOKS="osh-infra-collect-logs" -elif [ "x${DEPLOY}" == "xfull" ]; then - ansible_install - PLAYBOOKS="osh-infra-deploy-docker osh-infra-build osh-infra-deploy-k8s osh-infra-collect-logs" else echo "Unknown Deploy Option Selected" exit 1