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

Update OpenShift logging rules to handle CLO 6.0 #12484

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

yuumasato
Copy link
Member

Description:

  • Update Cluster Logging Operator to use observability.openshift.io when CLO 6.0 is installed/available
  • Duplicate the rules to handle multiple API versions.

Rationale:

  • The rules should work when CLO 6.0 is installed.
  • The rules need to work with CLO 5.9 and 6.0, as users will not immediately migrate.

Review Hints:

cluster-loggin-operator has transitioned to stable-6.0 channel.
This updates our testing remediations to grab CLO from the correct
channel.
Reform rule audit_log_forwarding_enabled to check for
ClusterlogForwarders from logging and observability APIs.
Adds two rules checking for log forwarding in each API
Reform rule audit_log_forwarding_uses_tls to check for
ClusterlogForwarders from logging and observability APIs.
Adds two rules checking for log forwarding in each API
Reform rule audit_log_forwarding_webhook to check for
ClusterlogForwarders from logging and observability APIs.
Adds two rules checking for log forwarding in each API
Reform rule cluster_logging_operator_exists to check for
existence ClusterlogForwarders from logging and observability APIs.
Adds two rules checking for log forwarding in each API
@yuumasato yuumasato added the OpenShift OpenShift product related. label Oct 10, 2024
Copy link

Start a new ephemeral environment with changes proposed in this pull request:

rhel8 (from CTF) Environment (using Fedora as testing environment)
Open in Gitpod

Fedora Testing Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

Copy link

🤖 A k8s content image for this PR is available at:
ghcr.io/complianceascode/k8scontent:12484
This image was built from commit: 6384242

Click here to see how to deploy it

If you alread have Compliance Operator deployed:
utils/build_ds_container.py -i ghcr.io/complianceascode/k8scontent:12484

Otherwise deploy the content and operator together by checking out ComplianceAsCode/compliance-operator and:
CONTENT_IMAGE=ghcr.io/complianceascode/k8scontent:12484 make deploy-local

Copy link

codeclimate bot commented Oct 10, 2024

Code Climate has analyzed commit 6384242 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 59.5% (0.0% change).

View more on Code Climate.

@rhmdnd
Copy link
Collaborator

rhmdnd commented Oct 10, 2024

Should be good to rekick the testing here now that ComplianceAsCode/compliance-operator#616 landed. The images should rebuild and push to the ghci.

@yuumasato
Copy link
Member Author

/test 4.17-e2e-aws-ocp4-pci-dss-4-0
/test 4.16-e2e-aws-ocp4-pci-dss-4-0

/test 4.17-e2e-aws-ocp4-stig
/test 4.16-e2e-aws-ocp4-stig

@yuumasato
Copy link
Member Author

/test 4.13-e2e-aws-ocp4-pci-dss-4-0
/test 4.13-e2e-aws-ocp4-stig

Copy link

openshift-ci bot commented Oct 11, 2024

@yuumasato: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/4.17-e2e-aws-ocp4-pci-dss-4-0 6384242 link true /test 4.17-e2e-aws-ocp4-pci-dss-4-0
ci/prow/4.13-e2e-aws-ocp4-stig 6384242 link true /test 4.13-e2e-aws-ocp4-stig
ci/prow/4.13-e2e-aws-ocp4-pci-dss-4-0 6384242 link true /test 4.13-e2e-aws-ocp4-pci-dss-4-0

Full PR test history. Your PR dashboard.

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-sigs/prow repository. I understand the commands that are listed here.

@rhmdnd rhmdnd added this to the 0.1.75 milestone Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OpenShift OpenShift product related.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants