@@ -156,6 +156,7 @@ func TestDeploymentStore(t *testing.T) {
156156 {Type : v1 .DeploymentAvailable , Status : corev1 .ConditionFalse , Reason : "MinimumReplicasAvailable" },
157157 {Type : v1 .DeploymentProgressing , Status : corev1 .ConditionFalse , Reason : "NewReplicaSetAvailable" },
158158 {Type : v1 .DeploymentReplicaFailure , Status : corev1 .ConditionTrue , Reason : "FailedCreate" },
159+ {Type : v1 .DeploymentProgressing , Status : corev1 .ConditionTrue },
159160 },
160161 },
161162 Spec : v1.DeploymentSpec {
@@ -190,7 +191,9 @@ func TestDeploymentStore(t *testing.T) {
190191 kube_deployment_status_condition{deployment="depl2",namespace="ns2",reason="MinimumReplicasAvailable",condition="Available",status="unknown"} 0
191192 kube_deployment_status_condition{deployment="depl2",namespace="ns2",reason="NewReplicaSetAvailable",condition="Progressing",status="unknown"} 0
192193 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` ,
194197 },
195198 {
196199 Obj : & v1.Deployment {
@@ -201,7 +204,6 @@ func TestDeploymentStore(t *testing.T) {
201204 Status : v1.DeploymentStatus {
202205 Conditions : []v1.DeploymentCondition {
203206 {Type : v1 .DeploymentAvailable , Status : corev1 .ConditionFalse , Reason : "ThisReasonIsNotAllowed" },
204- {Type : v1 .DeploymentProgressing , Status : corev1 .ConditionTrue },
205207 },
206208 },
207209 Spec : v1.DeploymentSpec {
@@ -215,9 +217,6 @@ func TestDeploymentStore(t *testing.T) {
215217 kube_deployment_status_condition{deployment="depl3",namespace="ns3",reason="unknown",condition="Available",status="true"} 0
216218 kube_deployment_status_condition{deployment="depl3",namespace="ns3",reason="unknown",condition="Available",status="false"} 1
217219 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
221220 kube_deployment_status_observed_generation{deployment="depl3",namespace="ns3"} 0
222221 kube_deployment_status_replicas{deployment="depl3",namespace="ns3"} 0
223222 kube_deployment_status_replicas_available{deployment="depl3",namespace="ns3"} 0
0 commit comments