Reputation: 5
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
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