Skip to content

CONSOLE 2919: code review adjustments for managed cluster action/views#617

Closed
florkbr wants to merge 1 commit intoopenshift:master-multi-cluster-featurefrom
florkbr:2919-oauth-jakub-code-review
Closed

CONSOLE 2919: code review adjustments for managed cluster action/views#617
florkbr wants to merge 1 commit intoopenshift:master-multi-cluster-featurefrom
florkbr:2919-oauth-jakub-code-review

Conversation

@florkbr
Copy link
Copy Markdown
Contributor

@florkbr florkbr commented Dec 13, 2021

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Dec 13, 2021

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: florkbr
To complete the pull request process, please assign bparees after the PR has been reviewed.
You can assign the PR to them by writing /assign @bparees in a comment when ready.

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

Details 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

@openshift-ci openshift-ci Bot requested a review from spadgett December 13, 2021 21:44
@florkbr
Copy link
Copy Markdown
Contributor Author

florkbr commented Dec 14, 2021

make verify failed due to build tool issue: openshift/build-machinery-go#58

@florkbr
Copy link
Copy Markdown
Contributor Author

florkbr commented Dec 14, 2021

/retest

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Dec 14, 2021

@florkbr: 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/verify b957d6a link true /test verify
ci/prow/e2e-aws-single-node b957d6a link false /test e2e-aws-single-node

Full PR test history. Your PR dashboard.

Details

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.

@florkbr
Copy link
Copy Markdown
Contributor Author

florkbr commented Dec 14, 2021

See #619 for prow/verify job fix.

Copy link
Copy Markdown
Member

@TheRealJon TheRealJon left a comment

Choose a reason for hiding this comment

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

This is going to conflict heavily with #612. I've commented on most of the obvious conflicts that I saw. I think you can probably revert the changes to all of the following files since #612 has duplicate or similar updates:

  • pkg/console/operator/sync_v400.go
  • pkg/console/subresource/configmap/configmap.go
  • pkg/console/subresource/configmap/configmap_test.go

There will also be conflicts with the file renames in pkg/console/subresource/managedclusterview and pkg/console/subresource/managedclusteraction. See my comments on that. I think we should keep those as separate modules per API, but you might want to revert your changes in this PR regarding those modules, then wait for #612 to merge and make any file name updates after rebasing.

Comment on lines +75 to +76
canMountManagedClusterConfig, managedClusterConfigErrReason, managedClusterConfigErr := co.SyncManagedClusterConfigMap(ctx)
statusHandler.AddConditions(status.HandleProgressingOrDegraded("ManagedClusterConfigSync", managedClusterConfigErrReason, managedClusterConfigErr))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I address conditionally adding the managed cluster config file name to the console config in #612.

activeConsoleRoute *routev1.Route,
useDefaultCAFile bool,
inactivityTimeoutSeconds int,
pluginsEndpoingMap map[string]string) (consoleConfigmap *corev1.ConfigMap, unsupportedOverridesHaveMerged bool, err error) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I have implemented similar changes to this file and the related unit test file in #612.

kind: ConfigMap
metadata:
namespace: openshift-config-managed
namespace: openshift-console
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Addressed in #612

kind: ConfigMap
metadata:
namespace: openshift-config-managed
namespace: openshift-console
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Addressed in #612

@@ -1,4 +1,4 @@
package managedclusterview
package managedcluster
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'd prefer to keep MCV/MCA subresource modules separated by kind.

@florkbr
Copy link
Copy Markdown
Contributor Author

florkbr commented Mar 2, 2022

Closing as Jon delivered these in #630. Thanks Jon!

@florkbr florkbr closed this Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants