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

ACM-6596: Initialize controller for OperatorPolicy #159

Closed
wants to merge 5 commits into from

Conversation

JeffeyL
Copy link
Contributor

@JeffeyL JeffeyL commented Aug 22, 2023

  • Added logic to main.go for inclusion of the operatorPolicy controller under the same manager as the configurationPolicy controller
  • Added logic to the operatorPolicy controller itself (controllers/operatorpolicy_controller.go) for logging operator policies on the cluster, as well as updating their compliance (currently no actual logic behind this)

Ref: https://issues.redhat.com/browse/ACM-6596

@openshift-ci
Copy link

openshift-ci bot commented Aug 22, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: JeffeyL
Once this PR has been reviewed and has the lgtm label, please assign justinkuli for approval. For more information see the Kubernetes Code Review Process.

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

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

gparvin and others added 5 commits August 22, 2023 15:04
Consistently log the policy noncompliance and compliance as updates are
made. The goal is to allow tools that scrape logs to be able to obtain
the violation message and the details on when compliance changes happen.

Refs:
 - https://issues.redhat.com/browse/ACM-5568

Signed-off-by: Gus Parvin <gparvin@redhat.com>
Previously, these settings were not being applied to the config used
in 'hosted mode'. This commit also includes a typo fix, and adjusts some
settings used by the tests.

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
Previously, the evaluation interval could prevent policies from being
applied on new namespaces when they appeared. Now, a new controller
watches namespaces on the target cluster, and can signal to the config
policy controller when a policy's selected namespaces have changed, so
that it can be re-evaluated.

A new controller-manager is used in hosted mode, in order to create a
cache for the namespaces on the target cluster. This change required
some setup adjustments in order to start both managers in this case.

Refs:
 - https://issues.redhat.com/browse/ACM-6428

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
https://issues.redhat.com/browse/ACM-6595

Signed-off-by: Jason Zhang <jaszhang@redhat.com>
@openshift-merge-robot
Copy link
Contributor

PR needs rebase.

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.

@JeffeyL JeffeyL closed this Aug 22, 2023
@JeffeyL JeffeyL deleted the ACM-6596 branch August 22, 2023 19:36
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.

4 participants