Skip to content
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

operator: Add bootstrap arg --machine-config-oscontent-image #355

Merged

Conversation

cgwalters
Copy link
Member

This will allow the installer to render the payload's osImageURL
ConfigMap in the initial MachineConfig as well.

Closes: #334

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 29, 2019
@cgwalters
Copy link
Member Author

Installer PR using this: openshift/installer#1149

@cgwalters
Copy link
Member Author

Only compile tested as of yet...but this is quite simple and should work.

@jlebon
Copy link
Member

jlebon commented Jan 30, 2019

Code itself is clearly correct. General approach looks sane to me (this is similar to #343) though will let installer folks comment as well.

/approve

@ashcrow
Copy link
Member

ashcrow commented Jan 31, 2019

test "release-latest" failed: pod release-latest was already deleted

/retest

Agreed, the change looks good and is pretty simple.

@ashcrow
Copy link
Member

ashcrow commented Jan 31, 2019

/retest

@cgwalters
Copy link
Member Author

OK, it's turning out to be a bit annoying to get a release payload with this PR so I can test changes to the installer. Since IMO this PR is:

  • fairly obviously correct (or close to it)
  • Harmless if the option isn't provided

I vote we land this and then actually test it in the installer PR. If we need further changes here we circle back and do it.

@ashcrow
Copy link
Member

ashcrow commented Jan 31, 2019

Once rebased 👍 to merging

@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 31, 2019
@cgwalters
Copy link
Member Author

OK rebased 🏄‍♂️ - did a bit more changes to blend in with using the Images structure.

@@ -51,6 +52,10 @@ func init() {
bootstrapCmd.PersistentFlags().StringVar(&bootstrapOpts.mcdImage, "machine-config-daemon-image", "", "Image for Machine Config Daemon. (this overrides the image from --images-json-configmap)")
bootstrapCmd.PersistentFlags().StringVar(&bootstrapOpts.etcdImage, "etcd-image", "", "Image for Etcd. (this overrides the image from --images-json-configmap)")
bootstrapCmd.PersistentFlags().StringVar(&bootstrapOpts.setupEtcdEnvImage, "setup-etcd-env-image", "", "Image for Setup Etcd Environment. (this overrides the image from --images-json-configmap)")
bootstrapCmd.PersistentFlags().StringVar(&bootstrapOpts.mccImage, "machine-config-controller-image", "", "Image for Machine Config Controller. (this cannot be set if --images-json-configmap is set)")
bootstrapCmd.PersistentFlags().StringVar(&bootstrapOpts.mcsImage, "machine-config-server-image", "", "Image for Machine Config Server. (this cannot be set if --images-json-configmap is set)")
bootstrapCmd.PersistentFlags().StringVar(&bootstrapOpts.mcdImage, "machine-config-daemon-image", "", "Image for Machine Config Daemon. (this cannot be set if --images-json-configmap is set)")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, that looks wrong. One sec.

This will allow the installer to render the payload's osImageURL
ConfigMap in the initial MachineConfig as well.

Closes: openshift#334
@yuqi-zhang
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 31, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ashcrow, cgwalters, jlebon, yuqi-zhang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [ashcrow,cgwalters,jlebon]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@yuqi-zhang
Copy link
Contributor

/retest

osherdp pushed a commit to osherdp/machine-config-operator that referenced this pull request Apr 13, 2021
…penshift-4.8-ose-cluster-samples-operator

Updating ose-cluster-samples-operator builder & base images to be consistent with ART
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants