Skip to content

Commit

Permalink
make callback secret optional
Browse files Browse the repository at this point in the history
if no requests have been made with callback secret combine, then
no secret will exist, by making the secret optional the volume
that is mounted will be empty and still allow the step to run

Signed-off-by: Kevin <[email protected]>
  • Loading branch information
KPostOffice committed Nov 30, 2022
1 parent b65527d commit 46440cc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions adviser/base/openshift-templates/adviser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ objects:
- name: callback-secret
secret:
secretName: "callback-{{workflow.parameters.THOTH_DOCUMENT_ID}}"
optional: true

templates:
- name: "adviser"
Expand Down
12 changes: 12 additions & 0 deletions core/base/send-webhooks-sa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,15 @@ roleRef:
subjects:
- kind: ServiceAccount
name: send-webhooks
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: send-webhooks-argo
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: argo
subjects:
- kind: ServiceAccount
name: send-webhooks

0 comments on commit 46440cc

Please sign in to comment.