OpenShift Web Hook MethodNotAllowed Error
Issue
- While building the web hooks in the OpenShift environment, seeing "MethodNotAllowed" error. Below is the error message:
$ curl https://openshift.example.com:443/oapi/v1/namespaces/myproject/buildconfigs/mybuildconfig/webhooks/a300e8f539aefce2/generic
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "the server does not allow this method on the requested resource",
"reason": "MethodNotAllowed",
"details": {},
"code": 405
}
With the configuration:
spec:
triggers:
-
type: Generic
generic:
secret: a300e8f539aefce2
-
type: GitHub
github:
secret: 5a1457f04e7990fe
-
type: ImageChange
imageChange:
lastTriggeredImageID: 'registry.access.redhat.com/jboss-eap-6/eap64-openshift:1.2'
-
type: ConfigChange
Environment
- Red Hat OpenShift Enterprise
- 3.2.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.