-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Notes on Go tutorial #6314
Copy link
Copy link
Closed
Labels
kind/documentationCategorizes issue or PR as related to documentation.Categorizes issue or PR as related to documentation.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.Denotes an issue or PR has remained open with no activity and has become stale.
Milestone
Metadata
Metadata
Assignees
Labels
kind/documentationCategorizes issue or PR as related to documentation.Categorizes issue or PR as related to documentation.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.Denotes an issue or PR has remained open with no activity and has become stale.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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=3marker. This, in turn, causes thekubectl patchcommand to fail with:main.gogenerated usingoperator-sdkcommand doesn't haveMemcachedReconciler.Recorderinitialized like here. It causes the controller to panic in theReconcilemethod.containerPort. AddingcontainerPort: 11211to the spec helps fix it.What needs fixing?
kubectl patchcommand or, adding a note in the doc would be helpful.containerPort: 11211to 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.