-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix mergeCredentials namespace reference #2622
Fix mergeCredentials namespace reference #2622
Conversation
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.
Nice catch!!! Thanks!
For extra points, could you add a test? (it's OK if you don't have time or simply don't want to)
(@denysvitali sorry, I initially selected the request changes option) |
On the face of it, this looks like it would break most setups (because by default all namespaces are allowed, therefore the sentinel value will usually be used). For the benefit of my understanding, what are the factors that make it only certain setups? |
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.
Looks correct to me!
By certain I meant my setup 😅 |
Bonus points for finding a relevant xkcd (there's one for every situation! well, every computer situation) 👍 |
On certain setups, the following error appears (and the deploy is not successful?) even though the manifest is correct:
This issue is caused by the fact that the
ns
variable may be set to "" (meaning "all namespaces", seemeta_v1.NamespaceAll
), therefore inmergeCredentials(...)
the "" namespace is forwarded and used for looking at the imagePullSecrets.Related commit: 1dbeff3 .
Please do not merge yet, I'm testing it (nanosapp/flux:feature-namespace-regcred-fix-e1276641-wip
)Seems to be fixed, ready to be merged 🚀