OpenShift Web Hook MethodNotAllowed Error

Solution Unverified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content