Commit a8a15b1
authored
fix: apiVersion match for standard K8s resources (#2724)
The HasMetadata.getApiVersion(primaryResourceType) method return "/v1" for
the ConfigMap type. Since the K8s owner reference uses "v1" instead, the
secondary resource of a primary ConfigMap will not be tracked correctly.
Proposed fix for #2723
Signed-off-by: Mathias Nicolajsen Kjaergaard <[email protected]>1 parent 4ae9361 commit a8a15b1
File tree
2 files changed
+27
-1
lines changed- operator-framework-core/src
- main/java/io/javaoperatorsdk/operator/processing/event/source/informer
- test/java/io/javaoperatorsdk/operator/processing/event/source/informer
2 files changed
+27
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | | - | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
32 | 57 | | |
33 | 58 | | |
34 | 59 | | |
| |||
0 commit comments