-
Notifications
You must be signed in to change notification settings - Fork 60
Fix pod creation issue when having multiple secret from same secret group #306
Conversation
…roup Signed-off-by: Pradithya Aria <[email protected]>
Thank you for opening this pull request! 🙌
|
Signed-off-by: Pradithya Aria <[email protected]>
Smoke test was performed with following workflow
Pod manifest
|
cc @EngHabu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution and the detailed PR!
1
Outdated
Add new line | ||
|
||
Signed-off-by: Pradithya Aria <[email protected]> | ||
|
||
# Please enter the commit message for your changes. Lines starting | ||
# with '#' will be ignored, and an empty message aborts the commit. | ||
# | ||
# On branch k8s_secret_injection | ||
# Changes to be committed: | ||
# modified: pkg/webhook/utils.go | ||
# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this file merged?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pradithya drop the file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woops, I deleted it.
this is embarassing @pradithya. Thank you for the fix. After you delete the one file we can merge this! |
Signed-off-by: Pradithya Aria <[email protected]>
4732fde
to
6083659
Compare
…secret_injection Signed-off-by: Pradithya Aria <[email protected]> # Conflicts: # go.sum
Congrats on merging your first pull request! 🎉 |
…roup (flyteorg#306) * Fix pod creation issue when having multiple secret from same secret group Signed-off-by: Pradithya Aria <[email protected]> * Add new line Signed-off-by: Pradithya Aria <[email protected]> * Remove garbage Signed-off-by: Pradithya Aria <[email protected]>
TL;DR
Fix invalid pod manifest created by flyte-pod-webhook when a task within workflow request multiple secret from the same secret group. This change is specific to secret mount using
ANY
orFILE
.This can be reproduced by executing task
user_info_task
in this exampleType
Are all requirements met?
Complete description
Executing
user_info_task
in in this example produce following error in the flyte-propellerThe issue is due to the fact that pod mutator will create 2 volume mounts with the same mount path which is considered invalid by kube-api server.
There are a few modification within this PR to fix this issue:
items
. There is a change in volume name generation to exclude the secret name.Tracking Issue
Follow-up issue
NA