diff --git a/go.mod b/go.mod index c930b2146d..534030334e 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,6 @@ require ( google.golang.org/genproto v0.0.0-20201110150050-8816d57aaa9a google.golang.org/grpc v1.33.1 google.golang.org/grpc/examples v0.0.0-20210331235824-f6bb3972ed15 // indirect - google.golang.org/protobuf v1.25.0 gopkg.in/yaml.v2 v2.4.0 gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect k8s.io/api v0.20.4 diff --git a/pkg/apiclient/rollout/rollout.pb.go b/pkg/apiclient/rollout/rollout.pb.go index 745c166181..7061d483a5 100644 --- a/pkg/apiclient/rollout/rollout.pb.go +++ b/pkg/apiclient/rollout/rollout.pb.go @@ -8,11 +8,11 @@ import ( fmt "fmt" v1alpha1 "github.com/argoproj/argo-rollouts/pkg/apis/rollouts/v1alpha1" proto "github.com/gogo/protobuf/proto" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - emptypb "google.golang.org/protobuf/types/known/emptypb" io "io" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" math "math" @@ -332,6 +332,7 @@ func (m *RestartRolloutRequest) GetNamespace() string { type PromoteRolloutRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + Full bool `protobuf:"varint,3,opt,name=full,proto3" json:"full,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -384,6 +385,13 @@ func (m *PromoteRolloutRequest) GetNamespace() string { return "" } +func (m *PromoteRolloutRequest) GetFull() bool { + if m != nil { + return m.Full + } + return false +} + type AbortRolloutRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` @@ -1470,104 +1478,105 @@ func init() { } var fileDescriptor_99101d942e8912a7 = []byte{ - // 1550 bytes of a gzipped FileDescriptorProto + // 1559 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x18, 0x4b, 0x6f, 0x1c, 0x45, - 0x53, 0xe3, 0xf5, 0xda, 0xeb, 0x5e, 0x3f, 0xdb, 0x4e, 0x32, 0xd9, 0xe4, 0xb3, 0xfc, 0x4d, 0x3e, - 0xe9, 0x73, 0x0c, 0x99, 0xb1, 0x43, 0xe4, 0x10, 0x1e, 0x07, 0x93, 0x58, 0xc6, 0x28, 0x80, 0x19, - 0x0b, 0x22, 0x38, 0x10, 0xf5, 0xce, 0xb6, 0xd7, 0x93, 0xcc, 0x4e, 0x0f, 0xd3, 0xbd, 0x1b, 0x56, - 0xd6, 0x1e, 0xe0, 0xc2, 0x91, 0x03, 0x3f, 0x02, 0x71, 0xe2, 0xc2, 0x85, 0x03, 0x27, 0x24, 0xc4, - 0x09, 0x21, 0xf1, 0x07, 0x50, 0xc4, 0x85, 0x7f, 0x81, 0xba, 0xa6, 0xa7, 0xe7, 0xe1, 0x75, 0xec, - 0xc8, 0x06, 0x73, 0x9a, 0xa9, 0xaa, 0xae, 0x47, 0x77, 0x3d, 0xba, 0xaa, 0xd1, 0xb5, 0xe8, 0x71, - 0xdb, 0x21, 0x91, 0xef, 0x05, 0x3e, 0x0d, 0x85, 0x13, 0xb3, 0x20, 0x60, 0x5d, 0xfd, 0xb5, 0xa3, - 0x98, 0x09, 0x86, 0xc7, 0x15, 0xd8, 0xb8, 0xda, 0x66, 0xac, 0x1d, 0x50, 0xc9, 0xe0, 0x90, 0x30, - 0x64, 0x82, 0x08, 0x9f, 0x85, 0x3c, 0x59, 0xd6, 0xb8, 0xdf, 0xf6, 0xc5, 0x7e, 0xb7, 0x69, 0x7b, - 0xac, 0xe3, 0x90,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xdb, 0x12, 0xc1, 0x6d, 0x59, 0x25, 0xec, 0xde, 0x9a, 0xfd, 0xae, 0xe6, 0x73, 0x73, 0x32, 0xf0, - 0x45, 0x34, 0xc6, 0x05, 0x11, 0x5d, 0xae, 0x5c, 0xa1, 0x20, 0x99, 0x03, 0x1d, 0xca, 0x79, 0x96, - 0x61, 0x29, 0x28, 0x9d, 0xe1, 0x7b, 0x2c, 0x54, 0x49, 0x06, 0xff, 0x32, 0x2f, 0xb8, 0x90, 0x35, - 0xa8, 0xdd, 0x57, 0x49, 0xa6, 0x61, 0xb9, 0x9e, 0x0b, 0x1a, 0x99, 0x63, 0xc9, 0x7a, 0xf9, 0x2f, - 0xcf, 0x9c, 0x53, 0xf1, 0x80, 0xfa, 0xed, 0x7d, 0x61, 0x8e, 0x27, 0x67, 0xae, 0x11, 0xd8, 0x42, - 0x93, 0xc4, 0x13, 0x5d, 0x12, 0xa8, 0x05, 0x35, 0x58, 0x50, 0xc0, 0xc9, 0xfc, 0x8f, 0x29, 0x69, - 0xf5, 0xcd, 0x89, 0x25, 0x63, 0xb9, 0xea, 0x26, 0x80, 0xb4, 0xda, 0xeb, 0xc6, 0x31, 0x0d, 0x85, - 0x89, 0x00, 0x9f, 0x82, 0x92, 0xd2, 0xa2, 0xdc, 0x8f, 0x69, 0xcb, 0xac, 0x27, 0x14, 0x05, 0x4a, - 0x4a, 0x37, 0x6a, 0xc9, 0xfa, 0x69, 0x4e, 0x26, 0x14, 0x05, 0x4a, 0x2b, 0x49, 0x8f, 0xf8, 0x01, - 0x69, 0x06, 0xd4, 0x9c, 0x02, 0x5a, 0x86, 0xc0, 0x4b, 0xa8, 0x1e, 0x27, 0x19, 0x4d, 0x5b, 0x1b, - 0xc2, 0x9c, 0x06, 0x23, 0xf3, 0x28, 0xbc, 0x88, 0x90, 0xaa, 0xcd, 0xd2, 0xc5, 0x33, 0xb0, 0x20, - 0x87, 0xc1, 0x77, 0xa4, 0x84, 0x28, 0xf0, 0x3d, 0xb2,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3, 0xab, 0xb9, 0x0a, 0x92, 0x78, 0x0f, 0x22, 0x03, 0x8a, 0x4d, 0xcd, 0x55, 0x90, 0xc4, 0x13, - 0x4f, 0xf8, 0x3d, 0x0a, 0xb5, 0xa6, 0xe6, 0x2a, 0x48, 0xfa, 0x21, 0x92, 0x42, 0xe9, 0x13, 0xa8, - 0x31, 0x35, 0x37, 0x05, 0x13, 0xed, 0x70, 0x1a, 0x5c, 0x55, 0x18, 0x0d, 0x17, 0xcb, 0x02, 0x2a, - 0x97, 0x85, 0x06, 0xaa, 0x09, 0xda, 0x89, 0x02, 0x22, 0x28, 0x54, 0x9a, 0x09, 0x57, 0xc3, 0xf8, - 0x45, 0x34, 0xc7, 0x3d, 0x12, 0xd0, 0x7b, 0xec, 0x49, 0x78, 0x8f, 0x92, 0x56, 0xe0, 0x87, 0x14, - 0x8a, 0xce, 0x84, 0x7b, 0x98, 0x20, 0xad, 0x86, 0xae, 0x86, 0x9b, 0x53, 0x4b, 0x15, 0x79, 0x5a, - 0x09, 0x84, 0xff, 0x87, 0x46, 0x23, 0xd6, 0xe2, 0xe6, 0x34, 0x38, 0x78, 0x56, 0x3b, 0x78, 0x87, - 0xb5, 0xc0, 0xb1, 0x40, 0xb5, 0xbe, 0x37, 0xd0, 0xb8, 0xc2, 0x9c, 0xb3, 0x27, 0x75, 0xa9, 0x4e, - 0x92, 0x40, 0x95, 0x6a, 0x38, 0x61, 0xa8, 0x95, 0x1c, 0xbc, 0x08, 0x27, 0x9c, 0xc0, 0xd6, 0x1d, - 0x34, 0x55, 0xa8, 0x24, 0x43, 0xfb, 0x08, 0xdd, 0x01, 0x8e, 0xe4, 0x3a, 0x40, 0xeb, 0x0b, 0x03, - 0x8d, 0xbf, 0xc5, 0x9a, 0xe7, 0xbf, 0x6d, 0xeb, 0xc7, 0x11, 0x34, 0x53, 0xca, 0xb9, 0x7f, 0x71, - 0x49, 0x5a, 0x44, 0x88, 0x77, 0x3d, 0x8f, 0x72, 0xbe, 0xd7,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0b, 0x8d, 0x6b, 0x30, 0xf5, + 0x4e, 0xaa, 0x4d, 0x22, 0x8e, 0x88, 0xe3, 0xdb, 0x30, 0x33, 0x10, 0xfd, 0x64, 0x15, 0x6a, 0x69, + 0x3a, 0xeb, 0xda, 0x52, 0xe5, 0x50, 0xb5, 0xd9, 0x2a, 0xe3, 0x26, 0xd4, 0x3f, 0x60, 0x91, 0x8c, + 0x1c, 0xd4, 0xb8, 0x0c, 0x33, 0x29, 0x49, 0xa1, 0x95, 0xde, 0x41, 0xb4, 0xf1, 0xcd, 0x18, 0xd4, + 0x0b, 0x22, 0xc9, 0x36, 0x40, 0xd0, 0x7c, 0xc8, 0x1c, 0xf1, 0x36, 0x13, 0x14, 0x99, 0xea, 0xd7, + 0x57, 0xcd, 0xa4, 0x72, 0x98, 0xc5, 0xca, 0x61, 0x86, 0x8f, 0xda, 0x12, 0xc1, 0x4d, 0x59, 0x39, + 0xcc, 0xee, 0x9a, 0xf9, 0x6e, 0xc6, 0x67, 0x17, 0x64, 0x90, 0xf3, 0x30, 0xc6, 0x05, 0x15, 0x31, + 0x57, 0xae, 0x50, 0x90, 0xcc, 0x8b, 0x0e, 0xe3, 0x3c, 0xcf, 0xba, 0x14, 0x94, 0xce, 0x70, 0x9d, + 0xc0, 0x57, 0x89, 0x87, 0xff, 0x32, 0x57, 0xb8, 0x90, 0x75, 0xa9, 0xdd, 0x53, 0x89, 0x97, 0xc1, + 0x72, 0x3d, 0x17, 0x2c, 0xd4, 0xc7, 0x92, 0xf5, 0xf2, 0x5f, 0x9e, 0x39, 0x67, 0xe2, 0x3e, 0x73, + 0xdb, 0x7b, 0x42, 0x1f, 0x4f, 0xce, 0x3c, 0x43, 0x10, 0x03, 0x26, 0xa9, 0x23, 0x62, 0xea, 0xa9, + 0x05, 0x35, 0x5c, 0x50, 0xc2, 0xc9, 0x9a, 0x10, 0x31, 0xda, 0xea, 0xe9, 0x13, 0x4b, 0xda, 0x72, + 0xd5, 0x4e, 0x00, 0x69, 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xe6, 0x6d, 0xea, 0xd3, 0xa8, + 0xb7, 0x23, 0x58, 0x68, 0x27, 0x62, 0x8d, 0x1f, 0x47, 0x60, 0xba, 0xbc, 0xeb, 0x7f, 0x20, 0x59, + 0xd2, 0xd0, 0x1f, 0x29, 0x87, 0x7e, 0x76, 0x4d, 0x54, 0x30, 0x46, 0xf2, 0x6b, 0x22, 0x4f, 0xae, + 0xd1, 0xc3, 0x92, 0xab, 0x5a, 0x4e, 0xae, 0x81, 0x90, 0x18, 0x7b, 0x86, 0x90, 0x18, 0xf4, 0xeb, + 0xf8, 0xb3, 0xf8, 0xd5, 0xf8, 0xb5, 0x02, 0xd3, 0x65, 0xe9, 0xff, 0x62, 0xb1, 0x49, 0xcf, 0xb5, + 0x72, 0xc8, 0xb9, 0x8e, 0x0e, 0x3d, 0x57, 0x99, 0x95, 0x55, 0xbc, 0xcc, 0x14, 0x24, 0xf1, 0x0e, + 0x46, 0x06, 0x16, 0x9b, 0x9a, 0xad, 0x20, 0x89, 0xa7, 0x8e, 0x70, 0xbb, 0x0c, 0x6b, 0x4d, 0xcd, + 0x56, 0x90, 0xf4, 0x43, 0x28, 0x85, 0xb2, 0xc7, 0x58, 0x63, 0x6a, 0x76, 0x0a, 0x26, 0xda, 0xf1, + 0x34, 0xb8, 0xaa, 0x30, 0x19, 0x5c, 0x2e, 0x0b, 0x30, 0x58, 0x16, 0x1a, 0x50, 0x13, 0xac, 0x13, + 0x7a, 0x54, 0x30, 0xac, 0x34, 0x13, 0x76, 0x06, 0x93, 0x17, 0x61, 0x8e, 0x3b, 0xd4, 0x63, 0x77, + 0x82, 0xc7, 0xfe, 0x1d, 0x46, 0x5b, 0x9e, 0xeb, 0x33, 0x2c, 0x3a, 0x13, 0xf6, 0x41, 0x82, 0xb4, + 0x1a, 0x3b, 0x1d, 0xae, 0x4f, 0x2d, 0x55, 0xe4, 0x69, 0x25, 0x10, 0x79, 0x0e, 0x46, 0xc3, 0xa0, + 0xc5, 0xf5, 0x69, 0x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 0xec, 0x14, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1586,14 +1595,14 @@ type RolloutServiceClient interface { WatchRolloutInfo(ctx context.Context, in *RolloutInfoQuery, opts ...grpc.CallOption) (RolloutService_WatchRolloutInfoClient, error) ListRolloutInfos(ctx context.Context, in *RolloutInfoListQuery, opts ...grpc.CallOption) (*RolloutInfoList, error) WatchRolloutInfos(ctx context.Context, in *RolloutInfoListQuery, opts ...grpc.CallOption) (RolloutService_WatchRolloutInfosClient, error) - GetNamespace(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NamespaceInfo, error) + GetNamespace(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*NamespaceInfo, error) RestartRollout(ctx context.Context, in *RestartRolloutRequest, opts ...grpc.CallOption) (*v1alpha1.Rollout, error) PromoteRollout(ctx context.Context, in *PromoteRolloutRequest, opts ...grpc.CallOption) (*v1alpha1.Rollout, error) AbortRollout(ctx context.Context, in *AbortRolloutRequest, opts ...grpc.CallOption) (*v1alpha1.Rollout, error) SetRolloutImage(ctx context.Context, in *SetImageRequest, opts ...grpc.CallOption) (*v1alpha1.Rollout, error) UndoRollout(ctx context.Context, in *UndoRolloutRequest, opts ...grpc.CallOption) (*v1alpha1.Rollout, error) RetryRollout(ctx context.Context, in *RetryRolloutRequest, opts ...grpc.CallOption) (*v1alpha1.Rollout, error) - Version(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VersionInfo, error) + Version(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*VersionInfo, error) } type rolloutServiceClient struct { @@ -1686,7 +1695,7 @@ func (x *rolloutServiceWatchRolloutInfosClient) Recv() (*RolloutWatchEvent, erro return m, nil } -func (c *rolloutServiceClient) GetNamespace(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NamespaceInfo, error) { +func (c *rolloutServiceClient) GetNamespace(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*NamespaceInfo, error) { out := new(NamespaceInfo) err := c.cc.Invoke(ctx, "/rollout.RolloutService/GetNamespace", in, out, opts...) if err != nil { @@ -1749,7 +1758,7 @@ func (c *rolloutServiceClient) RetryRollout(ctx context.Context, in *RetryRollou return out, nil } -func (c *rolloutServiceClient) Version(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VersionInfo, error) { +func (c *rolloutServiceClient) Version(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*VersionInfo, error) { out := new(VersionInfo) err := c.cc.Invoke(ctx, "/rollout.RolloutService/Version", in, out, opts...) if err != nil { @@ -1764,14 +1773,14 @@ type RolloutServiceServer interface { WatchRolloutInfo(*RolloutInfoQuery, RolloutService_WatchRolloutInfoServer) error ListRolloutInfos(context.Context, *RolloutInfoListQuery) (*RolloutInfoList, error) WatchRolloutInfos(*RolloutInfoListQuery, RolloutService_WatchRolloutInfosServer) error - GetNamespace(context.Context, *emptypb.Empty) (*NamespaceInfo, error) + GetNamespace(context.Context, *empty.Empty) (*NamespaceInfo, error) RestartRollout(context.Context, *RestartRolloutRequest) (*v1alpha1.Rollout, error) PromoteRollout(context.Context, *PromoteRolloutRequest) (*v1alpha1.Rollout, error) AbortRollout(context.Context, *AbortRolloutRequest) (*v1alpha1.Rollout, error) SetRolloutImage(context.Context, *SetImageRequest) (*v1alpha1.Rollout, error) UndoRollout(context.Context, *UndoRolloutRequest) (*v1alpha1.Rollout, error) RetryRollout(context.Context, *RetryRolloutRequest) (*v1alpha1.Rollout, error) - Version(context.Context, *emptypb.Empty) (*VersionInfo, error) + Version(context.Context, *empty.Empty) (*VersionInfo, error) } // UnimplementedRolloutServiceServer can be embedded to have forward compatible implementations. @@ -1790,7 +1799,7 @@ func (*UnimplementedRolloutServiceServer) ListRolloutInfos(ctx context.Context, func (*UnimplementedRolloutServiceServer) WatchRolloutInfos(req *RolloutInfoListQuery, srv RolloutService_WatchRolloutInfosServer) error { return status.Errorf(codes.Unimplemented, "method WatchRolloutInfos not implemented") } -func (*UnimplementedRolloutServiceServer) GetNamespace(ctx context.Context, req *emptypb.Empty) (*NamespaceInfo, error) { +func (*UnimplementedRolloutServiceServer) GetNamespace(ctx context.Context, req *empty.Empty) (*NamespaceInfo, error) { return nil, status.Errorf(codes.Unimplemented, "method GetNamespace not implemented") } func (*UnimplementedRolloutServiceServer) RestartRollout(ctx context.Context, req *RestartRolloutRequest) (*v1alpha1.Rollout, error) { @@ -1811,7 +1820,7 @@ func (*UnimplementedRolloutServiceServer) UndoRollout(ctx context.Context, req * func (*UnimplementedRolloutServiceServer) RetryRollout(ctx context.Context, req *RetryRolloutRequest) (*v1alpha1.Rollout, error) { return nil, status.Errorf(codes.Unimplemented, "method RetryRollout not implemented") } -func (*UnimplementedRolloutServiceServer) Version(ctx context.Context, req *emptypb.Empty) (*VersionInfo, error) { +func (*UnimplementedRolloutServiceServer) Version(ctx context.Context, req *empty.Empty) (*VersionInfo, error) { return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") } @@ -1898,7 +1907,7 @@ func (x *rolloutServiceWatchRolloutInfosServer) Send(m *RolloutWatchEvent) error } func _RolloutService_GetNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(emptypb.Empty) + in := new(empty.Empty) if err := dec(in); err != nil { return nil, err } @@ -1910,7 +1919,7 @@ func _RolloutService_GetNamespace_Handler(srv interface{}, ctx context.Context, FullMethod: "/rollout.RolloutService/GetNamespace", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RolloutServiceServer).GetNamespace(ctx, req.(*emptypb.Empty)) + return srv.(RolloutServiceServer).GetNamespace(ctx, req.(*empty.Empty)) } return interceptor(ctx, in, info, handler) } @@ -2024,7 +2033,7 @@ func _RolloutService_RetryRollout_Handler(srv interface{}, ctx context.Context, } func _RolloutService_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(emptypb.Empty) + in := new(empty.Empty) if err := dec(in); err != nil { return nil, err } @@ -2036,7 +2045,7 @@ func _RolloutService_Version_Handler(srv interface{}, ctx context.Context, dec f FullMethod: "/rollout.RolloutService/Version", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RolloutServiceServer).Version(ctx, req.(*emptypb.Empty)) + return srv.(RolloutServiceServer).Version(ctx, req.(*empty.Empty)) } return interceptor(ctx, in, info, handler) } @@ -2349,6 +2358,16 @@ func (m *PromoteRolloutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } + if m.Full { + i-- + if m.Full { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } if len(m.Namespace) > 0 { i -= len(m.Namespace) copy(dAtA[i:], m.Namespace) @@ -3435,6 +3454,9 @@ func (m *PromoteRolloutRequest) Size() (n int) { if l > 0 { n += 1 + l + sovRollout(uint64(l)) } + if m.Full { + n += 2 + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -4633,6 +4655,26 @@ func (m *PromoteRolloutRequest) Unmarshal(dAtA []byte) error { } m.Namespace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Full", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRollout + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Full = bool(v != 0) default: iNdEx = preIndex skippy, err := skipRollout(dAtA[iNdEx:]) diff --git a/pkg/apiclient/rollout/rollout.pb.gw.go b/pkg/apiclient/rollout/rollout.pb.gw.go index da77cc4e6a..02bfc7bb1b 100644 --- a/pkg/apiclient/rollout/rollout.pb.gw.go +++ b/pkg/apiclient/rollout/rollout.pb.gw.go @@ -15,6 +15,7 @@ import ( "github.com/golang/protobuf/descriptor" "github.com/golang/protobuf/proto" + "github.com/golang/protobuf/ptypes/empty" "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/grpc-ecosystem/grpc-gateway/utilities" "google.golang.org/grpc" @@ -22,7 +23,6 @@ import ( "google.golang.org/grpc/grpclog" "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" - "google.golang.org/protobuf/types/known/emptypb" ) // Suppress "imported and not used" errors @@ -246,7 +246,7 @@ func request_RolloutService_WatchRolloutInfos_0(ctx context.Context, marshaler r } func request_RolloutService_GetNamespace_0(ctx context.Context, marshaler runtime.Marshaler, client RolloutServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty + var protoReq empty.Empty var metadata runtime.ServerMetadata msg, err := client.GetNamespace(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -255,7 +255,7 @@ func request_RolloutService_GetNamespace_0(ctx context.Context, marshaler runtim } func local_request_RolloutService_GetNamespace_0(ctx context.Context, marshaler runtime.Marshaler, server RolloutServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty + var protoReq empty.Empty var metadata runtime.ServerMetadata msg, err := server.GetNamespace(ctx, &protoReq) @@ -904,7 +904,7 @@ func local_request_RolloutService_RetryRollout_0(ctx context.Context, marshaler } func request_RolloutService_Version_0(ctx context.Context, marshaler runtime.Marshaler, client RolloutServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty + var protoReq empty.Empty var metadata runtime.ServerMetadata msg, err := client.Version(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -913,7 +913,7 @@ func request_RolloutService_Version_0(ctx context.Context, marshaler runtime.Mar } func local_request_RolloutService_Version_0(ctx context.Context, marshaler runtime.Marshaler, server RolloutServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq emptypb.Empty + var protoReq empty.Empty var metadata runtime.ServerMetadata msg, err := server.Version(ctx, &protoReq) diff --git a/pkg/apiclient/rollout/rollout.proto b/pkg/apiclient/rollout/rollout.proto index 96101face2..10f0dbf93c 100644 --- a/pkg/apiclient/rollout/rollout.proto +++ b/pkg/apiclient/rollout/rollout.proto @@ -39,6 +39,7 @@ message RestartRolloutRequest { message PromoteRolloutRequest { string name = 1; string namespace = 2; + bool full = 3; } message AbortRolloutRequest { diff --git a/pkg/apiclient/rollout/rollout.swagger.json b/pkg/apiclient/rollout/rollout.swagger.json index bfb62fbf2b..f984d322c2 100644 --- a/pkg/apiclient/rollout/rollout.swagger.json +++ b/pkg/apiclient/rollout/rollout.swagger.json @@ -4154,6 +4154,9 @@ }, "namespace": { "type": "string" + }, + "full": { + "type": "boolean" } } }, diff --git a/server/server.go b/server/server.go index 96a18005ea..ed7653122f 100644 --- a/server/server.go +++ b/server/server.go @@ -378,7 +378,7 @@ func (s *ArgoRolloutsServer) GetNamespace(ctx context.Context, e *empty.Empty) ( func (s *ArgoRolloutsServer) PromoteRollout(ctx context.Context, q *rollout.PromoteRolloutRequest) (*v1alpha1.Rollout, error) { rolloutIf := s.Options.RolloutsClientset.ArgoprojV1alpha1().Rollouts(q.GetNamespace()) - return promote.PromoteRollout(rolloutIf, q.GetName(), false, false, false) + return promote.PromoteRollout(rolloutIf, q.GetName(), false, false, q.GetFull()) } func (s *ArgoRolloutsServer) AbortRollout(ctx context.Context, q *rollout.AbortRolloutRequest) (*v1alpha1.Rollout, error) { diff --git a/ui/src/app/components/rollout-actions/rollout-actions.tsx b/ui/src/app/components/rollout-actions/rollout-actions.tsx index 67249aea54..45dff6bb88 100644 --- a/ui/src/app/components/rollout-actions/rollout-actions.tsx +++ b/ui/src/app/components/rollout-actions/rollout-actions.tsx @@ -1,4 +1,4 @@ -import {faArrowCircleUp, faExclamationCircle, faRedoAlt, faSync} from '@fortawesome/free-solid-svg-icons'; +import {faArrowCircleUp, faChevronCircleUp, faExclamationCircle, faRedoAlt, faSync} from '@fortawesome/free-solid-svg-icons'; import * as React from 'react'; import {RolloutInfo} from '../../../models/rollout/rollout'; import {NamespaceContext, RolloutAPIContext} from '../../shared/context/api'; @@ -10,6 +10,7 @@ export enum RolloutAction { Restart = 'Restart', Retry = 'Retry', Abort = 'Abort', + Promote = 'Promote', PromoteFull = 'PromoteFull', } @@ -19,7 +20,7 @@ export const RolloutActionButton = (props: {action: RolloutAction; rollout: Roll const restartedAt = formatTimestamp(props.rollout.restartedAt || ''); - const actionMap = new Map([ + const actionMap = new Map([ [ RolloutAction.Restart, { @@ -48,11 +49,23 @@ export const RolloutActionButton = (props: {action: RolloutAction; rollout: Roll shouldConfirm: true, }, ], + [ + RolloutAction.Promote, + { + label: 'PROMOTE', + icon: faChevronCircleUp, + action: api.rolloutServicePromoteRollout, + body: {full: false}, + disabled: props.rollout.status !== RolloutStatus.Paused, + shouldConfirm: true, + }, + ], [ RolloutAction.PromoteFull, { label: 'PROMOTE-FULL', icon: faArrowCircleUp, + body: {full: true}, action: api.rolloutServicePromoteRollout, disabled: props.rollout.status !== RolloutStatus.Paused, shouldConfirm: true, @@ -66,7 +79,7 @@ export const RolloutActionButton = (props: {action: RolloutAction; rollout: Roll { - ap.action({}, namespace, props.rollout.objectMeta?.name || ''); + ap.action(ap.body || {}, namespace, props.rollout.objectMeta?.name || ''); if (props.callback) { props.callback(); } diff --git a/ui/src/app/components/rollouts-list/rollouts-list.tsx b/ui/src/app/components/rollouts-list/rollouts-list.tsx index df9c62abd5..ab144e8fde 100644 --- a/ui/src/app/components/rollouts-list/rollouts-list.tsx +++ b/ui/src/app/components/rollouts-list/rollouts-list.tsx @@ -204,7 +204,7 @@ export const RolloutWidget = (props: {rollout: RolloutInfo; deselect: () => void
subscribe(true)} indicateLoading /> - subscribe(true)} indicateLoading /> + subscribe(true)} indicateLoading />
diff --git a/ui/src/models/rollout/generated/api.ts b/ui/src/models/rollout/generated/api.ts index 8b5ddc47b0..ffc5cbb42c 100644 --- a/ui/src/models/rollout/generated/api.ts +++ b/ui/src/models/rollout/generated/api.ts @@ -4878,6 +4878,12 @@ export interface RolloutPromoteRolloutRequest { * @memberof RolloutPromoteRolloutRequest */ namespace?: string; + /** + * + * @type {boolean} + * @memberof RolloutPromoteRolloutRequest + */ + full?: boolean; } /** *