Increase test coverage
* Few more minor changes to increase test coverage Change-Id: Id34a33732d3201637027cb3eb512a245acbd77b5changes/40/713740/8
parent
a37a8800cc
commit
d630b55235
@ -0,0 +1,37 @@
|
||||
Error: accepts 1 arg(s), received 2
|
||||
Usage:
|
||||
set-cluster NAME [flags]
|
||||
|
||||
Examples:
|
||||
|
||||
# Set the server field on the ephemeral exampleCluster
|
||||
airshipctl config set-cluster exampleCluster \
|
||||
--cluster-type=ephemeral \
|
||||
--server=https://1.2.3.4
|
||||
|
||||
# Embed certificate authority data for the target exampleCluster
|
||||
airshipctl config set-cluster exampleCluster \
|
||||
--cluster-type=target \
|
||||
--client-certificate-authority=$HOME/.airship/ca/kubernetes.ca.crt \
|
||||
--embed-certs
|
||||
|
||||
# Disable certificate checking for the target exampleCluster
|
||||
airshipctl config set-cluster exampleCluster
|
||||
--cluster-type=target \
|
||||
--insecure-skip-tls-verify
|
||||
|
||||
# Configure client certificate for the target exampleCluster
|
||||
airshipctl config set-cluster exampleCluster \
|
||||
--cluster-type=target \
|
||||
--embed-certs \
|
||||
--client-certificate=$HOME/.airship/cert_file
|
||||
|
||||
|
||||
Flags:
|
||||
--certificate-authority string path to a certificate authority
|
||||
--cluster-type string the type of the cluster to add or modify
|
||||
--embed-certs if set, embed the client certificate/key into the cluster
|
||||
-h, --help help for set-cluster
|
||||
--insecure-skip-tls-verify if set, disable certificate checking (default true)
|
||||
--server string server to use for the cluster
|
||||
|
@ -0,0 +1,40 @@
|
||||
Create or modify a cluster in the airshipctl config files.
|
||||
|
||||
Since a cluster can be either "ephemeral" or "target", you must specify
|
||||
cluster-type when managing clusters.
|
||||
|
||||
Usage:
|
||||
set-cluster NAME [flags]
|
||||
|
||||
Examples:
|
||||
|
||||
# Set the server field on the ephemeral exampleCluster
|
||||
airshipctl config set-cluster exampleCluster \
|
||||
--cluster-type=ephemeral \
|
||||
--server=https://1.2.3.4
|
||||
|
||||
# Embed certificate authority data for the target exampleCluster
|
||||
airshipctl config set-cluster exampleCluster \
|
||||
--cluster-type=target \
|
||||
--client-certificate-authority=$HOME/.airship/ca/kubernetes.ca.crt \
|
||||
--embed-certs
|
||||
|
||||
# Disable certificate checking for the target exampleCluster
|
||||
airshipctl config set-cluster exampleCluster
|
||||
--cluster-type=target \
|
||||
--insecure-skip-tls-verify
|
||||
|
||||
# Configure client certificate for the target exampleCluster
|
||||
airshipctl config set-cluster exampleCluster \
|
||||
--cluster-type=target \
|
||||
--embed-certs \
|
||||
--client-certificate=$HOME/.airship/cert_file
|
||||
|
||||
|
||||
Flags:
|
||||
--certificate-authority string path to a certificate authority
|
||||
--cluster-type string the type of the cluster to add or modify
|
||||
--embed-certs if set, embed the client certificate/key into the cluster
|
||||
-h, --help help for set-cluster
|
||||
--insecure-skip-tls-verify if set, disable certificate checking (default true)
|
||||
--server string server to use for the cluster
|
@ -0,0 +1,37 @@
|
||||
Error: accepts 1 arg(s), received 0
|
||||
Usage:
|
||||
set-cluster NAME [flags]
|
||||
|
||||
Examples:
|
||||
|
||||
# Set the server field on the ephemeral exampleCluster
|
||||
airshipctl config set-cluster exampleCluster \
|
||||
--cluster-type=ephemeral \
|
||||
--server=https://1.2.3.4
|
||||
|
||||
# Embed certificate authority data for the target exampleCluster
|
||||
airshipctl config set-cluster exampleCluster \
|
||||
--cluster-type=target \
|
||||
--client-certificate-authority=$HOME/.airship/ca/kubernetes.ca.crt \
|
||||
--embed-certs
|
||||
|
||||
# Disable certificate checking for the target exampleCluster
|
||||
airshipctl config set-cluster exampleCluster
|
||||
--cluster-type=target \
|
||||
--insecure-skip-tls-verify
|
||||
|
||||
# Configure client certificate for the target exampleCluster
|
||||
airshipctl config set-cluster exampleCluster \
|
||||
--cluster-type=target \
|
||||
--embed-certs \
|
||||
--client-certificate=$HOME/.airship/cert_file
|
||||
|
||||
|
||||
Flags:
|
||||
--certificate-authority string path to a certificate authority
|
||||
--cluster-type string the type of the cluster to add or modify
|
||||
--embed-certs if set, embed the client certificate/key into the cluster
|
||||
-h, --help help for set-cluster
|
||||
--insecure-skip-tls-verify if set, disable certificate checking (default true)
|
||||
--server string server to use for the cluster
|
||||
|
Loading…
Reference in New Issue