@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.75 → 0.0.1-alpha.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41660,7 +41660,7 @@ const YamlEditorSingleton$1 = ({
41660
41660
  const { namespace } = currentValues.metadata;
41661
41661
  const { name } = currentValues.metadata;
41662
41662
  const body = currentValues;
41663
- const endpoint = `/api/clusters/${cluster}/k8s/${type === "builtin" ? "" : "apis"}/${apiGroupApiVersion}${isNameSpaced ? `/namespaces/${namespace}` : ""}/${typeName}/${isCreate ? "" : name}`;
41663
+ const endpoint = `/api/clusters/${cluster}/k8s/${type === "builtin" ? "" : "apis/"}${apiGroupApiVersion}${isNameSpaced ? `/namespaces/${namespace}` : ""}/${typeName}/${isCreate ? "" : name}`;
41664
41664
  if (isCreate) {
41665
41665
  createNewEntry({ endpoint, body }).then((res) => {
41666
41666
  console.log(res);