Skip to main content

loadUrl() function

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

Parameters

ParameterTypeDescription
urlRequestInfoURL to a Kubernetes YAML file.
optionsLoadOptions & RequestInit(Optional) LoadOptions and properties defined in Request class.
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.