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

Promote ConsolePlugin API version to v1 #440

Conversation

ciiay
Copy link
Contributor

@ciiay ciiay commented Feb 15, 2023

What type of PR is this?

/kind bug

What does this PR do / why we need it:
ConsolePlugin API has been promoted to v1, we need to update the console plugin CR to pick up the changes.
It's related to GITOPS-2646 to enable i18n in upgraded version.

Which issue(s) this PR fixes:

Fixes GITOPS-2646

Test acceptance criteria:

  • Unit Test
  • E2E Test

How to test changes / Special notes to the reviewer:
Test ConsolePlugin works.

@ciiay ciiay force-pushed the gitops-2646-update-dynamic-plugin-cr branch from 2439f4f to efa6ce5 Compare February 15, 2023 15:56
@openshift-ci openshift-ci bot added the kind/bug Something isn't working label Feb 15, 2023
@openshift-ci openshift-ci bot requested a review from wtam2018 February 15, 2023 15:59
@ciiay
Copy link
Contributor Author

ciiay commented Feb 15, 2023

/retest

@ciiay
Copy link
Contributor Author

ciiay commented Mar 1, 2023

/retest

@varshab1210
Copy link
Member

/test v4.10-kuttl-parallel v4.9-kuttl-parallel

@varshab1210
Copy link
Member

/test v4.10-kuttl-sequential v4.8-kuttl-sequential

@varshab1210
Copy link
Member

/test v4.10-kuttl-sequential v4.8-kuttl-sequential v4.9-kuttl-parallel

1 similar comment
@varshab1210
Copy link
Member

/test v4.10-kuttl-sequential v4.8-kuttl-sequential v4.9-kuttl-parallel

@varshab1210
Copy link
Member

/test v4.10-kuttl-sequential

6 similar comments
@varshab1210
Copy link
Member

/test v4.10-kuttl-sequential

@ciiay
Copy link
Contributor Author

ciiay commented Mar 6, 2023

/test v4.10-kuttl-sequential

@varshab1210
Copy link
Member

/test v4.10-kuttl-sequential

@ciiay
Copy link
Contributor Author

ciiay commented Mar 7, 2023

/test v4.10-kuttl-sequential

@ciiay
Copy link
Contributor Author

ciiay commented Mar 8, 2023

/test v4.10-kuttl-sequential

@ciiay
Copy link
Contributor Author

ciiay commented Mar 9, 2023

/test v4.10-kuttl-sequential

@ciiay
Copy link
Contributor Author

ciiay commented Mar 9, 2023

/retest

1 similar comment
@varshab1210
Copy link
Member

/retest

@ciiay
Copy link
Contributor Author

ciiay commented Mar 9, 2023

/retest-required

@ciiay
Copy link
Contributor Author

ciiay commented Mar 10, 2023

/test v4.9-kuttl-parallel

@ciiay
Copy link
Contributor Author

ciiay commented Mar 20, 2023

/retest-required

@varshab1210
Copy link
Member

/retest

@varshab1210
Copy link
Member

/test all

@varshab1210
Copy link
Member

/retest

@varshab1210
Copy link
Member

/retest

@ciiay
Copy link
Contributor Author

ciiay commented Apr 28, 2023

/retest

@ciiay
Copy link
Contributor Author

ciiay commented Apr 28, 2023

/test v4.12-kuttl-sequential

@openshift-ci
Copy link

openshift-ci bot commented May 25, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign iam-veeramalla 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

@jaideepr97 jaideepr97 added kind/enhancement New feature or request and removed kind/bug Something isn't working labels May 25, 2023
@@ -113,7 +112,6 @@ func main() {
registerComponentOrExit(mgr, operatorsv1alpha1.AddToScheme)
registerComponentOrExit(mgr, argoapi.AddToScheme)
registerComponentOrExit(mgr, configv1.AddToScheme)
registerComponentOrExit(mgr, consolepluginv1.AddToScheme)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@ciiay looks like we accidentally removed the line instead of updating it
if this line is not present the gitops operator will not be able to create the console plugin deployment at all

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jaideepr97 Thanks for the review. This line was removed purposely. Because after updating to v1, the console plugin API is the same as console API, see Line 40, 41. And the console.AddToScheme is already there in L 109
registerComponentOrExit(mgr, console.AddToScheme)

Copy link
Collaborator

Choose a reason for hiding this comment

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

oh, interesting that we had both to begin with
thanks for clearing that up

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jaideepr97 Because when we started console plugin the plugin SDK feature was only on the console/v1alpha1 version, then later they updated it and the new feature in v1alpha1 got merged into the console/v1.

@ciiay ciiay requested a review from jaideepr97 May 25, 2023 17:31
@varshab1210
Copy link
Member

/test v4.11-kuttl-sequential v4.10-kuttl-sequential

@varshab1210
Copy link
Member

@ciiay @jaideepr97 Even though I mentioned earlier 1-042_validate_status_host is not a concern, now I feel that if we merge this PR, it will introduce this error in other PRs too. Do you think this code change has something to do with 1-042_validate_status_host test?

@ciiay
Copy link
Contributor Author

ciiay commented May 25, 2023

/test v4.12-kuttl-sequential

@reginapizza
Copy link
Contributor

we tried looking at these test failures and we're pretty confident it's not related to this PR

@varshab1210
Copy link
Member

we tried looking at these test failures and we're pretty confident it's not related to this PR

1-083_validate_apps_in_any_namespace and 1-050_validate_sso_config test failures can be ignored. But if you look at this board, 1-042_validate_status_host has been only failing for https://github.com/redhat-developer/gitops-operator/pull//481 and this PR which contain the same code changes

@varshab1210
Copy link
Member

/test v4.11-kuttl-sequential

@openshift-ci
Copy link

openshift-ci bot commented May 26, 2023

@ciiay: 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/v4.9-kuttl-parallel fbe4697 link true /test v4.9-kuttl-parallel
ci/prow/v4.8-kuttl-sequential fbe4697 link true /test v4.8-kuttl-sequential
ci/prow/v4.8-kuttl-parallel fbe4697 link true /test v4.8-kuttl-parallel
ci/prow/v4.9-kuttl-sequential fbe4697 link true /test v4.9-kuttl-sequential
ci/prow/v4.12-kuttl-sequential efb5627 link true /test v4.12-kuttl-sequential
ci/prow/v4.10-kuttl-sequential efb5627 link unknown /test v4.10-kuttl-sequential
ci/prow/v4.11-kuttl-sequential efb5627 link true /test v4.11-kuttl-sequential

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.

@ciiay
Copy link
Contributor Author

ciiay commented May 26, 2023

@ciiay
Copy link
Contributor Author

ciiay commented May 26, 2023

/test v4.12-kuttl-sequential

@iam-veeramalla
Copy link
Collaborator

Merging as administrator against the known failures

@iam-veeramalla iam-veeramalla merged commit 15762cf into redhat-developer:master May 26, 2023
ciiay pushed a commit to ciiay/gitops-operator that referenced this pull request May 26, 2023
…-dynamic-plugin-cr

Promote ConsolePlugin API version to v1
iam-veeramalla added a commit that referenced this pull request May 26, 2023
Merge pull request #440 from ciiay/gitops-2646-update-dynamic-plugin-cr
trdoyle81 pushed a commit to trdoyle81/gitops-operator that referenced this pull request Aug 13, 2024
…-dynamic-plugin-cr

Promote ConsolePlugin API version to v1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants