-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Fix oc cluster up to do image pull #19040
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -304,6 +304,15 @@ func (c *ClusterUpConfig) Complete(f *osclientcmd.Factory, cmd *cobra.Command, o | |
| c.dockerClient = client | ||
| taskPrinter.Success() | ||
|
|
||
| // Ensure that the OpenShift Docker image is available. | ||
| // If not present, pull it. | ||
| // We do this here because the image is used in the next step if running Red Hat docker. | ||
| taskPrinter.StartTask(fmt.Sprintf("Checking if image %s is available", c.openshiftImage())) | ||
| if err := c.checkOpenShiftImage(out); err != nil { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was previously called in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. addressed in comment above. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pre-existing, but what a horribly named method. A There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i used what existed ;-) |
||
| return taskPrinter.ToError(err) | ||
| } | ||
| taskPrinter.Success() | ||
|
|
||
| // Check whether the Docker host has the right binaries to use Kubernetes' nsenter mounter | ||
| // If not, use a shared volume to mount volumes on OpenShift | ||
| if isRedHatDocker, err := c.DockerHelper().IsRedHat(); err == nil && isRedHatDocker { | ||
|
|
||
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.
This doesn't appear to be setting value sin the
Optionsstruct. Move it to theRun?Uh oh!
There was an error while loading. Please reload this page.
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.
see my comment "We do this here because the image is used in the next step..." where next step is next line of code ;-)
literally this code block fails on "CanUseNsenterMounter" tries to run the image.
i don't love where the code is right now, i tried to put it next to startKubelet until i saw the above.