Skip to content

Commit

Permalink
Update openshift-client.yaml with optional results field
Browse files Browse the repository at this point in the history
Added a results field with an optional RESULT to emit output for use in pipeline or next tasks.
The default value is set to an empty string according to TEP-0048: Task Results without Results.
  • Loading branch information
Shrubberer authored Sep 17, 2024
1 parent 8e72abb commit 99ec25a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion task/openshift-client/0.2/openshift-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ spec:
description: The OpenShift Version to use
type: string
default: "4.7"

results:
- name: RESULT
description: Can be used to store output in order to be used by following tasks (with tasks.taskname.results.RESULT). Default value is empty string
type: string

steps:
- name: oc
image: quay.io/openshift/origin-cli:$(params.VERSION)
Expand All @@ -50,5 +56,7 @@ spec:
[[ "$(workspaces.kubeconfig-dir.bound)" == "true" ]] && \
[[ -f $(workspaces.kubeconfig-dir.path)/kubeconfig ]] && \
export KUBECONFIG=$(workspaces.kubeconfig-dir.path)/kubeconfig
echo "" > $(results.RESULT.path)
$(params.SCRIPT)

0 comments on commit 99ec25a

Please sign in to comment.