@@ -108,9 +108,18 @@ def test_validate_the_git_sync_container_spec(self):
108108 {"name" : "GITSYNC_PERIOD" , "value" : "66s" },
109109 {"name" : "GIT_SYNC_MAX_SYNC_FAILURES" , "value" : "70" },
110110 {"name" : "GITSYNC_MAX_FAILURES" , "value" : "70" },
111+ {"name" : "GIT_SYNC_HTTP_BIND" , "value" : ":1234" },
112+ {"name" : "GITSYNC_HTTP_BIND" , "value" : ":1234" },
111113 ],
112114 "volumeMounts" : [{"mountPath" : "/git" , "name" : "dags" }],
113115 "resources" : {},
116+ "startupProbe" : {
117+ "httpGet" : {"path" : "/" , "port" : 1234 },
118+ "timeoutSeconds" : 1 ,
119+ "failureThreshold" : 10 ,
120+ "initialDelaySeconds" : 0 ,
121+ "periodSeconds" : 5 ,
122+ },
114123 }
115124
116125 def test_validate_the_git_sync_container_spec_if_wait_specified (self ):
@@ -172,9 +181,18 @@ def test_validate_the_git_sync_container_spec_if_wait_specified(self):
172181 {"name" : "GITSYNC_PERIOD" , "value" : "66s" },
173182 {"name" : "GIT_SYNC_MAX_SYNC_FAILURES" , "value" : "70" },
174183 {"name" : "GITSYNC_MAX_FAILURES" , "value" : "70" },
184+ {"name" : "GIT_SYNC_HTTP_BIND" , "value" : ":1234" },
185+ {"name" : "GITSYNC_HTTP_BIND" , "value" : ":1234" },
175186 ],
176187 "volumeMounts" : [{"mountPath" : "/git" , "name" : "dags" }],
177188 "resources" : {},
189+ "startupProbe" : {
190+ "httpGet" : {"path" : "/" , "port" : 1234 },
191+ "timeoutSeconds" : 1 ,
192+ "failureThreshold" : 10 ,
193+ "initialDelaySeconds" : 0 ,
194+ "periodSeconds" : 5 ,
195+ },
178196 }
179197
180198 def test_validate_if_ssh_params_are_added (self ):
0 commit comments