Skip to content

Commit a4d9465

Browse files
committed
feat(cmx): cluster port expose wildcards
1 parent 2f01e36 commit a4d9465

File tree

7 files changed

+12
-10
lines changed

7 files changed

+12
-10
lines changed

create-cluster/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function run() {
2424
const tags = core.getInput('tags');
2525
const apiEndpoint = core.getInput('replicated-api-endpoint')
2626
let kubeconfigPath = core.getInput('kubeconfig-path');
27-
const exportKubeconfig = core.getInput('export-kubeconfig') === 'true';
27+
const exportKubeconfig = core.getBooleanInput('export-kubeconfig');
2828

2929
const apiClient = new VendorPortalApi();
3030
apiClient.apiToken = apiToken;

create-customer/src/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ async function run() {
1414
const apiEndpoint = core.getInput('replicated-api-endpoint')
1515
const expiresInDays: number = +(core.getInput('expires-in') || 0);
1616
const entitlements = core.getInput('entitlements');
17-
18-
let isKotsInstallEnabled: boolean | undefined = undefined;
19-
if (core.getInput('is-kots-install-enabled') !== '') {
20-
isKotsInstallEnabled = core.getInput('is-kots-install-enabled') === 'true';
21-
}
17+
const isKotsInstallEnabled = core.getBooleanInput('is-kots-install-enabled');
2218

2319
const apiClient = new VendorPortalApi();
2420
apiClient.apiToken = apiToken;

expose-port/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ inputs:
1717
description: "Protocols to expose port for. Default is `https`. Possible values are `http`, `https`, `http,https`."
1818
required: false
1919
default: "https"
20+
wildcard:
21+
description: "Create a wildcard DNS entry and TLS certificate for this port (will take extra time to provision)."
22+
required: false
23+
default: "false"
2024
outputs:
2125
hostname: # hostname of the exposed port
2226
description: "Contains the hostname of the exposed port."

expose-port/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ async function run() {
88
const port = core.getInput("port");
99
const protocols = core.getInput("protocols").split(",");
1010
const apiEndpoint = core.getInput("replicated-api-endpoint");
11+
const isWildcard = core.getBooleanInput("wildcard");
1112

1213
const apiClient = new VendorPortalApi();
1314
apiClient.apiToken = apiToken;
@@ -20,7 +21,8 @@ async function run() {
2021
apiClient,
2122
clusterId,
2223
Number(port),
23-
protocols
24+
protocols,
25+
isWildcard
2426
);
2527
core.info(`Exposed Port on ${exposedPort.hostname}`);
2628
core.setOutput("hostname", exposedPort.hostname);

helm-install/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async function run() {
1010
const namespace: string = core.getInput('namespace');
1111
const registryUsername: string = core.getInput('registry-username');
1212
const registryPassword: string = core.getInput('registry-password');
13-
const runPreflights: boolean = core.getInput('run-preflights') === 'true';
13+
const runPreflights: boolean = core.getBooleanInput('run-preflights');
1414
const values: string = core.getInput('values');
1515
const repoName: string = core.getInput('repo-name');
1616
const repoUrl: string = core.getInput('repo-url');

report-compatibility-result/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async function run() {
1010
const apiEndpoint = core.getInput('replicated-api-endpoint')
1111
const k8sDistribution = core.getInput('kubernetes-distribution');
1212
const k8sVersion = core.getInput('kubernetes-version');
13-
const success = core.getInput('success') === 'true';
13+
const success = core.getBooleanInput('success');
1414
const notes = core.getInput('notes');
1515

1616
const apiClient = new VendorPortalApi();

upgrade-cluster/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ async function run() {
1313
const timeoutMinutes: number = +(core.getInput('timeout-minutes') || 20);
1414
const apiEndpoint = core.getInput('replicated-api-endpoint')
1515
let kubeconfigPath = core.getInput('kubeconfig-path');
16-
const exportKubeconfig = core.getInput('export-kubeconfig') === 'true';
16+
const exportKubeconfig = core.getBooleanInput('export-kubeconfig');
1717

1818
const apiClient = new VendorPortalApi();
1919
apiClient.apiToken = apiToken;

0 commit comments

Comments
 (0)