Skip to content
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

Antctl multicluster Doc for antctl.md #3414

Merged
merged 1 commit into from
Mar 28, 2022

Conversation

bangqipropel
Copy link
Contributor

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Mar 7, 2022

Codecov Report

Merging #3414 (e80cfcb) into main (a539b78) will decrease coverage by 10.47%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #3414       +/-   ##
===========================================
- Coverage   65.46%   54.98%   -10.48%     
===========================================
  Files         278      392      +114     
  Lines       27771    43057    +15286     
===========================================
+ Hits        18179    23677     +5498     
- Misses       7666    16976     +9310     
- Partials     1926     2404      +478     
Flag Coverage Δ
integration-tests 38.22% <ø> (?)
kind-e2e-tests 51.26% <ø> (-3.93%) ⬇️
unit-tests 43.36% <ø> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/apis/controlplane/types.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/controller/networkpolicy/store/group.go 5.00% <0.00%> (-70.00%) ⬇️
pkg/apis/controlplane/helper.go 33.33% <0.00%> (-66.67%) ⬇️
pkg/controller/networkpolicy/convert.go 0.00% <0.00%> (-64.52%) ⬇️
pkg/controller/networkpolicy/tier.go 12.50% <0.00%> (-40.00%) ⬇️
pkg/apiserver/handlers/webhook/convert_crd.go 2.56% <0.00%> (-32.48%) ⬇️
pkg/controller/types/group.go 53.57% <0.00%> (-32.15%) ⬇️
pkg/controller/networkpolicy/validate.go 48.07% <0.00%> (-32.14%) ⬇️
pkg/controller/networkpolicy/status_controller.go 66.47% <0.00%> (-16.77%) ⬇️
pkg/util/k8s/name.go 25.00% <0.00%> (-12.50%) ⬇️
... and 145 more

@luolanzone
Copy link
Contributor

@bangqipropel you can do a force push to change the structure. thanks.

@luolanzone luolanzone added the area/multi-cluster Issues or PRs related to multi cluster. label Mar 8, 2022
docs/antctl.md Outdated

### Multi-Cluster commands

Starting with version 1.6.0, Antrea supports the `antctl mc` commands, which can collect information from multicluster cluster.
Copy link
Contributor

Choose a reason for hiding this comment

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

s/with/from/
s/multicluster cluster/a leader cluster in a ClusterSet./

docs/antctl.md Outdated
### Multi-Cluster commands

Starting with version 1.6.0, Antrea supports the `antctl mc` commands, which can collect information from multicluster cluster.
This information is useful when tryting to troubleshoot issues in
Copy link
Contributor

Choose a reason for hiding this comment

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

s/tryting/trying/
s/in/in a ClusterSet/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

docs/antctl.md Outdated
ClusterSet, ResourceImport, and ResourceExport, than using the default table
output format.
```bash
antctl mc get clusterset [NAME] [-n NAMESPACE] [-o yaml] [--ALLNAMESPACES]
Copy link
Contributor

Choose a reason for hiding this comment

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

s/--ALLNAMESPACES/-A/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

docs/antctl.md Outdated

Starting with version 1.6.0, Antrea supports the `antctl mc` commands, which can collect information from multicluster cluster.
This information is useful when tryting to troubleshoot issues in
- `antctl` `mc` `get clusterset` (or `get clustersets`) command can print all
Copy link
Contributor

Choose a reason for hiding this comment

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

s/antctl mc get clusterset/antctl mc get clusterset
please also fix following format issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@bangqipropel bangqipropel changed the title [WIP] Antctl multicluster Doc for antctl.md Antctl multicluster Doc for antctl.md Mar 9, 2022
@bangqipropel bangqipropel force-pushed the antctl_mc_doc branch 3 times, most recently from 184bc39 to 8298b68 Compare March 10, 2022 23:00
@bangqipropel
Copy link
Contributor Author

@luolanzone @hjiajing @jianjun can this be reviewed? Thanks!

docs/antctl.md Outdated

### Multi-Cluster commands

For information about Antrea Multi-Cluster commands, refer to the
Copy link
Contributor

Choose a reason for hiding this comment

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

please refer to

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Starting from version 1.6.0, Antrea supports the `antctl mc` commands, which can collect information from a leader cluster in a ClusterSet.
This information is useful when trying to troubleshoot issues in an Antrea Multi-cluster ClusterSet.

All antctl multi-cluster commands can only run correctly after [deploying Antrea Multi-cluster](./getting-started.md) successfully.
Copy link
Contributor

Choose a reason for hiding this comment

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

s/multi-cluster/Multi-cluster

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Namespace, or ResourceExports in a specific cluster.

Using the `json` or `yaml` antctl output format can print more information of
ClusterSet, ResourceImport, and ResourceExport, than using the default table
Copy link
Contributor

Choose a reason for hiding this comment

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

s/, than/ than

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

output format.

```bash
antctl mc get clusterset [NAME] [-n NAMESPACE] [-o yaml] [-A]
Copy link
Contributor

Choose a reason for hiding this comment

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

s/[-o yaml]/[-o json|yaml]/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@bangqipropel
Copy link
Contributor Author

@jianjuns @antoninbas can this be reviewed? thank you!

docs/antctl.md Outdated
@@ -33,6 +33,7 @@ running in three different modes:
- [Flow Aggregator commands](#flow-aggregator-commands)
- [Dumping flow records](#dumping-flow-records)
- [Record metrics](#record-metrics)
- [Multi-Cluster commands](#multi-cluster-commands)
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 we generally use "Multi-cluster"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

Choose a reason for hiding this comment

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

I changed it back to Multi-Cluster since this is automatically generated, and it will fail during TOC CI verify if we change it to Multi-cluster

Copy link
Contributor

Choose a reason for hiding this comment

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

ignore me, I shouldn't change here, I updated Multi-Cluster to Multi-cluster in the description section, then we can have the right TOC title here.

docs/antctl.md Outdated
### Multi-Cluster commands

For information about Antrea Multi-Cluster commands, please refer to the
[Antctl Multi-cluster command line](./multicluster/antctl.md).
Copy link
Contributor

Choose a reason for hiding this comment

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

antctl Multi-cluster commands

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

docs/antctl.md Outdated
### Multi-Cluster commands

For information about Antrea Multi-Cluster commands, please refer to the
[Antctl Multi-cluster command line](./multicluster/antctl.md).
Copy link
Contributor

Choose a reason for hiding this comment

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

antctl Multi-cluster commands

@@ -0,0 +1,28 @@
# Antctl Multi-cluster command line
Copy link
Contributor

Choose a reason for hiding this comment

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

Antctl Multi-cluster commands

@@ -0,0 +1,28 @@
# Antctl Multi-cluster command line
Copy link
Contributor

Choose a reason for hiding this comment

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

Antctl Multi-cluster commands

All antctl Multi-cluster commands can only run correctly after [deploying Antrea Multi-cluster](./getting-started.md) successfully.

- `antctl mc get clusterset` (or `get clustersets`) command can print all
ClusterSets, a specified Clusterset, or ClusterSets in a specified
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 we support only a single ClusterSet in a Namespace?


- `antctl mc get clusterset` (or `get clustersets`) command can print all
ClusterSets, a specified Clusterset, or ClusterSets in a specified
Namespace.
Copy link
Contributor

Choose a reason for hiding this comment

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

leader cluster Namespace


- `antctl mc get clusterset` (or `get clustersets`) command can print all
ClusterSets, a specified Clusterset, or ClusterSets in a specified
Namespace.
Copy link
Contributor

Choose a reason for hiding this comment

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

leader cluster Namespace

Namespace.
- `antctl mc get resourceexport` (or `get resourceexports`, `get re`) command can print all
ResourceExports, a specified ResourceExport, ResourceExports in a specified
Namespace, or ResourceExports in a specific cluster.
Copy link
Contributor

Choose a reason for hiding this comment

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

; or ResourceExports in a specific member cluster.

Namespace.
- `antctl mc get resourceexport` (or `get resourceexports`, `get re`) command can print all
ResourceExports, a specified ResourceExport, ResourceExports in a specified
Namespace, or ResourceExports in a specific cluster.
Copy link
Contributor

Choose a reason for hiding this comment

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

; or ResourceExports in a specific member cluster.

jianjuns
jianjuns previously approved these changes Mar 22, 2022
Copy link
Contributor

@jianjuns jianjuns left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

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

Doc content LGTM, but there is format issue and docs/antctl.md shouldn't be added to exception list.

@@ -0,0 +1,26 @@
# Antctl Multi-cluster commands

Starting from version 1.6.0, Antrea supports the `antctl mc` commands, which can collect information from a leader cluster in a ClusterSet, for troubleshooting issues in an Antrea Multi-cluster ClusterSet.
Copy link
Member

Choose a reason for hiding this comment

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

Could you wrap the lines like other docs? Typically for docs we limit 80 chars per line so we could see the whole lines in some editors. But you don't need to break lines for code block and link.

Copy link
Contributor

Choose a reason for hiding this comment

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

done

@@ -1,5 +1,6 @@
docs/aks-installation.md
docs/api.md
docs/antctl.md
Copy link
Member

Choose a reason for hiding this comment

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

This doc has table of contents and we need CI to ensure it's accurate, why adding it to the exception list?

Copy link
Contributor

Choose a reason for hiding this comment

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

removed it.

tnqn
tnqn previously approved these changes Mar 25, 2022
Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

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

LGTM

@tnqn
Copy link
Member

tnqn commented Mar 25, 2022

/skip-all

@tnqn
Copy link
Member

tnqn commented Mar 25, 2022

Doc verify failed. It's because this PR doesn't rebase on main branch and uses a stale link: getting-started.md has been renamed to "user-guide.md" by #3513.

FILE: ./docs/multicluster/antctl.md
[✖] ./getting-started.md

1 links checked.

ERROR: 1 dead links found!
[✖] ./getting-started.md → Status: 400

luolanzone
luolanzone previously approved these changes Mar 26, 2022
Copy link
Contributor

@luolanzone luolanzone left a comment

Choose a reason for hiding this comment

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

LGTM

Namespace.
- `antctl mc get resourceexport` (or `get resourceexports`, `get re`) command can print all
ResourceExports, a specified ResourceExport, ResourceExports in a specified
Namespace, or ResourceExports in a specific member cluster.
Copy link
Member

Choose a reason for hiding this comment

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

The lines are not aligned consistently.

Copy link
Contributor

Choose a reason for hiding this comment

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

fixed.

Signed-off-by: zbangqi <[email protected]>
@tnqn tnqn closed this Mar 26, 2022
@tnqn tnqn reopened this Mar 26, 2022
@tnqn
Copy link
Member

tnqn commented Mar 26, 2022

/skip-all

@tnqn tnqn merged commit 404da37 into antrea-io:main Mar 28, 2022
@tnqn tnqn added the action/release-note Indicates a PR that should be included in release notes. label Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/release-note Indicates a PR that should be included in release notes. area/multi-cluster Issues or PRs related to multi cluster.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants