-
Notifications
You must be signed in to change notification settings - Fork 110
NO-JIRA: om: add a test for the oauth-apiserver controller #811
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
NO-JIRA: om: add a test for the oauth-apiserver controller #811
Conversation
…WorkloadController requires
WalkthroughThe pull request adds OAuth API server deployment management to the resource controller by registering the openshift-oauth-apiserver/apiserver Deployment in the managed resources, and introduces comprehensive test fixtures with expected output manifests and input configurations for OAuth API server creation scenarios. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to 📒 Files selected for processing (14)
🧰 Additional context used📓 Path-based instructions (1)**⚙️ CodeRabbit configuration file
Files:
🪛 Checkov (3.2.334)test-data/apply-configuration/overall/oauth-apiserver-creation-minimal/expected-output/Management/Create/namespaces/openshift-oauth-apiserver/apps/deployments/7350-body-apiserver.yaml[medium] 1-215: Containers should not run with allowPrivilegeEscalation (CKV_K8S_20) [high] 1-215: Container should not be privileged (CKV_K8S_16) [medium] 1-215: Minimize the admission of root containers (CKV_K8S_23) 🔇 Additional comments (14)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. Comment |
|
@bertinatto: all tests passed! 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. |
| libraryoutputresources.ExactConfigMap("openshift-authentication", "audit"), | ||
| libraryoutputresources.ExactConfigMap("openshift-authentication", "v4-0-config-system-trusted-ca-bundle"), | ||
| libraryoutputresources.ExactDeployment("openshift-authentication", "oauth-openshift"), | ||
| libraryoutputresources.ExactDeployment("openshift-oauth-apiserver", "apiserver"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, this should be defined on the Management cluster.
| - config.openshift.io/clusterversions: not really used by the controller, but it's required to start the operator CreateOperatorStarter/prepareOauthOperator | ||
| - config.openshift.io/authentications/cluster: required by the controller | ||
| - config.openshift.io/infrastructures/cluster: required by the controller | ||
| - operator.openshift.io/authentications/cluster: required by the controller |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this holds the configuration for the server, right ?
as a next step would could write a test that would create a valid config for the server.
|
/lgtm |
|
/assign @liouk for approval |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bertinatto, liouk, p0lyn0mial 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:
Approvers can indicate their approval by writing |
|
/retitle NO-JIRA: om: add a test for the oauth-apiserver controller |
|
@bertinatto: This pull request explicitly references no jira issue. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
@bertinatto: This PR has been marked as verified by In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
/assign @p0lyn0mial @benluddy