-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(k8s): correctly set image pull secret on sync pod #6533
Conversation
ba9d3d6
to
678ea4a
Compare
Pull request was converted to draft
Oh, good catch 👍 I oversaw that. |
Just adding some tests before I flag as ready for review |
678ea4a
to
26481cf
Compare
Before this fix, we'd add image pull secrets with name and namespace to the Pod spec but the namespace field isn't allowed so applying the manifest fails. Now we only add the name. Also added test for the 'configureSyncMode' function. The compiler didn't catch this because it allows excess properties (except for object literals).
26481cf
to
a89f2e0
Compare
FYI: Added tests and also re-enabled the tests that were being skipped. Not quite sure what the original issue was but I refactored the code a bit and now they seem to pass. |
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.
Great job on the tests! Super nice to have all of these in place now!
Before this fix, we'd add image pull secrets with name and namespace to the Pod spec but the namespace field isn't allowed so applying the manifest fails. Now we only add the name.
This isn't caught by the TS compiler because it doesn't check for excess properties (except when using object literals).
That is:
TODO: