Commit c196466
Mark Gritter
[POA-1340] Add a mechanism to randomly _not_ start apidump. (#17)
Controlled by a flag and a new environment variable.
The use case here is that we want to run the agent but some, but not
all, of the pods in a critical deployment. This is not a great solution,
but it's much easier than the alternatives considered. The deployment
can include a probability as an environment variable that any given
apidump command will run; those that don't run will just hang forever to
avoid any problems caused by container exit.
One downside is that changing the environment variable causes all the
pods to be restarted.1 parent 51ea8bb commit c196466
1 file changed
+52
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| |||
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
49 | 91 | | |
50 | 92 | | |
51 | 93 | | |
52 | 94 | | |
53 | 95 | | |
54 | 96 | | |
55 | 97 | | |
| 98 | + | |
| 99 | + | |
56 | 100 | | |
57 | 101 | | |
58 | 102 | | |
| |||
344 | 388 | | |
345 | 389 | | |
346 | 390 | | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
347 | 399 | | |
0 commit comments