Skip to content

Commit 604cc83

Browse files
committed
followup with the spec change
1 parent 8be32a4 commit 604cc83

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/v2/controllers/vreplicaset_controller/trusted/spec_types.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ impl VReplicaSetView {
3030
}
3131
}
3232

33-
pub open spec fn set_metadata(self, metadata: ObjectMetaView) -> VReplicaSetView {
33+
pub open spec fn with_metadata(self, metadata: ObjectMetaView) -> VReplicaSetView {
3434
VReplicaSetView {
3535
metadata: metadata,
3636
..self
3737
}
3838
}
3939

40-
pub open spec fn set_spec(self, spec: VReplicaSetSpecView) -> VReplicaSetView {
40+
pub open spec fn with_spec(self, spec: VReplicaSetSpecView) -> VReplicaSetView {
4141
VReplicaSetView {
4242
spec: spec,
4343
..self
@@ -175,21 +175,21 @@ impl VReplicaSetSpecView {
175175
}
176176
}
177177

178-
pub open spec fn set_replicas(self, replicas: int) -> VReplicaSetSpecView {
178+
pub open spec fn with_replicas(self, replicas: int) -> VReplicaSetSpecView {
179179
VReplicaSetSpecView {
180180
replicas: Some(replicas),
181181
..self
182182
}
183183
}
184184

185-
pub open spec fn set_selector(self, selector: LabelSelectorView) -> VReplicaSetSpecView {
185+
pub open spec fn with_selector(self, selector: LabelSelectorView) -> VReplicaSetSpecView {
186186
VReplicaSetSpecView {
187187
selector: selector,
188188
..self
189189
}
190190
}
191191

192-
pub open spec fn set_template(self, template: PodTemplateSpecView) -> VReplicaSetSpecView {
192+
pub open spec fn with_template(self, template: PodTemplateSpecView) -> VReplicaSetSpecView {
193193
VReplicaSetSpecView {
194194
template: Some(template),
195195
..self

0 commit comments

Comments
 (0)