File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,8 @@ func getWrapperObject(from interface{}) GetterSetter {
171
171
switch obj := from .(type ) {
172
172
case * machinev1.Machine :
173
173
return & MachineWrapper {obj }
174
+ case * machinev1.MachineSet :
175
+ return & MachineSetWrapper {obj }
174
176
case * machinev1.MachineHealthCheck :
175
177
return & MachineHealthCheckWrapper {obj }
176
178
default :
Original file line number Diff line number Diff line change @@ -27,3 +27,15 @@ func (m *MachineHealthCheckWrapper) GetConditions() []machinev1.Condition {
27
27
func (m * MachineHealthCheckWrapper ) SetConditions (conditions []machinev1.Condition ) {
28
28
m .Status .Conditions = conditions
29
29
}
30
+
31
+ type MachineSetWrapper struct {
32
+ * machinev1.MachineSet
33
+ }
34
+
35
+ func (m * MachineSetWrapper ) GetConditions () []machinev1.Condition {
36
+ return m .Status .Conditions
37
+ }
38
+
39
+ func (m * MachineSetWrapper ) SetConditions (conditions []machinev1.Condition ) {
40
+ m .Status .Conditions = conditions
41
+ }
You can’t perform that action at this time.
0 commit comments