Skip to content

Commit 00c211a

Browse files
authored
fix: fix the name of CRD that knative-eventing looks for (#281)
In a previous commit, a check for knative CRDs was introduced, but for knative-eventing, it was incorrectly set up. This commit fixes the name of the CRD that the knative-eventing charm should look up for.
1 parent 141feb7 commit 00c211a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

charms/knative-eventing/src/charm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def _main(self, event):
9292
# Check the KnativeServing CRD is present; otherwise defer
9393
lightkube_client = Client()
9494
try:
95-
lightkube_client.get(CustomResourceDefinition, "knativeservings.operator.knative.dev")
95+
lightkube_client.get(CustomResourceDefinition, "knativeeventings.operator.knative.dev")
9696
self._apply_and_set_status()
9797
except ApiError as e:
9898
if e.status.code == 404:

0 commit comments

Comments
 (0)