k8sCreateResource

It creates a resource in the cluster, based on the provided options. It returns a promise that resolves to the response of the resource created. In case of failure promise gets rejected with HTTP error response.

Parameter Name Description

options

Which are passed as key-value pairs in the map

options.model

k8s model

options.data

Payload for the resource to be created

options.path

Appends as subpath if provided

options.queryParams

The query parameters to be included in the URL.