Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@nickolaev
Copy link
Contributor

Summary

Cleanup the status poller code from the remains of the old HTTP probing mechanism. Also use DialTimeout instead.

Nikolay Nikolaev added 2 commits June 30, 2020 09:38
@nickolaev nickolaev requested a review from a team June 30, 2020 06:44
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." +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it here intentionally?

Copy link
Contributor Author

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 {
Copy link
Contributor

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

@nickolaev nickolaev merged commit 46e9182 into master Jun 30, 2020
@nickolaev nickolaev deleted the chore/status_poller_cleanups branch July 15, 2020 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants