File tree Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -22,22 +22,21 @@ func Test_newDeployment(t *testing.T) {
22
22
ReadOnlyRootFilesystem : true ,
23
23
},
24
24
}
25
-
26
- factory := NewFunctionFactory (fake .NewSimpleClientset (),
27
- k8s.DeploymentConfig {
28
- HTTPProbe : true ,
29
- SetNonRootUser : true ,
30
- LivenessProbe : & k8s.ProbeConfig {
31
- PeriodSeconds : 1 ,
32
- TimeoutSeconds : 3 ,
33
- InitialDelaySeconds : 0 ,
34
- },
35
- ReadinessProbe : & k8s.ProbeConfig {
36
- PeriodSeconds : 1 ,
37
- TimeoutSeconds : 3 ,
38
- InitialDelaySeconds : 0 ,
39
- },
40
- })
25
+ k8sConfig := k8s.DeploymentConfig {
26
+ HTTPProbe : true ,
27
+ SetNonRootUser : true ,
28
+ LivenessProbe : & k8s.ProbeConfig {
29
+ PeriodSeconds : 1 ,
30
+ TimeoutSeconds : 3 ,
31
+ InitialDelaySeconds : 0 ,
32
+ },
33
+ ReadinessProbe : & k8s.ProbeConfig {
34
+ PeriodSeconds : 1 ,
35
+ TimeoutSeconds : 3 ,
36
+ InitialDelaySeconds : 0 ,
37
+ },
38
+ }
39
+ factory := NewFunctionFactory (fake .NewSimpleClientset (), k8sConfig )
41
40
42
41
secrets := map [string ]* corev1.Secret {}
43
42
You can’t perform that action at this time.
0 commit comments