Fix service mismatch
What does this MR do and why?
This MR attempts to fix GitLab.com Chart Bump failing in staging due to... (gitlab-com/gl-infra/delivery#19793 - closed) by keeping the original loadBalancerIP
for the stateful set service and by introducing separate configuration for the external service.
How to test
git checkout v0.7.0
helm install gitlab-zoekt . --set service.type=LoadBalancer --set service.loadBalancerIP=$INTERNAL_IP
git checkout v0.8.0
helm upgrade gitlab-zoekt . --set service.type=LoadBalancer --set service.loadBalancerIP=$INTERNAL_IP
- Verify that it fails with
Service "gitlab-zoekt" is invalid: spec.clusterIPs[0]: Invalid value: []string{"None"}: may not change once set
as in GitLab.com Chart Bump failing in staging due to... (gitlab-com/gl-infra/delivery#19793 - closed) git checkout fix-service-mismatch
helm upgrade gitlab-zoekt . --set service.type=LoadBalancer --set service.loadBalancerIP=$INTERNAL_IP
Edited by Dmitry Gruzd