Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh committed May 17, 2024
1 parent 7598b7d commit 865fd1c
Show file tree
Hide file tree
Showing 36 changed files with 303 additions and 43 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/test-create-object-store.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: test - create-object-store

on:
pull_request:
branches:
- main
paths:
- create-object-store/**
- .github/workflows/test-create-object-store.yml

concurrency:
group: test-create-object-store-${{ github.head_ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: |
**/package-lock.json
- name: build
run: make package-create-object-store

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

- name: test create-object-store
id: create-object-store
uses: ./create-object-store
with:
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
cluster-id: ${{ steps.create-cluster.outputs.cluster-id }}
bucket-prefix: ${{ github.head_ref }}
timeout-minutes: 5

- 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 }}
54 changes: 54 additions & 0 deletions .github/workflows/test-create-postgres.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: test - create-postgres

on:
pull_request:
branches:
- main
paths:
- create-postgres/**
- .github/workflows/test-create-postgres.yml

concurrency:
group: test-create-postgres-${{ github.head_ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: |
**/package-lock.json
- name: build
run: make package-create-postgres

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

- name: test create-postgres
id: create-postgres
uses: ./create-postgres
with:
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
cluster-id: ${{ steps.create-cluster.outputs.cluster-id }}
version: "16.3"
timeout-minutes: 5

- 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 }}
56 changes: 56 additions & 0 deletions .github/workflows/test-expose-port.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: test - expose-port

on:
pull_request:
branches:
- main
paths:
- expose-port/**
- .github/workflows/test-expose-port.yml

concurrency:
group: test-expose-port-${{ github.head_ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: |
**/package-lock.json
- name: build
run: make package-expose-port

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

- name: test expose-port
id: expose-port
uses: ./expose-port
with:
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
cluster-id: ${{ steps.create-cluster.outputs.cluster-id }}
port: "30000"
protocols: http,https
wildcard: "true"
timeout-minutes: 5

- 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 }}
10 changes: 8 additions & 2 deletions archive-channel/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion archive-channel/dist/index.js.map

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions archive-customer/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion archive-customer/dist/index.js.map

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions create-cluster/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion create-cluster/dist/index.js.map

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions create-customer/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion create-customer/dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion create-object-store/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ create_object_store ---> service_account_namespace
| api-token | | True | API Token. |
| cluster-id | | True | Cluster id to attach object store to |
| bucket-prefix | | True | A prefix for the bucket name to be created. |
| timeout-minutes | 20 | False | Time to wait for the object store to have a status of `ready` |
| timeout-minutes | 5 | False | Time to wait for the object store to have a status of `ready` |

## Outputs
| Name | Description |
Expand Down
2 changes: 1 addition & 1 deletion create-object-store/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ inputs:
timeout-minutes:
description: "Time to wait for the object store to have a status of `ready`"
required: false
default: "20"
default: "5"
outputs:
addon-id: # id of the addon
description: "Contains the id of the addon."
Expand Down
10 changes: 8 additions & 2 deletions create-object-store/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion create-object-store/dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion create-postgres/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ create_postgres ---> uri
| version | | False | Postgres version to provision. |
| instance-type | | False | Instance type to provision |
| disk | | False | Disk size in GiB |
| timeout-minutes | 20 | False | Time to wait for the postgres to have a status of `ready` |
| timeout-minutes | 10 | False | Time to wait for the postgres to have a status of `ready` |

## Outputs
| Name | Description |
Expand Down
2 changes: 1 addition & 1 deletion create-postgres/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ inputs:
timeout-minutes:
description: "Time to wait for the postgres to have a status of `ready`"
required: false
default: "20"
default: "10"
outputs:
addon-id: # id of the addon
description: "Contains the id of the addon."
Expand Down
Loading

0 comments on commit 865fd1c

Please sign in to comment.