--- apiVersion: tekton.dev/v1beta1 kind: Task metadata: name: openshift-client labels: app.kubernetes.io/version: "0.1" annotations: tekton.dev/categories: Openshift tekton.dev/pipelines.minVersion: "0.12.1" tekton.dev/tags: cli tekton.dev/displayName: "openshift client" tekton.dev/platforms: "linux/amd64" tekton.dev/deprecated: "true" spec: description: >- This task runs commands against the cluster where the task run is being executed. OpenShift is a Kubernetes distribution from Red Hat which provides oc, the OpenShift CLI that complements kubectl for simplifying deployment and configuration applications on OpenShift. params: - name: SCRIPT description: The OpenShift CLI arguments to run type: string default: "oc $@" - name: ARGS description: The OpenShift CLI arguments to run type: array default: - "help" - name: VERSION description: The OpenShift Version to use type: string default: "4.6" resources: inputs: - name: source type: git optional: true steps: - name: oc image: quay.io/openshift/origin-cli:$(params.VERSION) script: "$(params.SCRIPT)" args: - "$(params.ARGS)"