File tree 1 file changed +5
-5
lines changed
src/v2/controllers/vreplicaset_controller/trusted
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -30,14 +30,14 @@ impl VReplicaSetView {
30
30
}
31
31
}
32
32
33
- pub open spec fn set_metadata ( self , metadata: ObjectMetaView ) -> VReplicaSetView {
33
+ pub open spec fn with_metadata ( self , metadata: ObjectMetaView ) -> VReplicaSetView {
34
34
VReplicaSetView {
35
35
metadata: metadata,
36
36
..self
37
37
}
38
38
}
39
39
40
- pub open spec fn set_spec ( self , spec: VReplicaSetSpecView ) -> VReplicaSetView {
40
+ pub open spec fn with_spec ( self , spec: VReplicaSetSpecView ) -> VReplicaSetView {
41
41
VReplicaSetView {
42
42
spec: spec,
43
43
..self
@@ -175,21 +175,21 @@ impl VReplicaSetSpecView {
175
175
}
176
176
}
177
177
178
- pub open spec fn set_replicas ( self , replicas: int) -> VReplicaSetSpecView {
178
+ pub open spec fn with_replicas ( self , replicas: int) -> VReplicaSetSpecView {
179
179
VReplicaSetSpecView {
180
180
replicas: Some ( replicas) ,
181
181
..self
182
182
}
183
183
}
184
184
185
- pub open spec fn set_selector ( self , selector: LabelSelectorView ) -> VReplicaSetSpecView {
185
+ pub open spec fn with_selector ( self , selector: LabelSelectorView ) -> VReplicaSetSpecView {
186
186
VReplicaSetSpecView {
187
187
selector: selector,
188
188
..self
189
189
}
190
190
}
191
191
192
- pub open spec fn set_template ( self , template: PodTemplateSpecView ) -> VReplicaSetSpecView {
192
+ pub open spec fn with_template ( self , template: PodTemplateSpecView ) -> VReplicaSetSpecView {
193
193
VReplicaSetSpecView {
194
194
template: Some ( template) ,
195
195
..self
You can’t perform that action at this time.
0 commit comments