Skip to content

Commit b161d79

Browse files
committed
Fix adapter-hypershift status report methods to use PUT
The HyperFleet API registers status endpoints with http.MethodPut, but both adapter-hypershift and adapter-hypershift-nodepool task configs were using POST. This would result in 405 Method Not Allowed when adapters try to report HostedCluster or NodePool status back to the API. The base adapter configs under helmfile/configs/base/ already use PUT correctly; these two charts were missed because they are deployed directly via helm rather than through helmfile.
1 parent f2d847c commit b161d79

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

helm/adapter-hypershift-nodepool/adapter-task-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ post:
206206
post_actions:
207207
- name: "reportNodepoolStatus"
208208
api_call:
209-
method: "POST"
209+
method: "PUT"
210210
url: "/clusters/{{ .clusterId }}/nodepools/{{ .nodepoolId }}/statuses"
211211
headers:
212212
- name: "Content-Type"

helm/adapter-hypershift/adapter-task-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ post:
195195
post_actions:
196196
- name: "reportClusterStatus"
197197
api_call:
198-
method: "POST"
198+
method: "PUT"
199199
url: "/clusters/{{ .clusterId }}/statuses"
200200
headers:
201201
- name: "Content-Type"

0 commit comments

Comments
 (0)