This repository was archived by the owner on Nov 19, 2024. It is now read-only.
File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class HealthcheckExtraInformation implements ServiceExtraInformation {
73
73
* Rancher strategy recreate unhealthy containers
74
74
* TODO: find recreate value
75
75
*/
76
- const STRATEGY_RECREATE = '??? ' ;
76
+ const STRATEGY_RECREATE = 'recreate ' ;
77
77
78
78
/**
79
79
* Rancher strategy recreate unhealthy containers if at least X containers are still healthy
@@ -223,5 +223,13 @@ public function setStrategy( string $strategy ) {
223
223
$ this ->strategy = $ strategy ;
224
224
}
225
225
226
+ public function setRecreateStrategy () {
227
+ $ this ->strategy = self ::STRATEGY_RECREATE ;
228
+ }
229
+
230
+ public function setDoNothingStrategy () {
231
+ $ this ->strategy = self ::STRATEGY_NONE ;
232
+ }
233
+
226
234
227
235
}
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ private function setHealthcheck()
34
34
$ defaultSetter ->setDefaults ($ healthcheckInformation );
35
35
$ healthcheckInformation ->setPort (80 );
36
36
$ healthcheckInformation ->setInterval (10000 );
37
+ $ healthcheckInformation ->setRecreateStrategy ();
37
38
$ this ->addExtraInformation ($ healthcheckInformation );
38
39
}
39
40
You can’t perform that action at this time.
0 commit comments