Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for HealthCheckRequest (0.28 sec)

  1. pkg/probe/grpc/grpc_test.go

    }
    
    type successServerMock struct {
    }
    
    func (s successServerMock) Check(context.Context, *grpchealth.HealthCheckRequest) (*grpchealth.HealthCheckResponse, error) {
    	return &grpchealth.HealthCheckResponse{
    		Status: grpchealth.HealthCheckResponse_SERVING,
    	}, nil
    }
    
    func (s successServerMock) Watch(_ *grpchealth.HealthCheckRequest, stream grpchealth.Health_WatchServer) error {
    	return stream.Send(&grpchealth.HealthCheckResponse{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 20 00:23:53 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  2. security/pkg/nodeagent/test/mock/caserver.go

    }
    
    // Check handles health check requests.
    func (s *CAServer) Check(ctx context.Context, in *ghc.HealthCheckRequest) (*ghc.HealthCheckResponse, error) {
    	return &ghc.HealthCheckResponse{
    		Status: ghc.HealthCheckResponse_SERVING,
    	}, nil
    }
    
    // Watch handles health check streams.
    func (s *CAServer) Watch(_ *ghc.HealthCheckRequest, _ ghc.Health_WatchServer) error {
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. pkg/probe/grpc/grpc.go

    		}
    	}
    
    	defer func() {
    		_ = conn.Close()
    	}()
    
    	client := grpchealth.NewHealthClient(conn)
    
    	resp, err := client.Check(metadata.NewOutgoingContext(ctx, make(metadata.MD)), &grpchealth.HealthCheckRequest{
    		Service: service,
    	})
    
    	if err != nil {
    		stat, ok := status.FromError(err)
    		if ok {
    			switch stat.Code() {
    			case codes.Unimplemented:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 25 19:28:03 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. pkg/kube/apimirror/probe.go

    type GRPCAction struct {
    	// Port number of the gRPC service. Number must be in the range 1 to 65535.
    	Port int32 `json:"port" protobuf:"bytes,1,opt,name=port"`
    
    	// Service is the name of the service to place in the gRPC HealthCheckRequest
    	// (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
    	//
    	// If this is not specified, the default behavior is defined by gRPC.
    	// +optional
    	// +default=""
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. pilot/cmd/pilot-agent/status/server.go

    	}
    	defer conn.Close()
    
    	var svc string
    	if prober.GRPC.Service != nil {
    		svc = *prober.GRPC.Service
    	}
    	grpcClient := grpcHealth.NewHealthClient(conn)
    	resp, err := grpcClient.Check(ctx, &grpcHealth.HealthCheckRequest{
    		Service: svc,
    	})
    	// the error handling is referenced from https://github.com/kubernetes/kubernetes/blob/v1.23.1/pkg/probe/grpc/grpc.go#L88-L106
    	if err != nil {
    		status, ok := grpcStatus.FromError(err)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  6. common-protos/k8s.io/api/core/v1/generated.proto

    }
    
    message GRPCAction {
      // Port number of the gRPC service. Number must be in the range 1 to 65535.
      optional int32 port = 1;
    
      // Service is the name of the service to place in the gRPC HealthCheckRequest
      // (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
      //
      // If this is not specified, the default behavior is defined by gRPC.
      // +optional
      // +default=""
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 255.8K bytes
    - Viewed (0)
  7. pkg/apis/core/types.go

    }
    
    type GRPCAction struct {
    	// Port number of the gRPC service.
    	// Note: Number must be in the range 1 to 65535.
    	Port int32
    
    	// Service is the name of the service to place in the gRPC HealthCheckRequest
    	// (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
    	//
    	// If this is not specified, the default behavior is to probe the server's overall health status.
    	// +optional
    	Service *string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 268.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/core/v1/types_swagger_doc_generated.go

    }
    
    var map_GRPCAction = map[string]string{
    	"port":    "Port number of the gRPC service. Number must be in the range 1 to 65535.",
    	"service": "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.",
    }
    
    func (GRPCAction) SwaggerDoc() map[string]string {
    	return map_GRPCAction
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 254.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/core/v1/generated.proto

    }
    
    message GRPCAction {
      // Port number of the gRPC service. Number must be in the range 1 to 65535.
      optional int32 port = 1;
    
      // Service is the name of the service to place in the gRPC HealthCheckRequest
      // (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
      //
      // If this is not specified, the default behavior is defined by gRPC.
      // +optional
      // +default=""
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 280.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/core/v1/types.go

    	// Port number of the gRPC service. Number must be in the range 1 to 65535.
    	Port int32 `json:"port" protobuf:"bytes,1,opt,name=port"`
    
    	// Service is the name of the service to place in the gRPC HealthCheckRequest
    	// (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
    	//
    	// If this is not specified, the default behavior is defined by gRPC.
    	// +optional
    	// +default=""
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 390.8K bytes
    - Viewed (0)
Back to top