Commit 30e5223
committed
Track dependency conditions when parsing cnditional depends_on
This commit changes the way that depends_on blocks are parsed and
tracked during the `podman-compose up` process.
Each service's dependencies will be tracked as a dict in which keys are
services being depended on and values are the condition to be met by
said services before the current service can start.
This lays the groundwork for supporting long-syntax / conditional
depends_on blocks, but should not change any behavior so far.
Signed-off-by: Adrian Torres <atorresj@redhat.com>1 parent 7b99b38 commit 30e5223
File tree
3 files changed
+110
-9
lines changed- pytests
- tests/deps
3 files changed
+110
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
105 | 126 | | |
106 | 127 | | |
107 | 128 | | |
| |||
987 | 1008 | | |
988 | 1009 | | |
989 | 1010 | | |
990 | | - | |
991 | | - | |
| 1011 | + | |
992 | 1012 | | |
993 | 1013 | | |
994 | 1014 | | |
995 | 1015 | | |
996 | | - | |
| 1016 | + | |
997 | 1017 | | |
| 1018 | + | |
| 1019 | + | |
998 | 1020 | | |
999 | 1021 | | |
1000 | | - | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
1001 | 1025 | | |
1002 | | - | |
1003 | | - | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
1004 | 1040 | | |
| 1041 | + | |
| 1042 | + | |
1005 | 1043 | | |
1006 | 1044 | | |
1007 | 1045 | | |
1008 | | - | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
1009 | 1051 | | |
1010 | 1052 | | |
1011 | 1053 | | |
| |||
1922 | 1964 | | |
1923 | 1965 | | |
1924 | 1966 | | |
1925 | | - | |
| 1967 | + | |
1926 | 1968 | | |
1927 | 1969 | | |
1928 | 1970 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
0 commit comments