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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.