-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
Allow setting the name for the base container and fix longstanding bug with running quick pods #28752
Conversation
Would be nice to have unit tests which cover new functionality for avoid regression |
Yep.. they're on the way :) |
012b099
to
6e2a2ad
Compare
This will also now fix #26796... since i kept hitting it in my tests :) @jedcunningham can you take a look when you get a chance? |
Some downstream machinary may require a specific name for the 'base' container
…running (when get_log=False Also add tests for setting the base container name
3518624
to
f1dbafc
Compare
def await_container_completion(self, pod: V1Pod, container_name: str) -> None: | ||
while not self.container_is_running(pod=pod, container_name=container_name): | ||
while self.container_is_running(pod=pod, container_name=container_name): | ||
time.sleep(1) |
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.
While this looks like a valid fix, it is logically unrelated to the base_container_name
change. Could you split it into another PR?
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.
The problem is I can't get my new unit tests for base name with get_log=False to pass without fixing this too.
I guess I can split to do this fix first then that one after if you'd prefer.
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.
Yeah let’s do that.
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.
ack. will split em tomorrow.
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.
Closing in favor of #28771 and then redoing this after that. |
Some downstream machinery may require a specific name for the 'base' container.
This change should be backwards compatible since the default base container name is still base.. it can just now be changed to something besides base.