Skip to content

Add explainer text for the flags in the provider-kubeconfig #1195

@devdattakulkarni

Description

@devdattakulkarni

provider-kubeconfig supports the following flags: -s, -f, -k

The "-s" flag is to be used to pass in the IP address of the API server on which KubePlus is installed. This IP address will be used in constructing the server's endpoint in generating the provider kubeconfig. Use parse-api-server-url.sh(https://github.com/cloud-ark/kubeplus/blob/master/parse-api-server-url.sh) to find out the IP address of your cluster's API server.

The "-f" flag is to be used to provide the output file name in which the provider's kubeconfig will be stored.

The "-k" flag is used to specify the path of the kubeconfig file that should be used as part of executing steps in provider-kubeconfig. The default value is ~/.kube/config

The "-p" flag is used to specify the path to permissions file. We should include an example of the permissions file in the help message.

We need to add above documentation to provider-kubeconfig. It can come after the following

parser.add_argument("-p", "--permissionfile", help=permission_help)

Currently, when we run python provider-kubeconfig.py, following output is shown:
usage: provider-kubeconfig.py [-h] [-k KUBECONFIG] [-s SERVERIP] [-f FILENAME] [-p PERMISSIONFILE] {create,delete,update} namespace
The description of each flag should show after this output.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions