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

chore: Refactoring #1236

Closed
wants to merge 6 commits into from
Closed

chore: Refactoring #1236

wants to merge 6 commits into from

Conversation

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
@tolusha
Copy link
Contributor Author

tolusha commented Dec 8, 2021

/retest

pkg/deploy/consolelink/consolelink.go Show resolved Hide resolved
pkg/deploy/server/server_reconciler.go Outdated Show resolved Hide resolved
pkg/deploy/server/default_reconciler.go Outdated Show resolved Hide resolved
pkg/deploy/server/default_reconciler.go Outdated Show resolved Hide resolved
@openshift-ci
Copy link

openshift-ci bot commented Dec 9, 2021

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mmorhun, tolusha

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

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
@openshift-ci
Copy link

openshift-ci bot commented Dec 9, 2021

New changes are detected. LGTM label has been removed.

@openshift-ci openshift-ci bot removed the lgtm label Dec 9, 2021
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
reconcileManager.RegisterReconciler(dashboard.NewDashboardReconciler())
reconcileManager.RegisterReconciler(gateway.NewGatewayReconciler())
reconcileManager.RegisterReconciler(server.NewCheServerReconciler())
reconcileManager.RegisterReconciler(consolelink.NewConsoleLinkReconciler())
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor: Maybe, we can check here if Openshift 4, then register reconsiler.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Make sense

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
@tolusha tolusha closed this Dec 9, 2021
@tolusha tolusha reopened this Dec 9, 2021
@openshift-ci
Copy link

openshift-ci bot commented Dec 9, 2021

@tolusha: 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/v8-ci-index 9c7bec0 link true /test v8-ci-index
ci/prow/v8-images 9c7bec0 link true /test v8-images
ci/prow/v9-stable-to-nightly 9c7bec0 link true /test v9-stable-to-nightly
ci/prow/v8-single-host-next-deployment 9c7bec0 link true /test v8-single-host-next-deployment
ci/prow/v8-che-behind-proxy 9c7bec0 link true /test v8-che-behind-proxy
ci/prow/v8-multi-host-next-deployment 9c7bec0 link true /test v8-multi-host-next-deployment
ci/prow/v8-e2e-all-namespaces-deployment 9c7bec0 link true /test v8-e2e-all-namespaces-deployment
ci/prow/v9-images 9c7bec0 link true /test v9-images
ci/prow/v9-multi-host-next-deployment 9c7bec0 link true /test v9-multi-host-next-deployment
ci/prow/v9-devworkspace-happy-path 9c7bec0 link true /test v9-devworkspace-happy-path
ci/prow/v9-single-host-nightly-deployment 9c7bec0 link true /test v9-single-host-nightly-deployment

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.

func (p *DefaultValuesReconciler) Reconcile(ctx *deploy.DeployContext) (reconcile.Result, bool, error) {
cheFlavor := deploy.DefaultCheFlavor(ctx.CheCluster)
cheNamespace := ctx.CheCluster.Namespace
if len(ctx.CheCluster.Spec.Server.CheFlavor) < 1 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Up to you, but for me looks better len(ctx.CheCluster.Spec.Server.CheFlavor) == 0

@tolusha tolusha closed this Dec 9, 2021
@tolusha tolusha deleted the refactor branch December 9, 2021 10:49
ctx.CheCluster.Spec.Server.CustomCheProperties[k] = v
}

err := ctx.ClusterAPI.Client.Update(context.TODO(), ctx.CheCluster)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can use deploy.UpdateCheCRSpec here.

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