Skip to content

Conversation

@ricardomaraschini
Copy link
Contributor

LogLevel controller keeps track of Operator and Operand log levels.

@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Aug 24, 2020
@openshift-ci-robot
Copy link
Contributor

@ricardomaraschini: This pull request references Bugzilla bug 1808118, which is valid. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.6.0) matches configured target release for branch (4.6.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)
Details

In response to this:

WIP - Bug 1808118: Implemented operator log level controller

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ricardomaraschini

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:

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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 24, 2020
OperatorSpec: operatorapi.OperatorSpec{
LogLevel: operatorapi.Normal,
OperatorLogLevel: operatorapi.Normal,
},
Copy link
Contributor

Choose a reason for hiding this comment

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

this is a somewhat awkward way to do this since you're putting operator config info into an operand config resource.

while it may work ok for now since registry is a singleton, it would be a problem if you wanted to allow multiple registry instances and in general doesn't feel quite right.

have any other operators addressed this? what pattern did the use?

Copy link
Contributor

Choose a reason for hiding this comment

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

operator/v1.OperatorSpec is a generic Spec for all operators, so many other operators work the same way.

We won't want to have multiple registry instances because the registry itself is a singleton: it uses k8s api as to storage metadata (ImageStreams).

Copy link
Contributor

Choose a reason for hiding this comment

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

i know multiple registry instances will almost certainly never be a thing, but it still seems slightly odd for the operand config resource to control the operator, so i'd like to know we have other operators that work that way.

after a bit of poking around it seems like we do, so i guess this is fine, if slightly unfortunate imho

Copy link
Contributor

Choose a reason for hiding this comment

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

@bparees I agree, that's because this config is started as a config for the operand, and other similar resources are started as configs for the operators. To make this config similar to other configs, it was transformed into a config for both: the operator (mostly status) and the operand (mostly spec). Both are singletons, so it works. Maybe eventually we'll split it and have two separate resources.

@ricardomaraschini
Copy link
Contributor Author

/retest

@ricardomaraschini
Copy link
Contributor Author

/test e2e-aws

@ricardomaraschini
Copy link
Contributor Author

/test unit

Updating openshift/api and added package github.com/openshift/library-go/pkg/operator/loglevel
LogLevel controller keeps track of Operator and Operand log levels.
@ricardomaraschini
Copy link
Contributor Author

/retest

@openshift-ci-robot
Copy link
Contributor

@ricardomaraschini: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 29, 2020
@ricardomaraschini
Copy link
Contributor Author

Closed in favor of #601

@openshift-ci-robot
Copy link
Contributor

@ricardomaraschini: This pull request references Bugzilla bug 1808118. The bug has been updated to no longer refer to the pull request using the external bug tracker.

Details

In response to this:

WIP - Bug 1808118: Implemented operator log level controller

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants