Skip to main content

loadUrl() function

Signature:
export declare function loadUrl(url: RequestInfo, options?: LoadUrlOptions): () => Promise<Manifest[]>;

Parameters

ParameterTypeDescription
urlRequestInfoURL to a Kubernetes YAML file.
optionsLoadUrlOptions(Optional)
Returns:

() => 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.