Remove obsolete port specification
@@ -3,7 +3,6 @@ package pxc
import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- "k8s.io/apimachinery/pkg/util/intstr"
api "github.com/percona/percona-xtradb-cluster-operator/pkg/apis/pxc/v1"
)
@@ -99,20 +98,10 @@ func NewServiceProxySQLUnready(cr *api.PerconaXtraDBCluster) *corev1.Service {
{
Port: 3306,
Name: "mysql",
- Protocol: corev1.ProtocolTCP,
- TargetPort: intstr.IntOrString{
- Type: intstr.Int,
- IntVal: 3306,
- },
},
{
Port: 6032,
Name: "proxyadm",
- Protocol: corev1.ProtocolTCP,
- TargetPort: intstr.IntOrString{
- Type: intstr.Int,
- IntVal: 6032,
- },
},
},
ClusterIP: "None",
@@ -151,11 +140,6 @@ func NewServiceProxySQL(cr *api.PerconaXtraDBCluster) *corev1.Service {
{
Port: 3306,
Name: "mysql",
- Protocol: corev1.ProtocolTCP,
- TargetPort: intstr.IntOrString{
- Type: intstr.Int,
- IntVal: 3306,
- },
},
},
Selector: map[string]string{
