Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh committed May 15, 2024
1 parent 795ae11 commit e769793
Show file tree
Hide file tree
Showing 18 changed files with 42,914 additions and 8,314 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/test-prepare-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ jobs:
- name: build
run: |
set -e
make package-create-release
make package-create-customer
make package-create-cluster
make package-helm-install
make package-kots-install
make package-create-release \
package-create-customer \
package-create-cluster \
package-helm-install \
package-kots-install
- name: pull helm chart
run: |
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/test-remove-cluster.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: test - remove-cluster

on:
pull_request:
branches:
- main
paths:
- remove-cluster/**

concurrency:
group: test-remove-cluster-${{ github.head_ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: "npm"
cache-dependency-path: |
**/package-lock.json
- name: build
run: make package-main package-remove-cluster

- name: create cluster
id: create-cluster
uses: replicatedhq/compatibility-actions/create-cluster@v1
with:
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
kubernetes-distribution: kind
timeout-minutes: 5

- name: test remove-cluster
uses: ./remove-cluster
with:
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
cluster-id: ${{ steps.create-cluster.outputs.cluster-id }}

- name: remove cluster
if: always()
uses: replicatedhq/compatibility-actions/remove-cluster@v1
continue-on-error: true # It could be that the cluster is already removed
with:
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
cluster-id: ${{ steps.create-cluster.outputs.cluster-id }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
**/build
**/node_modules
/dist/
.vscode/
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
.PHONY: package-all
package-all: package-archive-channel package-archive-customer package-create-cluster package-create-object-store \
package-all: package-main \
package-archive-channel package-archive-customer package-create-cluster package-create-object-store \
package-create-postgres package-expose-port package-create-customer package-create-release \
package-helm-install package-kots-install package-promote-release package-remove-cluster \
package-get-customer-instances package-report-compatibility-result package-upgrade-cluster

.PHONY: package-main
package-main:
rm -rf ./build ./dist ./node_modules
npm install && npm run build && npm run package

.PHONY: package-archive-channel
package-archive-channel:
rm -rf ./archive-channel/build ./archive-channel/dist ./archive-channel/node_modules
Expand Down Expand Up @@ -62,7 +68,7 @@ package-promote-release:
.PHONY: package-remove-cluster
package-remove-cluster:
rm -rf ./remove-cluster/build ./remove-cluster/dist ./remove-cluster/node_modules
cd ./remove-cluster && npm install && npm run build && npm run package
cp -r dist remove-cluster/

.PHONY: package-get-customer-instances
package-get-customer-instances:
Expand Down
File renamed without changes.
Loading

0 comments on commit e769793

Please sign in to comment.