Skip to content

Commit

Permalink
fix: K8s api url plural
Browse files Browse the repository at this point in the history
  • Loading branch information
Clashsoft committed Sep 27, 2024
1 parent 7a86d4c commit f79d0b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function main() {
});

await http.patchJson(
`${rancherUrl}/k8s/clusters/${clusterId}/apis/apps/v1/namespaces/${namespace}/${kind}/${workload}`,
`${rancherUrl}/k8s/clusters/${clusterId}/apis/apps/v1/namespaces/${namespace}/${kind}s/${workload}`,
[
{
op: 'replace',
Expand Down

0 comments on commit f79d0b5

Please sign in to comment.