-
Notifications
You must be signed in to change notification settings - Fork 350
chore(*) status poller cleanups #875
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
Conversation
Signed-off-by: Nikolay Nikolaev <[email protected]>
Signed-off-by: Nikolay Nikolaev <[email protected]>
Signed-off-by: Nikolay Nikolaev <[email protected]>
Signed-off-by: Nikolay Nikolaev <[email protected]>
| k8sReadOnlyMessage = "On Kubernetes you cannot change the state of Kuma resources with 'kumactl apply' or via the HTTP API." + | ||
| " As a best practice, you should always be using 'kubectl apply' instead." + | ||
| " You can still use 'kumactl' or the HTTP API to make read-only operations. On Universal this limitation does not apply.\n" | ||
| //globalReadOnlyMessage = "On global control plane you can not modify dataplane resources with 'kumactl apply' or via the HTTP API." + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it here intentionally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes it is intentional
| for _, definition := range definitions.All { | ||
| if definition.ResourceFactory().GetType() != mesh.DataplaneType { | ||
| definition.ReadOnly = true | ||
| if cfg.Mode.Mode != mode.Standalone { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this if is not needed if there is a switch below
Summary
Cleanup the status poller code from the remains of the old HTTP probing mechanism. Also use DialTimeout instead.