Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kamel operator does not work locally #3472

Closed
squakez opened this issue Jul 21, 2022 · 6 comments · Fixed by #3540
Closed

kamel operator does not work locally #3472

squakez opened this issue Jul 21, 2022 · 6 comments · Fixed by #3540
Labels
area/operator kind/bug Something isn't working

Comments

@squakez
Copy link
Contributor

squakez commented Jul 21, 2022

The local camel k operator debugging procedure is not working any longer. The operator starts correctly but it is not able to run any Integration. I've tried setting KAMEL_OPERATOR_ID env variable but no luck.

I think it relates the changes introduced in #3358.

@squakez squakez added kind/bug Something isn't working area/operator labels Jul 21, 2022
@squakez
Copy link
Contributor Author

squakez commented Jul 21, 2022

@christophd do you mind having a look? is there any quick workaround?

@christophd
Copy link
Contributor

yes I have a look. What happens if you run the integration? is it being reconciled by the operator? also do you have a WATCH_NAMESPACE env set for the local operator? do you have any other global operator running on that environment?

@squakez
Copy link
Contributor Author

squakez commented Jul 21, 2022

I've set the WATCH_NAMESPACE. The integration complains that an IntegrationPlatform is not found (even if I had to create on that namespace to override the registry setting).

@squakez
Copy link
Contributor Author

squakez commented Aug 11, 2022

I managed to see that the problem is that the local operator does not understand the camel.apache.org/operator.id: camel-k annotation. If I remove it from both IntegrationPlatform and Integration they are reconciled correctly. We must understand how to make the local running operator to reconcile based on the annotation, as, for development purposes, having the local operator is really a must.

@squakez
Copy link
Contributor Author

squakez commented Aug 11, 2022

I had another try with clean environment, and, if we set the KAMEL_OPERATOR_ID with the name of the operator, then, the resources are reconciled. I'll update the documentation accordingly.

@christophd
Copy link
Contributor

@squakez yes, I have started some investigation but got distracted by other stuff.

I also wanted to ask: In your scenario do you have another traditional operator running on the cluster? or is it only the local operator?

squakez added a commit to squakez/camel-k that referenced this issue Aug 11, 2022
squakez added a commit to squakez/camel-k that referenced this issue Aug 11, 2022
squakez added a commit that referenced this issue Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/operator kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants