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_NAMEdescription: cluster namevalueRef:secretKeyRef:name: cluster-configkey: cluster-namepipeline.yaml:
params:- name: CLUSTER_NAMEtasks:- name: createtaskRef:name: task-cliparams:- name: ARGSvalue:- --cluster-name=$(params.CLUSTER_NAME)task.yaml
steps:- name: listing-paramsimage: $(params.image)command: ["echo"]args:- $(params.ARGS)Beta Was this translation helpful? Give feedback.
All reactions