Deniz Can
Deniz Can

Reputation: 5

How can i change github webhook secret in openshift with cli

AS defined here, i linked the secret that i created to webhook secret with web portal and changing the yaml file directly.like;

type: "GitHub"
github:
  secretReference:
    name: "mysecret"

Is there a way to do this over cli using oc?

Upvotes: 0

Views: 290

Answers (1)

Daein Park
Daein Park

Reputation: 4703

What about you to use oc patch as follows ?

For instance, you want to update new secret as mysecret in test buildconfig.

oc patch bc/test \
-p '{"spec": {"triggers": [{"type": "GitHub","github": {"secretReference": {"name": "mysecret"}}}]}}'

I hope it help you.

Upvotes: 1

Related Questions