@@ -10,6 +10,7 @@ import (
1010 v1 "k8s.io/api/core/v1"
1111 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1212 "k8s.io/apimachinery/pkg/util/intstr"
13+ "k8s.io/utils/ptr"
1314 "sigs.k8s.io/controller-runtime/pkg/client"
1415)
1516
@@ -56,29 +57,33 @@ func (r FlagdService) GetResource(_ context.Context, flagd *api.Flagd) (client.O
5657 },
5758 Ports : []v1.ServicePort {
5859 {
59- Name : "flagd" ,
60- Port : int32 (r .FlagdConfig .FlagdPort ),
60+ AppProtocol : ptr .To ("grpc" ),
61+ Name : "flagd" ,
62+ Port : int32 (r .FlagdConfig .FlagdPort ),
6163 TargetPort : intstr.IntOrString {
6264 IntVal : int32 (r .FlagdConfig .FlagdPort ),
6365 },
6466 },
6567 {
66- Name : "ofrep" ,
67- Port : int32 (r .FlagdConfig .OFREPPort ),
68+ AppProtocol : ptr .To ("http" ),
69+ Name : "ofrep" ,
70+ Port : int32 (r .FlagdConfig .OFREPPort ),
6871 TargetPort : intstr.IntOrString {
6972 IntVal : int32 (r .FlagdConfig .OFREPPort ),
7073 },
7174 },
7275 {
73- Name : "sync" ,
74- Port : int32 (r .FlagdConfig .SyncPort ),
76+ AppProtocol : ptr .To ("grpc" ),
77+ Name : "sync" ,
78+ Port : int32 (r .FlagdConfig .SyncPort ),
7579 TargetPort : intstr.IntOrString {
7680 IntVal : int32 (r .FlagdConfig .SyncPort ),
7781 },
7882 },
7983 {
80- Name : "metrics" ,
81- Port : int32 (r .FlagdConfig .ManagementPort ),
84+ AppProtocol : ptr .To ("http" ),
85+ Name : "metrics" ,
86+ Port : int32 (r .FlagdConfig .ManagementPort ),
8287 TargetPort : intstr.IntOrString {
8388 IntVal : int32 (r .FlagdConfig .ManagementPort ),
8489 },
0 commit comments