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 2d5b1a2 commit 6f63845
Show file tree
Hide file tree
Showing 24 changed files with 61 additions and 52 deletions.
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ package-prepare-cluster: package-main

.PHONY: package-archive-channel
package-archive-channel:
rm -rf ./archive-channel/build ./archive-channel/dist ./archive-channel/node_modules
rm -rf ./archive-channel/build ./archive-channel/dist
cd ./archive-channel && npm install && npm run build && npm run package

.PHONY: package-archive-customer
package-archive-customer:
rm -rf ./archive-customer/build ./archive-customer/dist ./archive-customer/node_modules
rm -rf ./archive-customer/build ./archive-customer/dist
cd ./archive-customer && npm install && npm run build && npm run package

.PHONY: package-create-cluster
Expand All @@ -41,17 +41,17 @@ package-create-cluster: package-main

.PHONY: package-create-object-store
package-create-object-store:
rm -rf ./create-object-store/build ./create-object-store/dist ./create-object-store/node_modules
rm -rf ./create-object-store/build ./create-object-store/dist
cd ./create-object-store && npm install && npm run build && npm run package

.PHONY: package-create-postgres
package-create-postgres:
rm -rf ./create-postgres/build ./create-postgres/dist ./create-postgres/node_modules
rm -rf ./create-postgres/build ./create-postgres/dist
cd ./create-postgres && npm install && npm run build && npm run package

.PHONY: package-expose-port
package-expose-port:
rm -rf ./expose-port/build ./expose-port/dist ./expose-port/node_modules
rm -rf ./expose-port/build ./expose-port/dist
cd ./expose-port && npm install && npm run build && npm run package

.PHONY: package-create-customer
Expand All @@ -76,7 +76,7 @@ package-kots-install: package-main

.PHONY: package-promote-release
package-promote-release:
rm -rf ./promote-release/build ./promote-release/dist ./promote-release/node_modules
rm -rf ./promote-release/build ./promote-release/dist
cd ./promote-release && npm install && npm run build && npm run package

.PHONY: package-remove-cluster
Expand All @@ -86,17 +86,17 @@ package-remove-cluster: package-main

.PHONY: package-get-customer-instances
package-get-customer-instances:
rm -rf ./get-customer-instances/build ./get-customer-instances/dist ./get-customer-instances/node_modules
rm -rf ./get-customer-instances/build ./get-customer-instances/dist
cd ./get-customer-instances && npm install && npm run build && npm run package

.PHONY: package-report-compatibility-result
package-report-compatibility-result:
rm -rf ./report-compatibility-result/build ./report-compatibility-result/dist ./report-compatibility-result/node_modules
rm -rf ./report-compatibility-result/build ./report-compatibility-result/dist
cd ./report-compatibility-result && npm install && npm run build && npm run package

.PHONY: package-upgrade-cluster
package-upgrade-cluster:
rm -rf ./upgrade-cluster/build ./upgrade-cluster/dist ./upgrade-cluster/node_modules
rm -rf ./upgrade-cluster/build ./upgrade-cluster/dist
cd ./upgrade-cluster && npm install && npm run build && npm run package

.PHONY: readme-all
Expand Down
8 changes: 4 additions & 4 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.

8 changes: 4 additions & 4 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.

8 changes: 4 additions & 4 deletions create-release/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-release/dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion expose-port/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 expose-port/dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion expose-port/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ async function run() {
const apiToken = core.getInput("api-token");
const clusterId = core.getInput("cluster-id");
const port = core.getInput("port");
const protocols = core.getInput("protocols").split(",");
const protocols = core.getInput("protocols") ? core.getInput("protocols").split(",") : ["https"];
const apiEndpoint = core.getInput("replicated-api-endpoint");
const isWildcard = core.getBooleanInput("wildcard");

Expand Down
8 changes: 4 additions & 4 deletions helm-install/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 helm-install/dist/index.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions kots-install/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 kots-install/dist/index.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions prepare-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ graph LR
prepare_cluster["Prepare Cluster"]
app_slug["app-slug"]
api_token["api-token"]
namespace["namespace"]
chart["chart"]
yaml_dir["yaml-dir"]
kubernetes_distribution["kubernetes-distribution"]
Expand All @@ -34,6 +35,7 @@ cluster_id["cluster-id"]
cluster_kubeconfig["cluster-kubeconfig"]
app_slug ---> prepare_cluster
api_token ---> prepare_cluster
namespace ---> prepare_cluster
chart ---> prepare_cluster
yaml_dir ---> prepare_cluster
kubernetes_distribution ---> prepare_cluster
Expand Down Expand Up @@ -64,6 +66,7 @@ prepare_cluster ---> cluster_kubeconfig
| --- | --- | --- | --- |
| app-slug | | True | App Slug. |
| api-token | | True | API Token. |
| namespace | default | True | The namespace to install the application to |
| chart | | False | Path to the helm chart (One of `chart` or `yaml-dir` is required). |
| yaml-dir | | False | The directory containing multiple yamls for a Replicated release. |
| kubernetes-distribution | | True | Kubernetes distribution of the cluster to provision. |
Expand Down
8 changes: 7 additions & 1 deletion prepare-cluster/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ inputs:
description: 'API Token.'
required: true
default: ''
namespace:
description: 'The namespace to install the application to'
default: 'default'
required: true
chart:
description: 'Path to the helm chart (One of `chart` or `yaml-dir` is required).'
required: false
Expand Down Expand Up @@ -158,7 +162,7 @@ runs:
INPUT_REGISTRY-PASSWORD: ${{ steps.create-customer.outputs.license-id }}
INPUT_CHART: oci://registry.replicated.com/${{ inputs.app-slug }}/release__${{ steps.create-release.outputs.release-sequence }}/${{ inputs.helm-chart-name }}
INPUT_NAME: ${{ inputs.app-slug }}
INPUT_NAMESPACE: 'default'
INPUT_NAMESPACE: ${{ inputs.namespace }}
INPUT_VALUES: ${{ inputs.helm-values }}
INPUT_RUN-PREFLIGHTS: ${{ inputs.helm-run-preflights }}
- name: Deploy the app with KOTS
Expand All @@ -172,3 +176,5 @@ runs:
INPUT_APP-VERSION-LABEL: release__${{ steps.create-release.outputs.release-sequence }}
INPUT_CONFIG-VALUES: ${{ inputs.kots-config-values }}
INPUT_WAIT-DURATION: ${{ inputs.kots-wait-duration }}
INPUT_NAMESPACE: ${{ inputs.namespace }}
INPUT_KOTS-VERSION: latest
8 changes: 4 additions & 4 deletions prepare-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 prepare-cluster/dist/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 6f63845

Please sign in to comment.