OpenShift Gogs Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 15: Line 15:


Active.
Active.


==Wehook Target Does Not Have a Valid SSL Certificate==
==Wehook Target Does Not Have a Valid SSL Certificate==
Line 22: Line 21:


Delivery: Post https://openshift.default.svc.cluster.local/oapi/v1/namespaces/novaordis-dev/buildconfigs/novaordis-session-servlet/webhooks/generic: x509: certificate signed by unknown authority
Delivery: Post https://openshift.default.svc.cluster.local/oapi/v1/namespaces/novaordis-dev/buildconfigs/novaordis-session-servlet/webhooks/generic: x509: certificate signed by unknown authority
See [[]].
=Turn Off TLS Verification when Sending Web Hook=
Pass SKIP_TLS_VERIFY=true in the container's environment.
Verify with: Admin Panel -> Configuration -> Webhook Configuration -> Skip TLS Verify.

Revision as of 01:03, 7 December 2017

Internal

Configure a Webhook

Repository -> Settings -> Webhooks -> Add Webhook


Payload URL: https://openshift.default.svc.cluster.local/oapi/v1/namespaces/<project-name>/buildconfigs/<buildconfig-name>/webhooks/generic

Content Type: application/json

When should this webhook be triggered: Let me choose what I need -> Push

Active.

Wehook Target Does Not Have a Valid SSL Certificate

When this happens, the webhook delivery attempt produces :

Delivery: Post https://openshift.default.svc.cluster.local/oapi/v1/namespaces/novaordis-dev/buildconfigs/novaordis-session-servlet/webhooks/generic: x509: certificate signed by unknown authority

See [[]].


Turn Off TLS Verification when Sending Web Hook

Pass SKIP_TLS_VERIFY=true in the container's environment.

Verify with: Admin Panel -> Configuration -> Webhook Configuration -> Skip TLS Verify.