disable aws pipe for now
parent
e488903104
commit
c1a199e8e8
|
@ -3260,6 +3260,7 @@ const kubernetes_job_spec_factory_1 = __importDefault(__nccwpck_require__(3610))
|
||||||
const kubernetes_service_account_1 = __importDefault(__nccwpck_require__(47319));
|
const kubernetes_service_account_1 = __importDefault(__nccwpck_require__(47319));
|
||||||
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(42864));
|
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(42864));
|
||||||
const cloud_runner_1 = __importDefault(__nccwpck_require__(79144));
|
const cloud_runner_1 = __importDefault(__nccwpck_require__(79144));
|
||||||
|
const remote_client_logger_1 = __nccwpck_require__(59412);
|
||||||
class Kubernetes {
|
class Kubernetes {
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
constructor(buildParameters) {
|
constructor(buildParameters) {
|
||||||
|
@ -3285,6 +3286,7 @@ class Kubernetes {
|
||||||
body.data['logs'] = logs;
|
body.data['logs'] = logs;
|
||||||
body.metadata = { name: `${this.jobName}-logs` };
|
body.metadata = { name: `${this.jobName}-logs` };
|
||||||
await this.kubeClient.createNamespacedConfigMap(this.namespace, body);
|
await this.kubeClient.createNamespacedConfigMap(this.namespace, body);
|
||||||
|
remote_client_logger_1.RemoteClientLogger.log(`Pushed logs to Kubernetes ConfigMap`);
|
||||||
}
|
}
|
||||||
async listResources() {
|
async listResources() {
|
||||||
const pods = await this.kubeClient.listNamespacedPod(this.namespace);
|
const pods = await this.kubeClient.listNamespacedPod(this.namespace);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -14,6 +14,7 @@ import { CoreV1Api } from '@kubernetes/client-node';
|
||||||
import CloudRunner from '../../cloud-runner';
|
import CloudRunner from '../../cloud-runner';
|
||||||
import { ProviderResource } from '../provider-resource';
|
import { ProviderResource } from '../provider-resource';
|
||||||
import { ProviderWorkflow } from '../provider-workflow';
|
import { ProviderWorkflow } from '../provider-workflow';
|
||||||
|
import { RemoteClientLogger } from '../../remote-client/remote-client-logger';
|
||||||
|
|
||||||
class Kubernetes implements ProviderInterface {
|
class Kubernetes implements ProviderInterface {
|
||||||
public static Instance: Kubernetes;
|
public static Instance: Kubernetes;
|
||||||
|
@ -48,6 +49,7 @@ class Kubernetes implements ProviderInterface {
|
||||||
body.data['logs'] = logs;
|
body.data['logs'] = logs;
|
||||||
body.metadata = { name: `${this.jobName}-logs` };
|
body.metadata = { name: `${this.jobName}-logs` };
|
||||||
await this.kubeClient.createNamespacedConfigMap(this.namespace, body);
|
await this.kubeClient.createNamespacedConfigMap(this.namespace, body);
|
||||||
|
RemoteClientLogger.log(`Pushed logs to Kubernetes ConfigMap`);
|
||||||
}
|
}
|
||||||
|
|
||||||
async listResources(): Promise<ProviderResource[]> {
|
async listResources(): Promise<ProviderResource[]> {
|
||||||
|
|
Loading…
Reference in New Issue