UNPKG

@thinkdeep/k8s-tag

Version:

K8s node client tag for processing yaml configurations in javascript code.

14 lines (9 loc) 337 B
import { assembleYamlString } from "./assemble-yaml-string.mjs"; import { K8sClient } from "./k8s-client.mjs" import yaml from "yaml"; const k8s = (strings, ...args) => { const yamlString = assembleYamlString(strings, args); const parsedYaml = yaml.parse(yamlString); return new K8sClient(parsedYaml); }; export { k8s };