@firestartr/cli 1.36.2 → 1.36.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js
CHANGED
|
@@ -340829,7 +340829,10 @@ async function tfPlanner(claimFilePath, claim, namespace, debug, jobTtl, cmd = '
|
|
|
340829
340829
|
const batchV1Api = kc.makeApiClient(client.BatchV1Api);
|
|
340830
340830
|
const targetNamespaceName = namespace;
|
|
340831
340831
|
const targetDeploymentName = DEFAULT_OPERATOR_DEPLOY;
|
|
340832
|
-
const controllerDeploy = await k8sApi.readNamespacedDeployment(
|
|
340832
|
+
const controllerDeploy = await k8sApi.readNamespacedDeployment({
|
|
340833
|
+
name: targetDeploymentName,
|
|
340834
|
+
namespace: targetNamespaceName,
|
|
340835
|
+
});
|
|
340833
340836
|
// we create the job
|
|
340834
340837
|
const job = new client.V1Job();
|
|
340835
340838
|
job.apiVersion = 'batch/v1';
|
|
@@ -340845,7 +340848,7 @@ async function tfPlanner(claimFilePath, claim, namespace, debug, jobTtl, cmd = '
|
|
|
340845
340848
|
job.spec = new client.V1JobSpec();
|
|
340846
340849
|
if (jobTtl)
|
|
340847
340850
|
job.spec.ttlSecondsAfterFinished = jobTtl;
|
|
340848
|
-
job.spec.template = controllerDeploy.
|
|
340851
|
+
job.spec.template = controllerDeploy.spec
|
|
340849
340852
|
.template;
|
|
340850
340853
|
job.spec.template.spec.containers[0].command = [
|
|
340851
340854
|
'sh',
|
|
@@ -340858,9 +340861,15 @@ async function tfPlanner(claimFilePath, claim, namespace, debug, jobTtl, cmd = '
|
|
|
340858
340861
|
}
|
|
340859
340862
|
job.spec.template.spec.restartPolicy = 'Never';
|
|
340860
340863
|
job.metadata = metadata;
|
|
340861
|
-
await batchV1Api.createNamespacedJob(
|
|
340864
|
+
await batchV1Api.createNamespacedJob({
|
|
340865
|
+
namespace,
|
|
340866
|
+
body: job,
|
|
340867
|
+
});
|
|
340862
340868
|
await copyClaimAndGetLogs(namespace, job.metadata.name, claimFilePath);
|
|
340863
|
-
await batchV1Api.deleteNamespacedJob(
|
|
340869
|
+
await batchV1Api.deleteNamespacedJob({
|
|
340870
|
+
name: job.metadata.name,
|
|
340871
|
+
namespace,
|
|
340872
|
+
});
|
|
340864
340873
|
}
|
|
340865
340874
|
async function copyClaimAndGetLogs(namespace, jobName, sourcePath) {
|
|
340866
340875
|
const { kc } = await getConnection();
|
|
@@ -428,7 +428,7 @@ export declare function getBranch(repo: string, branch: string, owner?: string):
|
|
|
428
428
|
verified_at: string;
|
|
429
429
|
};
|
|
430
430
|
};
|
|
431
|
-
author:
|
|
431
|
+
author: {
|
|
432
432
|
name?: string;
|
|
433
433
|
email?: string;
|
|
434
434
|
login: string;
|
|
@@ -451,8 +451,8 @@ export declare function getBranch(repo: string, branch: string, owner?: string):
|
|
|
451
451
|
site_admin: boolean;
|
|
452
452
|
starred_at?: string;
|
|
453
453
|
user_view_type?: string;
|
|
454
|
-
}
|
|
455
|
-
committer:
|
|
454
|
+
} | Record<string, never>;
|
|
455
|
+
committer: {
|
|
456
456
|
name?: string;
|
|
457
457
|
email?: string;
|
|
458
458
|
login: string;
|
|
@@ -475,7 +475,7 @@ export declare function getBranch(repo: string, branch: string, owner?: string):
|
|
|
475
475
|
site_admin: boolean;
|
|
476
476
|
starred_at?: string;
|
|
477
477
|
user_view_type?: string;
|
|
478
|
-
}
|
|
478
|
+
} | Record<string, never>;
|
|
479
479
|
parents: {
|
|
480
480
|
sha: string;
|
|
481
481
|
url: string;
|