Skip to content

Conversation

@ironcladlou
Copy link
Contributor

Add support for changing ingresscontroller load balancer scope. Handle this by
deleting the existing load balancer service and re-creating the service using
the desired scope.

/cc @openshift/sig-network-edge @mwoodson

Add support for changing ingresscontroller load balancer scope. Handle this by
deleting the existing load balancer service and re-creating the service using
the desired scope.
@openshift-ci-robot openshift-ci-robot requested review from a team and mwoodson April 27, 2020 15:52
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ironcladlou

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

The pull request process is described 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-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 27, 2020
echo "Release version: ${RELEASE_VERSION}"

IMAGE="${IMAGE}" RELEASE_VERSION="${RELEASE_VERSION}" ${DELVE:-} ./ingress-operator start $@
IMAGE="${IMAGE}" RELEASE_VERSION="${RELEASE_VERSION}" ${DELVE:-} ./ingress-operator start --image $IMAGE --release-version $RELEASE_VERSION --namespace openshift-ingress-operator --shutdown-file "" $@
Copy link
Contributor

Choose a reason for hiding this comment

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

Quote $@ as "$@".

}
// Detect changes to LB scope, which is something we can safely roll out.
specLB := ic.Status.EndpointPublishingStrategy.LoadBalancer
statusLB := effectiveStrategy.LoadBalancer
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe you want to swap specLB and statusLB var names.

func TestScopeChange(t *testing.T) {
platform := infraConfig.Status.Platform

supportedPlatforms := map[configv1.PlatformType]struct{}{
Copy link
Contributor

Choose a reason for hiding this comment

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

@ironcladlou is there a reason why GCP is not included?

@danehans
Copy link
Contributor

@Miciah other than a few nits, LGTM. I think the nits can be addressed as a follow-up, but I'll let you tag.

@gregsheremeta
Copy link

Hi! What's the status of this? Is it blocked, or can it be merged?

case desired != nil && current != nil:
// If switching from internal/external, delete and recreate the service.
if IsServiceInternal(desired) != IsServiceInternal(current) {
if _, err := r.finalizeLoadBalancerService(ci); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

@openshift-merge-robot
Copy link
Contributor

@ironcladlou: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-upgrade 37a2a38 link /test e2e-upgrade

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.

@Miciah
Copy link
Contributor

Miciah commented Oct 21, 2020

/close
Superseded by #472.

@openshift-ci-robot
Copy link
Contributor

@Miciah: Closed this PR.

Details

In response to this:

/close
Superseded by #472.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants