Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 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.

5 changes: 5 additions & 0 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.

5 changes: 5 additions & 0 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.

5 changes: 5 additions & 0 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.

5 changes: 5 additions & 0 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.

5 changes: 5 additions & 0 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.

5 changes: 5 additions & 0 deletions 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.

5 changes: 5 additions & 0 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.

3 changes: 3 additions & 0 deletions kots-install/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ license_file["license-file"]
config_values["config-values"]
namespace["namespace"]
wait_duration["wait-duration"]
storage_class["storage-class"]
kubeconfig ---> kots_install
kots_version ---> kots_install
app_slug ---> kots_install
Expand All @@ -24,6 +25,7 @@ license_file ---> kots_install
config_values ---> kots_install
namespace ---> kots_install
wait_duration ---> kots_install
storage_class ---> kots_install
```
## Inputs
| Name | Default | Required | Description |
Expand All @@ -37,6 +39,7 @@ wait_duration ---> kots_install
| config-values | | False | The config values to use. This can be a path to a file or the contents of the file. |
| namespace | default | False | The namespace to install the application to |
| wait-duration | | False | Timeout to be used while waiting for individual components to be ready. must be in Go duration format (eg: 10s, 2m) (default "2m") |
| storage-class | | False | Sets the storage class to use for the KOTS Admin Console components. Default: unset, which means the default storage class will be used. |

## Outputs
| Name | Description |
Expand Down
3 changes: 3 additions & 0 deletions kots-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ inputs:
wait-duration:
description: 'Timeout to be used while waiting for individual components to be ready. must be in Go duration format (eg: 10s, 2m) (default "2m")'
required: false
storage-class:
description: "Sets the storage class to use for the KOTS Admin Console components. Default: unset, which means the default storage class will be used."
required: false
runs:
using: "node20"
main: "index.js"
5 changes: 5 additions & 0 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 @@ -33,6 +33,7 @@ helm_run_preflights["helm-run-preflights"]
kots_config_values["kots-config-values"]
kots_version["kots-version"]
kots_wait_duration["kots-wait-duration"]
kots_storage_class["kots-storage-class"]
customer_entitlements["customer-entitlements"]
helm_extra_repos["helm-extra-repos"]
cluster_id["cluster-id"]
Expand Down Expand Up @@ -64,6 +65,7 @@ helm_run_preflights ---> prepare_cluster
kots_config_values ---> prepare_cluster
kots_version ---> prepare_cluster
kots_wait_duration ---> prepare_cluster
kots_storage_class ---> prepare_cluster
customer_entitlements ---> prepare_cluster
helm_extra_repos ---> prepare_cluster
prepare_cluster ---> cluster_id
Expand Down Expand Up @@ -99,6 +101,7 @@ prepare_cluster ---> cluster_kubeconfig
| kots-config-values | | False | The KOTS config values to use |
| kots-version | latest | False | The version of KOTS to use |
| kots-wait-duration | | False | Timeout for KOTS to be used while waiting for individual components to be ready. must be in Go duration format (eg: 10s, 2m) (default "2m") |
| kots-storage-class | | False | Sets the storage class to use for the KOTS Admin Console components. Default: unset, which means the default storage class will be used. |
| customer-entitlements | | False | Entitlements to assign to the customer.<br>Example:<br><pre>customer-entitlements: \|<br> - name: "number-of-users"<br> value: "10"</pre><br> |
| helm-extra-repos | | True | Extra helm repos to add.<br>Example:<br><pre>helm-extra-repos: \|<br> - repo_name: "cnpg"<br> url: "https://cloudnative-pg.github.io/charts"<br> namespace: "cnpg-system"<br> chart_name: "cloudnative-pg"<br> - repo_name: "minio-operator"<br> url: "https://operator.min.io"<br> namespace: "minio-operator"<br> chart_name: "operator"</pre><br> |

Expand Down
4 changes: 4 additions & 0 deletions prepare-cluster/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ inputs:
kots-wait-duration:
description: 'Timeout for KOTS to be used while waiting for individual components to be ready. must be in Go duration format (eg: 10s, 2m) (default "2m")'
required: false
kots-storage-class:
description: "Sets the storage class to use for the KOTS Admin Console components. Default: unset, which means the default storage class will be used."
required: false
customer-entitlements:
description: |
Entitlements to assign to the customer.
Expand Down Expand Up @@ -222,3 +225,4 @@ runs:
INPUT_WAIT-DURATION: ${{ inputs.kots-wait-duration }}
INPUT_NAMESPACE: ${{ inputs.namespace }}
INPUT_KOTS-VERSION: ${{ inputs.kots-version }}
INPUT_STORAGE-CLASS: ${{ inputs.kots-storage-class }}
5 changes: 5 additions & 0 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.

5 changes: 5 additions & 0 deletions remove-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 remove-cluster/dist/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/kots-install/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export async function actionKotsInstall() {
const namespaceInput = core.getInput("namespace") || "default";
const waitDurationInput = core.getInput("wait-duration");
const sharedPasswordInput: string = core.getInput("shared-password");
const storageClassInput = core.getInput("storage-class");

let licenseFilePath = '';
if (fs.existsSync(licenseFileInput)) {
Expand Down Expand Up @@ -43,6 +44,7 @@ export async function actionKotsInstall() {
sharedPassword: sharedPasswordInput,
appVersionLabel: appVersionLabelInput,
waitDuration: waitDurationInput,
storageClass: storageClassInput,
};
await installApp(kostPath, licenseFilePath, valuesFilePath, opts);
}
4 changes: 4 additions & 0 deletions src/kots-install/kots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export type installAppOptions = {
sharedPassword?: string,
appVersionLabel?: string,
waitDuration?: string,
storageClass?: string,
}

export async function installApp(kotsPath: string, licenseFilePath: string, configFilePath: string, opts: installAppOptions) {
Expand Down Expand Up @@ -116,6 +117,9 @@ export async function installApp(kotsPath: string, licenseFilePath: string, conf
if (opts.waitDuration) {
params.push("--wait-duration", opts.waitDuration);
}
if (opts.storageClass) {
params.push("--storage-class", opts.storageClass);
}
await exec.exec(kotsPath, params, installOptions);
cleanup();
} catch (error) {
Expand Down
Loading