Commit 5ceb08f
authored
Rework error reporting (kroxylicious#2007)
* Remove the `KafkaProxy.status.clusters` conditions, using the `VirtualKafkaCluster.status.conditions`
* Use `KafkaProxyContext` to manage the items in the context.managedWorkflowAndDependentResourceContext() (removing `SharedKafkaProxyContext` for more consistent naming).
Initialize this in `KafkaProxyReconciler#initContext()` so that all the dependent resources see the same sets of referenced resources.
* `ProxyConfigConfigMap` now writes a list of conditions for each cluster to the Proxy CM
* VirtualKafkaClusterReconciler now has the proxy ConfigMap as a secondary resource, and uses the list of conditions written by the `ProxyConfigConfigMap` (during the KafkaProxyReconciliation) to update the `VirtualKafkaCluster.status.conditions` for one cluster.
Also some other changes
* Have `KafkaProxyReconciler`'s constructor accept a `Clock`, like the other reconcilers
* Factor out `ProxyConfigData` for encapsulating the contents of the Proxy ConfigMap's data section.
* Alloc ResourceUtil's `maybeAddOrUpdateCondition` to take a list of conditions, rather than just one.
* ClusterCondition and InvalidClusterException gone, plus related tests.
Signed-off-by: Tom Bentley <[email protected]>1 parent a524f56 commit 5ceb08f
File tree
58 files changed
+756
-752
lines changed- kroxylicious-operator
- src
- main/java/io/kroxylicious/kubernetes
- api/common
- operator
- model
- ingress
- resolver
- test
- java/io/kroxylicious/kubernetes/operator
- assertj
- resolver
- resources/DerivedResourcesTest
- clusterref-resource-not-found
- colliding-secret-interpolation
- filter-resource-not-found
- minimal
- two-clusters-one-with-unresolved-ingress
- two-clusters-with-clusterip-ingress
- two-clusters-with-colliding-ingress-and-unresolved-filter
- two-filters
- use-pod-template-spec
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
58 files changed
+756
-752
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
129 | 133 | | |
130 | 134 | | |
131 | 135 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
Lines changed: 0 additions & 48 deletions
This file was deleted.
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
| |||
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
53 | | - | |
54 | | - | |
| 51 | + | |
| 52 | + | |
55 | 53 | | |
56 | | - | |
| 54 | + | |
57 | 55 | | |
58 | 56 | | |
59 | 57 | | |
| |||
Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 49 additions & 0 deletions
| 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 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
Lines changed: 16 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
86 | | - | |
| 89 | + | |
| 90 | + | |
87 | 91 | | |
88 | 92 | | |
89 | | - | |
| 93 | + | |
| 94 | + | |
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | 98 | | |
98 | 99 | | |
99 | | - | |
| 100 | + | |
100 | 101 | | |
101 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
| |||
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
114 | | - | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| |||
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
126 | | - | |
| 129 | + | |
127 | 130 | | |
128 | 131 | | |
129 | 132 | | |
| |||
135 | 138 | | |
136 | 139 | | |
137 | 140 | | |
138 | | - | |
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
| |||
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
153 | | - | |
154 | | - | |
| 155 | + | |
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | 161 | | |
173 | 162 | | |
174 | 163 | | |
175 | 164 | | |
176 | | - | |
| 165 | + | |
177 | 166 | | |
178 | 167 | | |
179 | 168 | | |
| |||
224 | 213 | | |
225 | 214 | | |
226 | 215 | | |
227 | | - | |
| 216 | + | |
228 | 217 | | |
229 | 218 | | |
230 | 219 | | |
| |||
245 | 234 | | |
246 | 235 | | |
247 | 236 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | 237 | | |
263 | 238 | | |
264 | 239 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
0 commit comments