Can i get a value from Secret Key? #1527
Unanswered
MrMrAnderson
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, hope you are doing well, I have a question regarding some pipeline code... I would like to use the Key Value of a secret from openshift as a parameter value, it seems as the valueRef: secretKeyRef: cannot get the value from it or am i wrong?
Example
Secret:
name: cluster-config
key: cluster-name
value: example
pipelinerun.yaml:
- name: CLUSTER_NAME
description: cluster name
valueRef:
secretKeyRef:
name: cluster-config
key: cluster-name
pipeline.yaml:
params:
- name: CLUSTER_NAME
tasks:
- name: create
taskRef:
name: task-cli
params:
- name: ARGS
value:
- --cluster-name=$(params.CLUSTER_NAME)
task.yaml
steps:
- name: listing-params
image: $(params.image)
command: ["echo"]
args:
- $(params.ARGS)
Beta Was this translation helpful? Give feedback.
All reactions