-
Notifications
You must be signed in to change notification settings - Fork 1
/
deployment_strategy.pb.go
157 lines (140 loc) · 6.91 KB
/
deployment_strategy.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: deployment_strategy.proto
package container
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
types "github.com/gogo/protobuf/types"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
//
//deployment 更新策略, 目前只支持deployment, 扩展其它的就使用如 statefulStrategy, jobStrategy
type DeploymentStrategy struct {
//
//更新策略
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type" form:"type"`
//
//rollingUpdate 参数
RollingUpdate *DeploymentStrategy_RollingUpdate `protobuf:"bytes,2,opt,name=rollingUpdate,proto3" json:"rollingUpdate" form:"rollingUpdate"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeploymentStrategy) Reset() { *m = DeploymentStrategy{} }
func (m *DeploymentStrategy) String() string { return proto.CompactTextString(m) }
func (*DeploymentStrategy) ProtoMessage() {}
func (*DeploymentStrategy) Descriptor() ([]byte, []int) {
return fileDescriptor_ab925cfd7ce9b261, []int{0}
}
func (m *DeploymentStrategy) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeploymentStrategy.Unmarshal(m, b)
}
func (m *DeploymentStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeploymentStrategy.Marshal(b, m, deterministic)
}
func (m *DeploymentStrategy) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeploymentStrategy.Merge(m, src)
}
func (m *DeploymentStrategy) XXX_Size() int {
return xxx_messageInfo_DeploymentStrategy.Size(m)
}
func (m *DeploymentStrategy) XXX_DiscardUnknown() {
xxx_messageInfo_DeploymentStrategy.DiscardUnknown(m)
}
var xxx_messageInfo_DeploymentStrategy proto.InternalMessageInfo
func (m *DeploymentStrategy) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *DeploymentStrategy) GetRollingUpdate() *DeploymentStrategy_RollingUpdate {
if m != nil {
return m.RollingUpdate
}
return nil
}
type DeploymentStrategy_RollingUpdate struct {
//
//更新过程中 Pod 总数超过 Pod 期望副本个数的最大值, 使用个数,不使用百分比
MaxSurge *types.Value `protobuf:"bytes,1,opt,name=maxSurge,proto3" json:"maxSurge" form:"maxSurge"`
//
//更新过程中不可用状态 Pod 数量的上限, 使用个数,不使用百分比
MaxUnavailable *types.Value `protobuf:"bytes,2,opt,name=maxUnavailable,proto3" json:"maxUnavailable" form:"maxUnavailable"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeploymentStrategy_RollingUpdate) Reset() { *m = DeploymentStrategy_RollingUpdate{} }
func (m *DeploymentStrategy_RollingUpdate) String() string { return proto.CompactTextString(m) }
func (*DeploymentStrategy_RollingUpdate) ProtoMessage() {}
func (*DeploymentStrategy_RollingUpdate) Descriptor() ([]byte, []int) {
return fileDescriptor_ab925cfd7ce9b261, []int{0, 0}
}
func (m *DeploymentStrategy_RollingUpdate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeploymentStrategy_RollingUpdate.Unmarshal(m, b)
}
func (m *DeploymentStrategy_RollingUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeploymentStrategy_RollingUpdate.Marshal(b, m, deterministic)
}
func (m *DeploymentStrategy_RollingUpdate) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeploymentStrategy_RollingUpdate.Merge(m, src)
}
func (m *DeploymentStrategy_RollingUpdate) XXX_Size() int {
return xxx_messageInfo_DeploymentStrategy_RollingUpdate.Size(m)
}
func (m *DeploymentStrategy_RollingUpdate) XXX_DiscardUnknown() {
xxx_messageInfo_DeploymentStrategy_RollingUpdate.DiscardUnknown(m)
}
var xxx_messageInfo_DeploymentStrategy_RollingUpdate proto.InternalMessageInfo
func (m *DeploymentStrategy_RollingUpdate) GetMaxSurge() *types.Value {
if m != nil {
return m.MaxSurge
}
return nil
}
func (m *DeploymentStrategy_RollingUpdate) GetMaxUnavailable() *types.Value {
if m != nil {
return m.MaxUnavailable
}
return nil
}
func init() {
proto.RegisterType((*DeploymentStrategy)(nil), "container.DeploymentStrategy")
proto.RegisterType((*DeploymentStrategy_RollingUpdate)(nil), "container.DeploymentStrategy.RollingUpdate")
}
func init() { proto.RegisterFile("deployment_strategy.proto", fileDescriptor_ab925cfd7ce9b261) }
var fileDescriptor_ab925cfd7ce9b261 = []byte{
// 331 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xdf, 0x4a, 0xf3, 0x40,
0x10, 0xc5, 0x49, 0xf9, 0xf8, 0xb0, 0x5b, 0x6a, 0x21, 0xfe, 0xa1, 0x2d, 0x42, 0x4a, 0xbc, 0x29,
0x48, 0x37, 0x50, 0xef, 0xbc, 0x8c, 0x8a, 0xf7, 0x29,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