pod logging

This commit is contained in:
rushtehrani
2020-01-09 15:08:25 -08:00
parent 32442b5b04
commit d124e587c1
8 changed files with 461 additions and 47 deletions

View File

@@ -166,6 +166,69 @@ func (m *WatchWorkflowRequest) GetName() string {
return ""
}
type GetWorkflowLogsRequest struct {
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
PodName string `protobuf:"bytes,3,opt,name=podName,proto3" json:"podName,omitempty"`
ContainerName string `protobuf:"bytes,4,opt,name=containerName,proto3" json:"containerName,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetWorkflowLogsRequest) Reset() { *m = GetWorkflowLogsRequest{} }
func (m *GetWorkflowLogsRequest) String() string { return proto.CompactTextString(m) }
func (*GetWorkflowLogsRequest) ProtoMessage() {}
func (*GetWorkflowLogsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_892c7f566756b0be, []int{3}
}
func (m *GetWorkflowLogsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetWorkflowLogsRequest.Unmarshal(m, b)
}
func (m *GetWorkflowLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetWorkflowLogsRequest.Marshal(b, m, deterministic)
}
func (m *GetWorkflowLogsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetWorkflowLogsRequest.Merge(m, src)
}
func (m *GetWorkflowLogsRequest) XXX_Size() int {
return xxx_messageInfo_GetWorkflowLogsRequest.Size(m)
}
func (m *GetWorkflowLogsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetWorkflowLogsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetWorkflowLogsRequest proto.InternalMessageInfo
func (m *GetWorkflowLogsRequest) GetNamespace() string {
if m != nil {
return m.Namespace
}
return ""
}
func (m *GetWorkflowLogsRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *GetWorkflowLogsRequest) GetPodName() string {
if m != nil {
return m.PodName
}
return ""
}
func (m *GetWorkflowLogsRequest) GetContainerName() string {
if m != nil {
return m.ContainerName
}
return ""
}
type ListWorkflowsRequest struct {
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
WorkflowTemplateUid string `protobuf:"bytes,2,opt,name=workflowTemplateUid,proto3" json:"workflowTemplateUid,omitempty"`
@@ -178,7 +241,7 @@ func (m *ListWorkflowsRequest) Reset() { *m = ListWorkflowsRequest{} }
func (m *ListWorkflowsRequest) String() string { return proto.CompactTextString(m) }
func (*ListWorkflowsRequest) ProtoMessage() {}
func (*ListWorkflowsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_892c7f566756b0be, []int{3}
return fileDescriptor_892c7f566756b0be, []int{4}
}
func (m *ListWorkflowsRequest) XXX_Unmarshal(b []byte) error {
@@ -225,7 +288,7 @@ func (m *ListWorkflowsResponse) Reset() { *m = ListWorkflowsResponse{} }
func (m *ListWorkflowsResponse) String() string { return proto.CompactTextString(m) }
func (*ListWorkflowsResponse) ProtoMessage() {}
func (*ListWorkflowsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_892c7f566756b0be, []int{4}
return fileDescriptor_892c7f566756b0be, []int{5}
}
func (m *ListWorkflowsResponse) XXX_Unmarshal(b []byte) error {
@@ -260,6 +323,45 @@ func (m *ListWorkflowsResponse) GetWorkflows() []*Workflow {
return nil
}
type LogEntry struct {
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LogEntry) Reset() { *m = LogEntry{} }
func (m *LogEntry) String() string { return proto.CompactTextString(m) }
func (*LogEntry) ProtoMessage() {}
func (*LogEntry) Descriptor() ([]byte, []int) {
return fileDescriptor_892c7f566756b0be, []int{6}
}
func (m *LogEntry) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LogEntry.Unmarshal(m, b)
}
func (m *LogEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LogEntry.Marshal(b, m, deterministic)
}
func (m *LogEntry) XXX_Merge(src proto.Message) {
xxx_messageInfo_LogEntry.Merge(m, src)
}
func (m *LogEntry) XXX_Size() int {
return xxx_messageInfo_LogEntry.Size(m)
}
func (m *LogEntry) XXX_DiscardUnknown() {
xxx_messageInfo_LogEntry.DiscardUnknown(m)
}
var xxx_messageInfo_LogEntry proto.InternalMessageInfo
func (m *LogEntry) GetContent() string {
if m != nil {
return m.Content
}
return ""
}
type Workflow struct {
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
@@ -275,7 +377,7 @@ func (m *Workflow) Reset() { *m = Workflow{} }
func (m *Workflow) String() string { return proto.CompactTextString(m) }
func (*Workflow) ProtoMessage() {}
func (*Workflow) Descriptor() ([]byte, []int) {
return fileDescriptor_892c7f566756b0be, []int{5}
return fileDescriptor_892c7f566756b0be, []int{7}
}
func (m *Workflow) XXX_Unmarshal(b []byte) error {
@@ -343,7 +445,7 @@ func (m *Parameter) Reset() { *m = Parameter{} }
func (m *Parameter) String() string { return proto.CompactTextString(m) }
func (*Parameter) ProtoMessage() {}
func (*Parameter) Descriptor() ([]byte, []int) {
return fileDescriptor_892c7f566756b0be, []int{6}
return fileDescriptor_892c7f566756b0be, []int{8}
}
func (m *Parameter) XXX_Unmarshal(b []byte) error {
@@ -382,8 +484,10 @@ func init() {
proto.RegisterType((*CreateWorkflowRequest)(nil), "api.CreateWorkflowRequest")
proto.RegisterType((*GetWorkflowRequest)(nil), "api.GetWorkflowRequest")
proto.RegisterType((*WatchWorkflowRequest)(nil), "api.WatchWorkflowRequest")
proto.RegisterType((*GetWorkflowLogsRequest)(nil), "api.GetWorkflowLogsRequest")
proto.RegisterType((*ListWorkflowsRequest)(nil), "api.ListWorkflowsRequest")
proto.RegisterType((*ListWorkflowsResponse)(nil), "api.ListWorkflowsResponse")
proto.RegisterType((*LogEntry)(nil), "api.LogEntry")
proto.RegisterType((*Workflow)(nil), "api.Workflow")
proto.RegisterType((*Parameter)(nil), "api.Parameter")
}
@@ -391,49 +495,55 @@ func init() {
func init() { proto.RegisterFile("workflow.proto", fileDescriptor_892c7f566756b0be) }
var fileDescriptor_892c7f566756b0be = []byte{
// 660 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x96, 0xdf, 0x4e, 0xd4, 0x40,
0x14, 0xc6, 0x33, 0x2c, 0x4b, 0xd8, 0x43, 0x40, 0x72, 0x58, 0x60, 0x6d, 0x30, 0xe2, 0x18, 0x13,
0x10, 0xd2, 0xc2, 0x2a, 0x89, 0xc1, 0x98, 0x68, 0x88, 0xe0, 0x05, 0x17, 0xa6, 0xfe, 0x21, 0xe1,
0x46, 0x86, 0x65, 0xc0, 0xc6, 0xa5, 0xad, 0x9d, 0xe9, 0x72, 0x41, 0xf6, 0x46, 0x1f, 0x41, 0xef,
0x7c, 0x11, 0x13, 0xef, 0x7c, 0x05, 0x5e, 0xc1, 0xc4, 0xd7, 0x30, 0x3b, 0xed, 0x0c, 0xdb, 0x6e,
0xd5, 0x6e, 0xf6, 0x6e, 0xfe, 0x9c, 0x7e, 0xe7, 0xf7, 0xcd, 0x7c, 0x03, 0x0b, 0x33, 0x17, 0x41,
0xf4, 0xe1, 0xb4, 0x1d, 0x5c, 0xd8, 0x61, 0x14, 0xc8, 0x00, 0x2b, 0x2c, 0xf4, 0xac, 0xa5, 0xb3,
0x20, 0x38, 0x6b, 0x73, 0x87, 0x85, 0x9e, 0xc3, 0x7c, 0x3f, 0x90, 0x4c, 0x7a, 0x81, 0x2f, 0x92,
0x12, 0x6b, 0x51, 0x7f, 0xf2, 0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e9, 0xa3, 0xbb, 0x8a, 0xe8, 0x29, 0x5d, 0xff, 0x3f, 0x91, 0xf9, 0xe3,
0x28, 0xb6, 0x07, 0x32, 0x8b, 0x3f, 0x09, 0xdc, 0x2a, 0x06, 0x78, 0xcb, 0x23, 0xe1, 0x05, 0xfe,
0x28, 0x90, 0xa7, 0x0a, 0xf2, 0x88, 0xee, 0x0f, 0x03, 0xe9, 0x5c, 0xe6, 0x21, 0xed, 0xd8, 0x3b,
0xe9, 0x3a, 0x9d, 0x84, 0xa7, 0xc8, 0xc4, 0x15, 0x81, 0xb9, 0xbe, 0xa0, 0x9a, 0xf5, 0xdb, 0xf9,
0x08, 0x97, 0xe4, 0xfe, 0x4c, 0x14, 0x78, 0x17, 0x9b, 0xc3, 0x81, 0xf7, 0x38, 0x0f, 0xf7, 0xf0,
0xf9, 0xf0, 0x5f, 0x19, 0x77, 0xce, 0x65, 0x3a, 0xea, 0xe2, 0x77, 0x02, 0x4b, 0xfd, 0xb1, 0xcf,
0x5d, 0x8c, 0xc0, 0x95, 0x81, 0x97, 0x91, 0x2f, 0xd1, 0x3e, 0x57, 0x4b, 0x54, 0xa6, 0x4f, 0x6a,
0x47, 0x59, 0x7f, 0x82, 0x8f, 0x47, 0x30, 0x81, 0x5f, 0x49, 0xf6, 0x9f, 0x84, 0xee, 0x26, 0xf0,
0xce, 0x5f, 0x49, 0x0c, 0x2c, 0xfd, 0x57, 0x49, 0x4a, 0xf9, 0x50, 0x51, 0xda, 0x38, 0x54, 0xfc,
0x8f, 0x27, 0xd4, 0xaf, 0x83, 0x07, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x32, 0xe7, 0x89, 0x2c,
0x6b, 0x08, 0x00, 0x00,
// 767 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x96, 0xdf, 0x4f, 0x13, 0x4b,
0x14, 0xc7, 0x33, 0x94, 0x72, 0xe9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, 0x09, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -453,6 +563,7 @@ type WorkflowServiceClient interface {
GetWorkflow(ctx context.Context, in *GetWorkflowRequest, opts ...grpc.CallOption) (*Workflow, error)
ListWorkflows(ctx context.Context, in *ListWorkflowsRequest, opts ...grpc.CallOption) (*ListWorkflowsResponse, error)
WatchWorkflow(ctx context.Context, in *WatchWorkflowRequest, opts ...grpc.CallOption) (WorkflowService_WatchWorkflowClient, error)
GetWorkflowLogs(ctx context.Context, in *GetWorkflowLogsRequest, opts ...grpc.CallOption) (WorkflowService_GetWorkflowLogsClient, error)
CreateWorkflowTemplate(ctx context.Context, in *CreateWorkflowTemplateRequest, opts ...grpc.CallOption) (*WorkflowTemplate, error)
CreateWorkflowTemplateVersion(ctx context.Context, in *CreateWorkflowTemplateRequest, opts ...grpc.CallOption) (*WorkflowTemplate, error)
GetWorkflowTemplate(ctx context.Context, in *GetWorkflowTemplateRequest, opts ...grpc.CallOption) (*WorkflowTemplate, error)
@@ -527,6 +638,38 @@ func (x *workflowServiceWatchWorkflowClient) Recv() (*Workflow, error) {
return m, nil
}
func (c *workflowServiceClient) GetWorkflowLogs(ctx context.Context, in *GetWorkflowLogsRequest, opts ...grpc.CallOption) (WorkflowService_GetWorkflowLogsClient, error) {
stream, err := c.cc.NewStream(ctx, &_WorkflowService_serviceDesc.Streams[1], "/api.WorkflowService/GetWorkflowLogs", opts...)
if err != nil {
return nil, err
}
x := &workflowServiceGetWorkflowLogsClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type WorkflowService_GetWorkflowLogsClient interface {
Recv() (*LogEntry, error)
grpc.ClientStream
}
type workflowServiceGetWorkflowLogsClient struct {
grpc.ClientStream
}
func (x *workflowServiceGetWorkflowLogsClient) Recv() (*LogEntry, error) {
m := new(LogEntry)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *workflowServiceClient) CreateWorkflowTemplate(ctx context.Context, in *CreateWorkflowTemplateRequest, opts ...grpc.CallOption) (*WorkflowTemplate, error) {
out := new(WorkflowTemplate)
err := c.cc.Invoke(ctx, "/api.WorkflowService/CreateWorkflowTemplate", in, out, opts...)
@@ -579,6 +722,7 @@ type WorkflowServiceServer interface {
GetWorkflow(context.Context, *GetWorkflowRequest) (*Workflow, error)
ListWorkflows(context.Context, *ListWorkflowsRequest) (*ListWorkflowsResponse, error)
WatchWorkflow(*WatchWorkflowRequest, WorkflowService_WatchWorkflowServer) error
GetWorkflowLogs(*GetWorkflowLogsRequest, WorkflowService_GetWorkflowLogsServer) error
CreateWorkflowTemplate(context.Context, *CreateWorkflowTemplateRequest) (*WorkflowTemplate, error)
CreateWorkflowTemplateVersion(context.Context, *CreateWorkflowTemplateRequest) (*WorkflowTemplate, error)
GetWorkflowTemplate(context.Context, *GetWorkflowTemplateRequest) (*WorkflowTemplate, error)
@@ -602,6 +746,9 @@ func (*UnimplementedWorkflowServiceServer) ListWorkflows(ctx context.Context, re
func (*UnimplementedWorkflowServiceServer) WatchWorkflow(req *WatchWorkflowRequest, srv WorkflowService_WatchWorkflowServer) error {
return status.Errorf(codes.Unimplemented, "method WatchWorkflow not implemented")
}
func (*UnimplementedWorkflowServiceServer) GetWorkflowLogs(req *GetWorkflowLogsRequest, srv WorkflowService_GetWorkflowLogsServer) error {
return status.Errorf(codes.Unimplemented, "method GetWorkflowLogs not implemented")
}
func (*UnimplementedWorkflowServiceServer) CreateWorkflowTemplate(ctx context.Context, req *CreateWorkflowTemplateRequest) (*WorkflowTemplate, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateWorkflowTemplate not implemented")
}
@@ -697,6 +844,27 @@ func (x *workflowServiceWatchWorkflowServer) Send(m *Workflow) error {
return x.ServerStream.SendMsg(m)
}
func _WorkflowService_GetWorkflowLogs_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(GetWorkflowLogsRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(WorkflowServiceServer).GetWorkflowLogs(m, &workflowServiceGetWorkflowLogsServer{stream})
}
type WorkflowService_GetWorkflowLogsServer interface {
Send(*LogEntry) error
grpc.ServerStream
}
type workflowServiceGetWorkflowLogsServer struct {
grpc.ServerStream
}
func (x *workflowServiceGetWorkflowLogsServer) Send(m *LogEntry) error {
return x.ServerStream.SendMsg(m)
}
func _WorkflowService_CreateWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateWorkflowTemplateRequest)
if err := dec(in); err != nil {
@@ -830,6 +998,11 @@ var _WorkflowService_serviceDesc = grpc.ServiceDesc{
Handler: _WorkflowService_WatchWorkflow_Handler,
ServerStreams: true,
},
{
StreamName: "GetWorkflowLogs",
Handler: _WorkflowService_GetWorkflowLogs_Handler,
ServerStreams: true,
},
},
Metadata: "workflow.proto",
}