Lazy Secret Pull Tag #855
claire1618
started this conversation in
Polls
Replies: 1 comment 2 replies
-
Do you have some thoughts on how the new retrieval logic will work when multiple steps are consuming the same secret? Suppose a pipeline that looks like the following: secrets:
- name: foo
key: go-vela/docs/foo
engine: native
type: repo
pull: on_start
steps:
- name: first
image: alpine:latest
secrets: [foo]
commands:
- echo "foo"
- sleep 60
- name: second
image: alpine:latest
secrets: [foo]
commands:
- echo "bar" Will the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am changing the types code to add a tag "pull" to secrets that can be set to either "always" or "on_start" to implement changes that correspond with this issue: #196
Example:
Setting pull to on_start ensures that secrets are pulled when the underlying step starts, and setting the pull to always is the current behavior of pulling secrets at the beginning of the build.
However, we think "on_start" and "always" might not be the best terms to use, so we have come up with three other possible options.
4 votes ·
Beta Was this translation helpful? Give feedback.
All reactions