@@ -87,6 +87,81 @@ type MachineSetSpec struct {
87
87
Template MachineTemplateSpec `json:"template,omitempty"`
88
88
}
89
89
90
+ // MachineSet's ScalingUp condition and corresponding reasons that will be used in v1Beta2 API version.
91
+ const (
92
+ // MachineSetScalingUpV1Beta2Condition is true if actual replicas < desired replicas.
93
+ MachineSetScalingUpV1Beta2Condition = ScalingUpV1Beta2Condition
94
+
95
+ // MachineSetScalingUpV1Beta2Reason surfaces when actual replicas < desired replicas.
96
+ MachineSetScalingUpV1Beta2Reason = ScalingUpV1Beta2Reason
97
+
98
+ // MachineSetNotScalingUpV1Beta2Reason surfaces when actual replicas >= desired replicas.
99
+ MachineSetNotScalingUpV1Beta2Reason = NotScalingUpV1Beta2Reason
100
+
101
+ // MachineSetScalingUpInternalErrorV1Beta2Reason surfaces unexpected failures when listing machines.
102
+ MachineSetScalingUpInternalErrorV1Beta2Reason = InternalErrorV1Beta2Reason
103
+
104
+ // MachineSetScalingUpWaitingForReplicasSetV1Beta2Reason surfaces when the .spec.replicas
105
+ // field of the MachineSet is not set.
106
+ MachineSetScalingUpWaitingForReplicasSetV1Beta2Reason = WaitingForReplicasSetV1Beta2Reason
107
+ )
108
+
109
+ // MachineSet's ScalingDown condition and corresponding reasons that will be used in v1Beta2 API version.
110
+ const (
111
+ // MachineSetScalingDownV1Beta2Condition is true if actual replicas > desired replicas.
112
+ MachineSetScalingDownV1Beta2Condition = ScalingDownV1Beta2Condition
113
+
114
+ // MachineSetScalingDownV1Beta2Reason surfaces when actual replicas > desired replicas.
115
+ MachineSetScalingDownV1Beta2Reason = ScalingDownV1Beta2Reason
116
+
117
+ // MachineSetNotScalingDownV1Beta2Reason surfaces when actual replicas <= desired replicas.
118
+ MachineSetNotScalingDownV1Beta2Reason = NotScalingDownV1Beta2Reason
119
+
120
+ // MachineSetScalingDownInternalErrorV1Beta2Reason surfaces unexpected failures when listing machines.
121
+ MachineSetScalingDownInternalErrorV1Beta2Reason = InternalErrorV1Beta2Reason
122
+
123
+ // MachineSetScalingDownWaitingForReplicasToBeSetV1Beta2Reason surfaces when the .spec.replicas
124
+ // field of the MachineSet is not set.
125
+ MachineSetScalingDownWaitingForReplicasSetV1Beta2Reason = WaitingForReplicasSetV1Beta2Reason
126
+ )
127
+
128
+ // MachineSet's MachinesReady condition and corresponding reasons that will be used in v1Beta2 API version.
129
+ // Note: Reason's could also be derived from the aggregation of machine's Ready conditions.
130
+ const (
131
+ // MachineSetMachinesReadyV1Beta2Condition surfaces detail of issues on the controlled machines, if any.
132
+ MachineSetMachinesReadyV1Beta2Condition = MachinesReadyV1Beta2Condition
133
+
134
+ // MachineSetMachinesReadyNoReplicasV1Beta2Reason surfaces when no machines exist for the MachineSet.
135
+ MachineSetMachinesReadyNoReplicasV1Beta2Reason = "NoReplicas"
136
+
137
+ // MachineSetMachinesReadyInternalErrorV1Beta2Reason surfaces unexpected failures when listing machines
138
+ // or aggregating machine's conditions.
139
+ MachineSetMachinesReadyInternalErrorV1Beta2Reason = InternalErrorV1Beta2Reason
140
+ )
141
+
142
+ // MachineSet's MachinesUpToDate condition and corresponding reasons that will be used in v1Beta2 API version.
143
+ // Note: Reason's could also be derived from the aggregation of machine's MachinesUpToDate conditions.
144
+ const (
145
+ // MachineSetMachinesUpToDateV1Beta2Condition surfaces details of controlled machines not up to date, if any.
146
+ MachineSetMachinesUpToDateV1Beta2Condition = MachinesUpToDateV1Beta2Condition
147
+
148
+ // MachineSetMachinesUpToDateNoReplicasV1Beta2Reason surfaces when no machines exist for the MachineSet.
149
+ MachineSetMachinesUpToDateNoReplicasV1Beta2Reason = "NoReplicas"
150
+
151
+ // MachineSetMachinesUpToDateInternalErrorV1Beta2Reason surfaces unexpected failures when listing machines
152
+ // or aggregating status.
153
+ MachineSetMachinesUpToDateInternalErrorV1Beta2Reason = InternalErrorV1Beta2Reason
154
+ )
155
+
156
+ // Conditions that will be used for the MachineSet object in v1Beta2 API version.
157
+ const (
158
+ // MachineSetRemediatingV1Beta2Condition surfaces details about ongoing remediation of the controlled machines, if any.
159
+ MachineSetRemediatingV1Beta2Condition = RemediatingV1Beta2Condition
160
+
161
+ // MachineSetDeletingV1Beta2Condition surfaces details about ongoing deletion of the controlled machines.
162
+ MachineSetDeletingV1Beta2Condition = DeletingV1Beta2Condition
163
+ )
164
+
90
165
// ANCHOR_END: MachineSetSpec
91
166
92
167
// ANCHOR: MachineTemplateSpec
0 commit comments