loadUrl() function
export declare function loadUrl(url: RequestInfo, options?: LoadUrlOptions): () => Promise<Manifest[]>;
Parameters
Parameter | Type | Description |
---|---|---|
url | RequestInfo | URL to a Kubernetes YAML file. |
options | LoadUrlOptions | (Optional) |
() => Promise<Manifest[]>
Remarks
By default, this function uses fetch
API defined in the global scope. On Node.js, if global.fetch
is undefined, node-fetch will be used instead.