Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 18x 18x 18x 18x 18x 72x 72x 72x 72x 18x 1x | import { KubernetesBootstrapMethod, TIFKubernetesClient, } from "./kubernetes/client"; import { Deployment } from "./kubernetes/deployment"; import { Ingress } from "./kubernetes/ingress"; import { Pod } from "./kubernetes/pod"; import { StatefulSet } from "./kubernetes/stateful_set"; const resources = { Ingress, Deployment, Pod, StatefulSet, }; export class Kubernetes { public client: TIFKubernetesClient; Ingress: Ingress; Deployment: Deployment; Pod: Pod; StatefulSet: StatefulSet; constructor( config: any = null, method: KubernetesBootstrapMethod = "default" ) { this.client = new TIFKubernetesClient(config, method); for (const resourceName in resources) { if (resources.hasOwnProperty(resourceName)) { this[resourceName] = new resources[resourceName](this.client); } } } } |