-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Notes on Go tutorial #6314
Comments
I can open a PR to address these points I have raised. But I'd like to know from the team if I'm looking at this right or misunderstanding something myself. :) |
Sure, we'd love for you to submit a PR to fix these.
|
I've opened a PR for 1 & 3. |
For (2), I see what the issue is: The operator-idk init command does not initialize the recorder used for recording events from EventSource. Whereas in the reconciler code, we record a delete event, which when directly copied by users into the project scaffolded by
I would vote for (1), given:
|
When/where is this sample Or, would adding it to this place automatically ensure such a TODO shows up in the
+1. That would surely help. |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
What is the URL of the document?
https://sdk.operatorframework.io/docs/building-operators/golang/tutorial/
Which section(s) is the issue in?
// +kubebuilder:validation:Maximum=3
marker. This, in turn, causes thekubectl patch
command to fail with:main.go
generated usingoperator-sdk
command doesn't haveMemcachedReconciler.Recorder
initialized like here. It causes the controller to panic in theReconcile
method.containerPort
. AddingcontainerPort: 11211
to the spec helps fix it.What needs fixing?
kubectl patch
command or, adding a note in the doc would be helpful.containerPort: 11211
to the spec helps fix it.Additional context
I'm trying the operator-sdk tutorial for the first time, so let me know if I'm making a mistake instead of something being amiss in the docs.
The text was updated successfully, but these errors were encountered: