1.1.3 • Published 10 months ago

kubectl-sync2local v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

kube-sync2local

A tool for sync online resource detail to Local YAML manifest file.

install

### from npm
npm install -g kubectl-sync2local

### from resource
https://github.com/bagechashu/kubectl-sync2local.git
cd kubectl-sync2local
npm link

usage

kubectl-sync2local -f tmp.yaml

kubectl sync2local -f tmp.yaml

import

import { mergeAndUpdateLocalResources, mergeAndUpdateLocalResourcesContainers } from "kubectl-sync2local";


const localPath = "./tmp.yaml"

const kc = new KubeConfig();
kc.loadFromDefault();

try {
    mergeAndUpdateLocalResources(kc, localPath);
} catch (error) {
    console.error(`Failed to sync Kubernetes resource: ${error}`);
}

Thanks to ChatGPT !!!

1.1.3

10 months ago

1.1.2

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.10

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago