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

[WIP] THREESCALE-8002 - feat: product v1beta2 #810

Closed
wants to merge 8 commits into from

Conversation

KevFan
Copy link
Contributor

@KevFan KevFan commented Apr 4, 2023

Still work in progress - not functioning as expected

@KevFan KevFan requested a review from a team as a code owner April 4, 2023 11:00
@KevFan KevFan removed the request for review from a team April 4, 2023 11:01
@codeclimate
Copy link

codeclimate bot commented Apr 5, 2023

Code Climate has analyzed commit 68b6a19 and detected 162 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 11
Duplication 66
Style 85

View more on Code Climate.

Comment on lines -1014 to +1043
- supported: true
- supported: false
type: OwnNamespace
- supported: true
- supported: false
Copy link
Contributor Author

@KevFan KevFan Apr 5, 2023

Choose a reason for hiding this comment

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

When adding conversion webhook, it looks like only AllNamespace install mode should be enabled, otherwise the bundle will fail validation

➜  3scale-operator git:(THREESCALE-8002) ✗ make bundle-validate
/Users/chfan/dev/3scale-operator/bin/operator-sdk bundle validate ./bundle
INFO[0000] Found annotations file                        bundle-dir=bundle container-tool=docker
INFO[0000] Could not find optional dependencies file     bundle-dir=bundle container-tool=docker
ERRO[0000] Error: Value : (3scale-operator.v0.0.1) only AllNamespaces InstallModeType is supported when conversionCRDs is present 
make: *** [bundle-validate] Error 1

This would likely have other implications for upgrades

Comment on lines +1068 to +1080
webhookdefinitions:
- admissionReviewVersions:
- v1beta1
- v1beta2
containerPort: 443
conversionCRDs:
- products.capabilities.3scale.net
deploymentName: threescale-operator-controller-manager-v2
generateName: cproducts.capabilities.3scale.net
sideEffects: None
targetPort: 9443
type: ConversionWebhook
webhookPath: /convert
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was added manually. For some reason, this is not generated and added automatically when generating the bundle. I still haven't found the reason for this, so if bundle are re-generated, this will be removed 🤔

@openshift-ci
Copy link

openshift-ci bot commented Apr 5, 2023

@KevFan: 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/test-unit 68b6a19 link true /test test-unit
ci/prow/test-e2e 68b6a19 link true /test test-e2e

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

@KevFan KevFan changed the title [WIP] THREESCALE-8002 [WIP] THREESCALE-8002 - feat: product v1beta2 Apr 12, 2023
@openshift-merge-robot
Copy link
Collaborator

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.

@eguzki
Copy link
Member

eguzki commented Apr 28, 2023

superseded by #813

Shall we close this?

@KevFan
Copy link
Contributor Author

KevFan commented May 2, 2023

superseded by #813

Shall we close this?

Yup, I'll close this 👍

@KevFan KevFan closed this May 2, 2023
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