Do http datasources support POST calls, or only GET? #1138
Unanswered
richgerrard
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hey @richgerrard! 👋 That's a pain. POST isn't supported - generally because it tends to model a write, and gomplate datasources are all about reading. Is this particular POST looking for a body to be sent, or can it be empty? If so I could probably add support pretty easily. One thing you could try is setting the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I had an API change from a GET call to a POST call in a new release, and my datasource fails as follows:
error calling ds: Couldn't read datasource 't': Unexpected HTTP status 404 on GET from https://t.x.y/api/v1/daemonset.yaml?type=application/yaml: 404 page not found\n"
Is this configurable? Docs mentioned headers, but not methods.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions