Commit ce070d3
fix(olm): improve error logging for missing olm.managed label (#3558)
Previously, nonconforming CRDs (missing the label) were logged as INFO,
but this caused the to enter a CrashLoopBackOff state due to unhandled inconsistencies.
This commit raises the log level to and enhances the message with actionable advice,
clarifying that users should either delete CRDs for uninstalled solutions or label them appropriately.
The root cause of the scenario is: From an old release (ocp 4.15) the component managed by OLM should have the label olm.managed: true added to comply with the new checks.
Upstream-repository: operator-lifecycle-manager
Upstream-commit: 1d9eafd4278ec97ea4caa1b6d56d5f901d5503741 parent 1a581ba commit ce070d3
File tree
2 files changed
+12
-2
lines changed- staging/operator-lifecycle-manager/pkg/controller/operators/labeller
- vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/labeller
2 files changed
+12
-2
lines changedLines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
180 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
181 | 186 | | |
182 | 187 | | |
183 | 188 | | |
| |||
Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments