Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tekton-tools update #993

Merged
merged 2 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions task/provision-env-with-ephemeral-namespace/0.1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ an ephemeral environment that will be completely clean of previous artifacts.

## Params:

The task takes no parameters.
| name | description |
|-----------------|-------------------------------------------------------------------|
| KONFLUXNAMESPACE | The Namespace in which the pipeline runs in. Accessible using `$(context.pipelineRun.namespace)` within the pipelinerun |
| PIPELINERUN_NAME | The name of the Pipelinerun this task is a part of. Accessible using `$(context.pipelineRun.name)` within the pipelinerun |
| PIPELINERUN_UID | The unique identifier of the Pipelinerun this task is a part of. Accessible using `$(context.pipelineRun.uid)` within the pipelinerun |


## Results:
Expand All @@ -20,5 +24,3 @@ The task takes no parameters.

## Source repository for task:
https://github.com/redhat-appstudio/tekton-tools


Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ kind: Task
metadata:
name: provision-env-with-ephemeral-namespace
spec:
params:
- name: KONFLUXNAMESPACE
type: string
- name: PIPELINERUN_NAME
type: string
- name: PIPELINERUN_UID
type: string
results:
- name: secretRef
description:
Expand All @@ -15,11 +22,11 @@ spec:
image: registry.redhat.io/openshift4/ose-cli:4.13@sha256:73df37794ffff7de1101016c23dc623e4990810390ebdabcbbfa065214352c7c
env:
- name: KONFLUXNAMESPACE
value: "$(context.pipelineRun.namespace)"
value: $(params.KONFLUXNAMESPACE)
- name: PIPELINERUN_NAME
value: "$(context.pipelineRun.name)"
value: $(params.PIPELINERUN_NAME)
- name: PIPELINERUN_UID
value: "$(context.pipelineRun.uid)"
value: $(params.PIPELINERUN_UID)
script: |
#!/bin/bash
set -ex
Expand Down