@@ -156,6 +156,7 @@ func TestDeploymentStore(t *testing.T) {
156
156
{Type : v1 .DeploymentAvailable , Status : corev1 .ConditionFalse , Reason : "MinimumReplicasAvailable" },
157
157
{Type : v1 .DeploymentProgressing , Status : corev1 .ConditionFalse , Reason : "NewReplicaSetAvailable" },
158
158
{Type : v1 .DeploymentReplicaFailure , Status : corev1 .ConditionTrue , Reason : "FailedCreate" },
159
+ {Type : v1 .DeploymentProgressing , Status : corev1 .ConditionTrue },
159
160
},
160
161
},
161
162
Spec : v1.DeploymentSpec {
@@ -190,7 +191,9 @@ func TestDeploymentStore(t *testing.T) {
190
191
kube_deployment_status_condition{deployment="depl2",namespace="ns2",reason="MinimumReplicasAvailable",condition="Available",status="unknown"} 0
191
192
kube_deployment_status_condition{deployment="depl2",namespace="ns2",reason="NewReplicaSetAvailable",condition="Progressing",status="unknown"} 0
192
193
kube_deployment_status_condition{deployment="depl2",namespace="ns2",reason="FailedCreate",condition="ReplicaFailure",status="unknown"} 0
193
- ` ,
194
+ kube_deployment_status_condition{condition="Progressing",deployment="depl2",namespace="ns2",reason="",status="false"} 0
195
+ kube_deployment_status_condition{condition="Progressing",deployment="depl2",namespace="ns2",reason="",status="true"} 1
196
+ kube_deployment_status_condition{condition="Progressing",deployment="depl2",namespace="ns2",reason="",status="unknown"} 0` ,
194
197
},
195
198
{
196
199
Obj : & v1.Deployment {
@@ -201,7 +204,6 @@ func TestDeploymentStore(t *testing.T) {
201
204
Status : v1.DeploymentStatus {
202
205
Conditions : []v1.DeploymentCondition {
203
206
{Type : v1 .DeploymentAvailable , Status : corev1 .ConditionFalse , Reason : "ThisReasonIsNotAllowed" },
204
- {Type : v1 .DeploymentProgressing , Status : corev1 .ConditionTrue },
205
207
},
206
208
},
207
209
Spec : v1.DeploymentSpec {
@@ -215,9 +217,6 @@ func TestDeploymentStore(t *testing.T) {
215
217
kube_deployment_status_condition{deployment="depl3",namespace="ns3",reason="unknown",condition="Available",status="true"} 0
216
218
kube_deployment_status_condition{deployment="depl3",namespace="ns3",reason="unknown",condition="Available",status="false"} 1
217
219
kube_deployment_status_condition{deployment="depl3",namespace="ns3",reason="unknown",condition="Available",status="unknown"} 0
218
- kube_deployment_status_condition{deployment="depl3",namespace="ns3",reason="",condition="Progressing",status="true"} 1
219
- kube_deployment_status_condition{deployment="depl3",namespace="ns3",reason="",condition="Progressing",status="false"} 0
220
- kube_deployment_status_condition{deployment="depl3",namespace="ns3",reason="",condition="Progressing",status="unknown"} 0
221
220
kube_deployment_status_observed_generation{deployment="depl3",namespace="ns3"} 0
222
221
kube_deployment_status_replicas{deployment="depl3",namespace="ns3"} 0
223
222
kube_deployment_status_replicas_available{deployment="depl3",namespace="ns3"} 0
0 commit comments