Sync due to defaults

Since we can miss it while checking only spec
This commit is contained in:
Dmitrii Dolgov
2020-03-02 16:32:15 +01:00
parent 3e98832703
commit 037d7120ef
6 changed files with 106 additions and 4 deletions
+2
View File
@@ -10,4 +10,6 @@ const (
ConnectionPoolDefaultCpuLimit = "100m"
ConnectionPoolDefaultMemoryRequest = "100Mi"
ConnectionPoolDefaultMemoryLimit = "100Mi"
ConnPoolContainer = 0
)
+12
View File
@@ -300,6 +300,18 @@ func (mock *mockDeployment) Get(name string, opts metav1.GetOptions) (*apiappsv1
ObjectMeta: metav1.ObjectMeta{
Name: "test-deployment",
},
Spec: apiappsv1.DeploymentSpec{
Replicas: int32ToPointer(1),
Template: v1.PodTemplateSpec{
Spec: v1.PodSpec{
Containers: []v1.Container{
v1.Container{
Image: "pooler:1.0",
},
},
},
},
},
}, nil
}