Skip to content

operator: use infra and network manifests to create controllerconfigspec - #357

Merged
openshift-merge-robot merged 8 commits into
openshift:masterfrom
abhinavdahiya:move_to_global_config
Feb 14, 2019
Merged

openshift-merge-robot merged 8 commits into
openshift:masterfrom
abhinavdahiya:move_to_global_config

Conversation

@abhinavdahiya

Copy link
Copy Markdown
Contributor

cluster-config-v1is going to be deprecated in favor of global configs 1. So moving the 2 major options that MCO requires etcd discovery domain and apiserver url to Infrastructure.config.openshift.io 2. As of 3 the installer is now setting those values and MCO can use global configs to fetch those 2 specific information.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 31, 2019
@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jan 31, 2019
@abhinavdahiya

Copy link
Copy Markdown
Contributor Author

working on this, this is not ready for review. using it as a way to get release for local testing.

@abhinavdahiya

abhinavdahiya commented Jan 31, 2019 •

Copy link
Copy Markdown
Contributor Author

also needs #351 to sync the status.go with vendor bump.
and openshift/installer#1013

@cgwalters

Copy link
Copy Markdown
Member

Is this 4.0 work?

@abhinavdahiya
abhinavdahiya force-pushed the move_to_global_config branch 3 times, most recently from fa9a32b to 0a261d8 Compare February 1, 2019 18:47
@abhinavdahiya

Copy link
Copy Markdown
Contributor Author

sweet, this is green :yay: i'll start to cleanup and add details.

@ashcrow

ashcrow commented Feb 1, 2019

Copy link
Copy Markdown
Member

It looks like it is based on the referenced PR. @abhinavdahiya can you confirm?

@abhinavdahiya

Copy link
Copy Markdown
Contributor Author

It looks like it is based on the referenced PR. @abhinavdahiya can you confirm?

Yes i need this PR to make progress on openshift/installer#1169. I will be filing for exception for all of it together.

@ashcrow

ashcrow commented Feb 1, 2019

Copy link
Copy Markdown
Member

/hold

Since the CI is green, holding until the exception is granted.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 1, 2019
@abhinavdahiya abhinavdahiya changed the title WIP: operator: use infra and network manifests to create controllerconfigspec operator: use infra and network manifests to create controllerconfigspec Feb 5, 2019
@openshift-ci-robot openshift-ci-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Feb 5, 2019
Since [1], the `Infrastructure.config.openshift.io` global config object contains the kube apiserver's url
and the domain that needs to be used by etcd to do bootstrapping using dns discovery.

The installer creates and sets the appropiate value since [2].

Therefore there is no longer a requirement for cluster_name and base_domain to create these values in template controller.

[1]: openshift/api#189
[2]: openshift/installer#1155
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 12, 2019
@abhinavdahiya

Copy link
Copy Markdown
Contributor Author

/hold

Since the CI is green, holding until the exception is granted.

This is required for openshift/installer#1169 and openshift/installer#1169 has approval.

So ping @runcom @cgwalters

@abhinavdahiya

Copy link
Copy Markdown
Contributor Author

/hold
Since the CI is green, holding until the exception is granted.

This is required for openshift/installer#1169 and openshift/installer#1169 has approval.

So ping @runcom @cgwalters

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 12, 2019
@cgwalters

Copy link
Copy Markdown
Member

Gave this code a slightly-more-than-superficial review; overall LGTM.

@kikisdeliveryservice kikisdeliveryservice left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some comments, mostly re: clarity

Comment thread pkg/operator/operator.go Resolved
Comment thread pkg/operator/render.go Resolved
@@ -51,16 +51,6 @@ type MCOConfig struct {

// MCOConfigSpec is the spec for MCOConfig resource.
type MCOConfigSpec struct {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this just an empty struct?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, we don't need to duplicate here and controllerconfigspec.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The one place it was used was deleted too (operator/render.go) so can I ask to understand why we keep it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

k8s object typically have spec and status. So this needs to staty but, for now empty.

MCOConfig can be expanded later on to drive operator level configuration like
maybe placement of controller, server etc.
log levels for its operands and such...

@runcom runcom Feb 13, 2019 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(Abhinav was faster than me at commenting so I didn't notice his comment before posting mine)

My take is this is still the MCO config object and we may add fields going forward (as well as deprecating and so on and so forth) so we stick it around but if we instead can remove it, let's nuke it

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

makes sense! @abhinavdahiya and @runcom (tag team!)

Comment thread pkg/operator/bootstrap.go Resolved
Comment thread pkg/operator/bootstrap.go Resolved
Comment thread pkg/operator/bootstrap.go Resolved
Comment thread pkg/operator/render.go Resolved
Comment thread pkg/operator/render.go Resolved
@runcom

runcom commented Feb 13, 2019

Copy link
Copy Markdown
Member

Apart from @kikisdeliveryservice comments, this LGTM, I'll properly lgtm it once comments are addressed

@kikisdeliveryservice

Copy link
Copy Markdown
Contributor

Thanks for the updates and answers @abhinavdahiya . Was very helpful! 😺

@runcom

runcom commented Feb 13, 2019

Copy link
Copy Markdown
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 13, 2019
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya, runcom

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

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [abhinavdahiya,runcom]

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

@openshift-merge-robot
openshift-merge-robot merged commit 6b92718 into openshift:master Feb 14, 2019
osherdp pushed a commit to osherdp/machine-config-operator that referenced this pull request Apr 13, 2021
Bug 1930570: Update Jenkins monitored templates names
ptalgulk01 pushed a commit to ptalgulk01/machine-config-operator that referenced this pull request May 15, 2026
…nfig

operator: use infra and network manifests to create controllerconfigspec
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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants