Skip to content

Commit

Permalink
fix: correctly update proxy service annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylvln committed May 23, 2023
1 parent bba4960 commit 40db68b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/shulker-operator/src/resources/proxyfleet/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ func (b *ProxyFleetResourceBuilder) ProxyFleetService() *ProxyFleetServiceBuilde
func (b *ProxyFleetServiceBuilder) Build() (client.Object, error) {
return &corev1.Service{
ObjectMeta: metav1.ObjectMeta{
Name: b.GetServiceName(),
Namespace: b.Instance.Namespace,
Annotations: b.Instance.Spec.Service.Annotations,
Labels: b.getLabels(),
Name: b.GetServiceName(),
Namespace: b.Instance.Namespace,
Labels: b.getLabels(),
},
}, nil
}

func (b *ProxyFleetServiceBuilder) Update(object client.Object) error {
service := object.(*corev1.Service)
service.ObjectMeta.Annotations = b.Instance.Spec.Service.Annotations

ports := []corev1.ServicePort{{
Name: "minecraft",
Expand Down

0 comments on commit 40db68b

Please sign in to comment.