Skip to content

Conversation

kingdonb
Copy link
Contributor

@kingdonb kingdonb commented Mar 8, 2021

Someone's text editor has made this U+2014 : EM DASH instead of a double-dash. Closes #3835

@kingdonb
Copy link
Contributor Author

kingdonb commented Mar 8, 2021

I think the following section has a similar error. The dashes are proper ASCII hyphen-minus, but they are single dashes and should be double dashes. Pushing up another commit to address this while I'm here.

Copy link
Collaborator

@bboreham bboreham left a comment

Choose a reason for hiding this comment

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

Thanks; it turns out single-hyphen arguments are valid, though I'm ok to change for consistency.
https://golang.org/pkg/flag/#hdr-Command_line_flag_syntax

site/faq.md Outdated
## Disabling Scope Write Access

Can be done by using the `probe.no-controls` option and set it to false for the scope agents. This can be done in the scope deployment manifest under the `weave-scope-agent`'s argument section with `probe.no-controls=true`.
Can be done by using the `probe.no-controls` option and set it to false for the scope agents. This can be done in the scope daemonset manifest under the `weave-scope-agent`'s argument section with `--probe.no-controls=true`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nowadays we have both a Deployment (which handles Kubernetes data for the whole cluster) and a DaemonSet (which handles everything else on a per-host basis).

Copy link
Contributor Author

@kingdonb kingdonb Mar 9, 2021

Choose a reason for hiding this comment

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

Ah. Does it need to be passed on to both then? I only noticed one (my cluster is also a single node)

My update went to the daemonset and it seemed to do the trick

Edit: I read your comment in the associated issue. I'll test again and update the PR later this morning to say daemonset and deployment. 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I read once more carefully and it looks like there was another error in this paragraph. I think it reads correctly now.

@kingdonb
Copy link
Contributor Author

kingdonb commented Mar 9, 2021

That makes sense. I was just going by what I saw was already in use in existing args in the daemonset.

* use double dashes for consistency
* fixup - says "set it to false", should be "true"
* fixup - the deployment and the daemonset both need this setting

Signed-off-by: Kingdon Barrett <kingdon@weave.works>
@kingdonb
Copy link
Contributor Author

This was confirmed in #3835 👍

@bboreham bboreham merged commit 86add9a into master Mar 17, 2021
@bboreham bboreham deleted the no-controls-faq branch March 17, 2021 09:37
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.

Allow disabling container operations
2 participants