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

Don't replace Service on .spec.type change #1139

Merged
merged 4 commits into from
May 20, 2020

Conversation

lblackstone
Copy link
Member

Proposed changes

Previously, we replaced Service resources if the
.spec.type field changed. It appears that k8s can
update this field in place, so switch to an update.

Note: I tested this manually by creating a Service and then using kubectl edit to change the Service between types (LoadBalancer, ClusterIP, NodePort). In each case, k8s was able to update the Service.

Related issues (optional)

Fixes #1133

@lblackstone lblackstone requested a review from metral May 20, 2020 18:06
Previously, we replaced Service resources if the
.spec.type field changed. It appears that k8s can
update this field in place, so switch to an update.
@lblackstone lblackstone force-pushed the lblackstone/service-type-update branch from 6488ae0 to df8feb8 Compare May 20, 2020 18:08
@lblackstone lblackstone marked this pull request as ready for review May 20, 2020 18:08
@lblackstone lblackstone merged commit fd8ccd8 into master May 20, 2020
@pulumi-bot pulumi-bot deleted the lblackstone/service-type-update branch May 20, 2020 23:48
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.

Service: change of spec.type should be "update", not "replace"
2 participants