added exports for all functions

This commit is contained in:
Atharva Mulmuley
2021-06-03 11:45:03 +05:30
parent ec4658ba67
commit 69db96d47b
4 changed files with 11 additions and 4 deletions

View File

@@ -64,11 +64,11 @@ export async function getArcKubeconfig(): Promise<string> {
}
}
function sleep(ms) {
export function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function executeAzCliCommand(
export async function executeAzCliCommand(
command: string,
silent?: boolean,
execOptions: any = {},

View File

@@ -21,7 +21,7 @@ export function getKubeconfig(): string {
core.debug("Found clusterUrl, creating kubeconfig using certificate and token");
let k8sSecret = core.getInput('k8s-secret', { required: true });
var parsedk8sSecret = jsyaml.safeLoad(k8sSecret);
let kubernetesServiceAccountSecretFieldNotPresent = 'The service account secret yaml does not contain %s; field. Make sure that its present and try again.';
let kubernetesServiceAccountSecretFieldNotPresent = 'The service acount secret yaml does not contain %s; field. Make sure that its present and try again.';
if (!parsedk8sSecret) {
throw Error("The service account secret yaml specified is invalid. Make sure that its a valid yaml and try again.");
}
@@ -127,4 +127,4 @@ export async function run() {
}
}
run().catch(core.setFailed);
run().catch(core.setFailed);