Skip to content

drop old replica LB field and use useLoadBalancer for migration#3106

Open
FxKu wants to merge 12 commits into
masterfrom
new-old-lb
Open

drop old replica LB field and use useLoadBalancer for migration#3106
FxKu wants to merge 12 commits into
masterfrom
new-old-lb

Conversation

@FxKu

@FxKu FxKu commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

time to finally remove the old load balancer flags after it was marked as deprecated for years. We will temporarily use the useLoadBalancer field to created an internal NLB which we use to migrate clusters between different K8s infras

@FxKu FxKu added this to the 2.0.0 milestone Jun 10, 2026
@FxKu FxKu added the major Major feature changes or updates, e.g. feature rollout to a new country, new API calls. label Jun 10, 2026
Comment thread pkg/cluster/k8sres.go
Comment thread pkg/cluster/sync.go
return nil
}

func (c *Cluster) syncMigrationService() 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.

It would make sense to already pass a context here and use that in the relevant calls inside the function.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think in all our API calls we only use context.TODO() everywhere

@mikkeloscar

Copy link
Copy Markdown
Member

As a general comment, the migration service is very specific to Zalando EKS migration and Zalando Clusters, it's not reasuable by anyone from opensource and it needs to stay until the migration is complete and possible longer if we make migration a more general feature.

We have to understand and accept this overhead. The alternative solution would be to have the spilo-migrator create the service as part of the migration and bind it to the postgresql resource, that way the Zalando specific migration stuff would be located in one place outside of the postgres-operator.

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

Labels

major Major feature changes or updates, e.g. feature rollout to a new country, new API calls.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants