Skip to content

Commit d43dbac

Browse files
authored
Allow for empty --service-type on pgo create pgbouncer
This was an oversight in the logic for allowing a default pgBouncer Service Type to be set. Issue: [ch10065]
1 parent e4666c1 commit d43dbac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/apiserver/pgbouncerservice/pgbouncerimpl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func CreatePgbouncer(request *msgs.CreatePgbouncerRequest, ns, pgouser string) m
116116
resp.Status.Msg = fmt.Sprintf("invalid service type %q", request.ServiceType)
117117
return resp
118118
case v1.ServiceTypeClusterIP, v1.ServiceTypeNodePort,
119-
v1.ServiceTypeLoadBalancer, v1.ServiceTypeExternalName:
119+
v1.ServiceTypeLoadBalancer, v1.ServiceTypeExternalName, "":
120120
cluster.Spec.PgBouncer.ServiceType = request.ServiceType
121121
}
122122

0 commit comments

Comments
 (0)