Skip to content

Commit f150d1c

Browse files
committed
Polish up body-based routing server + add health check server
1 parent 15d1216 commit f150d1c

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

cmd/body-based-routing/health.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ func (s *healthServer) Check(ctx context.Context, in *healthPb.HealthCheckReques
3737

3838
func (s *healthServer) Watch(in *healthPb.HealthCheckRequest, srv healthPb.Health_WatchServer) error {
3939
return status.Error(codes.Unimplemented, "Watch is not implemented")
40-
}
40+
}

cmd/body-based-routing/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,4 @@ func registerHealthServer(mgr manager.Manager, logger logr.Logger, port int) err
119119
func initLogging(opts *zap.Options) {
120120
logger := zap.New(zap.UseFlagOptions(opts), zap.RawZapOpts(uberzap.AddCaller()))
121121
ctrl.SetLogger(logger)
122-
}
122+
}

pkg/body-based-routing/handlers/response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ func (s *Server) HandleResponseTrailers(trailers *eppb.HttpTrailers) (*eppb.Proc
4545
ResponseTrailers: &eppb.TrailersResponse{},
4646
},
4747
}, nil
48-
}
48+
}

pkg/body-based-routing/handlers/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ func (s *Server) Process(srv extProcPb.ExternalProcessor_ProcessServer) error {
8787
return status.Errorf(codes.Unknown, "failed to send response back to Envoy: %v", err)
8888
}
8989
}
90-
}
90+
}

pkg/body-based-routing/server/runserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,4 @@ func createSelfSignedTLSCertificate(logger logr.Logger) (tls.Certificate, error)
118118
keyBytes := pem.EncodeToMemory(&pem.Block{Type: "PRIVATE KEY", Bytes: privBytes})
119119

120120
return tls.X509KeyPair(certBytes, keyBytes)
121-
}
121+
}

0 commit comments

Comments
 (0)