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

scaffolded OperatorConfig API #1027

Merged
merged 3 commits into from
Mar 28, 2024
Merged

Conversation

bitscuit
Copy link
Member

@bitscuit bitscuit commented Mar 20, 2024

opening PR now for easier reviewing since a lot of files are generated when a new API is added.

How to test:

Should be no change to functionality, just able to install it and see OperatorConfig CRD

Signed-off-by: Henry H Li <henry.h.li@ibm.com>
main.go Outdated
Comment on lines 170 to 176
if err = (&controllers.OperatorConfigReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
}).SetupWithManager(mgr); err != nil {
klog.Error(err, "unable to create controller", "controller", "OperatorConfig")
os.Exit(1)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @bitscuit

May I ask that is there any concern if we follow the convention, to wrap the operatorConfig controller under interface ODLMOperator?

if err = (&operandconfig.Reconciler{
		ODLMOperator: deploy.NewODLMOperator(mgr, "OperandConfig"),
	}).SetupWithManager(mgr); err != nil {
		klog.Errorf("unable to create controller OperandConfig: %v", err)
		os.Exit(1)
	}

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, done

Signed-off-by: Henry H Li <henry.h.li@ibm.com>
Signed-off-by: Henry H Li <henry.h.li@ibm.com>
Copy link
Contributor

@Daniel-Fan Daniel-Fan left a comment

Choose a reason for hiding this comment

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

/lgtm

@ibm-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bitscuit, Daniel-Fan

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 [Daniel-Fan,bitscuit]

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

@Daniel-Fan
Copy link
Contributor

/retest

@ibm-ci-bot ibm-ci-bot merged commit f53293d into IBM:master Mar 28, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants