Skip to content

Commit

Permalink
Merge pull request #1252 from mesosphere/NCN-104846
Browse files Browse the repository at this point in the history
feat: Remove VCD from konvoy-image-builder
  • Loading branch information
legacyrj authored Jan 13, 2025
2 parents 3a6e83a + 88b1b91 commit 3c02489
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 339 deletions.
15 changes: 0 additions & 15 deletions .github/composite/vcd-e2e/action.yaml

This file was deleted.

55 changes: 0 additions & 55 deletions .github/workflows/release-vcd-template.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/release-vsphere-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,18 +124,3 @@ jobs:
echo "Release template = $RELEASE_TEMPLATE"
echo "$GITHUB_OUTPUT"
- name: Upload template to VCD
uses: ./.github/composite/vcd-e2e/
env:
VCD_SERVER: ${{ secrets.VCD_SERVER }}
VCD_ORG_USERNAME: ${{ secrets.VCD_ORG_USERNAME }}
VCD_ORG_PASSWORD: ${{ secrets.VCD_ORG_PASSWORD }}
SSH_BASTION_KEY_CONTENTS: ${{ secrets.SSH_BASTION_KEY_CONTENTS }}
SSH_BASTION_PUBLIC_KEY_CONTENTS: ${{ secrets.SSH_BASTION_PUBLIC_KEY_CONTENTS }}
VSPHERE_USERNAME: ${{ secrets.VSPHERE_USERNAME }}
VSPHERE_USER: ${{ secrets.VSPHERE_USERNAME }} # required for terraform
VSPHERE_PASSWORD: ${{ secrets.VSPHERE_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.MESOSPHERECI_USER_TOKEN }}
VSPHERE_SERVER: ${{ secrets.VSPHERE_SERVER }}
VSPHERE_DATASTORE: ${{ secrets.VSPHERE_DATASTORE }}
TEMPLATE_NAME_TO_UPLOAD: ${{ steps.extract-template.outputs.release_template }}
28 changes: 0 additions & 28 deletions test/infra/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,6 @@ ifeq ($(CI),true)
SSH_BASTION_PUBLIC_KEY_FILE = $(CURDIR)/vsphere-bastion.pub
endif

# VCD terraform inputs
VCD_TF_FLAGS ?= \
-var='vsphere_url=$(VSPHERE_SERVER)' \
-var='vsphere_username=$(VSPHERE_USERNAME)' \
-var='vsphere_password=$(VSPHERE_PASSWORD)' \
-var='datastore_name=$(VSPHERE_DATASTORE)' \
-var='ssh_public_key=$(SSH_BASTION_PUBLIC_KEY_FILE)' \
-var='vcd_url=$(VCD_SERVER)' \
-var='vcd_org_username=$(VCD_ORG_USERNAME)' \
-var='vcd_org_password=$(VCD_ORG_PASSWORD)' \
-var='vm_template_name_to_upload=$(TEMPLATE_NAME_TO_UPLOAD)'

.PHONY: install-terraform
install-terraform: ## Download and unpack terraform binary
install-terraform: $(TERRAFORM_BIN)
Expand Down Expand Up @@ -94,19 +82,3 @@ infra.vsphere.destroy: infra.vsphere.init
$(call print-target)
TF_LOG=INFO $(TERRAFORM_BIN) -chdir=$(INFRA_MODULES_DIR)/vsphere destroy -auto-approve

.PHONY: infra.vcd.init
infra.vcd.init: ## Initialize VCD infrastructure
infra.vcd.init: install-terraform
$(call print-target)
$(TERRAFORM_BIN) -chdir=$(INFRA_MODULES_DIR)/vcd init

PHONY: infra.vcd.create
infra.vcd.create: ## Create VCD infrastructure
infra.vcd.create: infra.vcd.init
$(TERRAFORM_BIN) -chdir=$(INFRA_MODULES_DIR)/vcd plan $(VCD_TF_FLAGS)
$(TERRAFORM_BIN) -chdir=$(INFRA_MODULES_DIR)/vcd apply -auto-approve $(VCD_TF_FLAGS)

PHONY: infra.vcd.destroy
infra.vcd.destroy: ## Destroy VCD infrastructure
infra.vcd.destroy: infra.vcd.init
$(TERRAFORM_BIN) -chdir=$(INFRA_MODULES_DIR)/vcd destroy -auto-approve $(VCD_TF_FLAGS)
84 changes: 0 additions & 84 deletions test/infra/vcd/bastion.tf

This file was deleted.

48 changes: 0 additions & 48 deletions test/infra/vcd/upload-template.sh

This file was deleted.

94 changes: 0 additions & 94 deletions test/infra/vcd/variables.tf

This file was deleted.

0 comments on commit 3c02489

Please sign in to comment.