Skip to content

Commit 76a3ba7

Browse files
committed
Update examples
1 parent 99902c5 commit 76a3ba7

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

cmd/plugin/cmd/init.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -96,26 +96,26 @@ var initCmd = &cobra.Command{
9696
# Initialize CAPI operator only without installing any providers.
9797
# capioperator init
9898
99-
# Initialize a management cluster, by installing the given infrastructure provider.
100-
#
101-
# Note: when this command is executed on an empty management cluster,
102-
# it automatically triggers the installation of the Cluster API core provider.
103-
capioperator init --infrastructure=aws
99+
# Initialize a management cluster, by installing the given core and infrastructure provider.
100+
capioperator init --core=cluster-api --infrastructure=aws --config-secret-name=capa-secret
104101
105-
# Initialize a management cluster with a specific version of the given infrastructure provider.
106-
capioperator init --infrastructure=aws:v0.4.1
102+
# Initialize a management cluster with a specific version of the given infrastructure provider in the default namespace.
103+
capioperator init --core=cluster-api --infrastructure=aws::v2.3.0 --config-secret-name=capa-secret
104+
105+
# Initialize a management cluster with a specific namespace and the latest version of the given infrastructure provider.
106+
capioperator init --core=cluster-api --infrastructure=aws:custom-namespace --config-secret-name=capa-secret
107107
108108
# Initialize a management cluster with a specific version and namespace of the given infrastructure provider.
109-
capioperator init --infrastructure=custom-namespace:aws:v0.4.1
109+
capioperator init --core=cluster-api --infrastructure=aws:custom-namespace:v2.3.0 --config-secret-name=capa-secret
110110
111111
# Initialize a management cluster with a custom kubeconfig path and the given infrastructure provider.
112-
capioperator init --kubeconfig=foo.yaml --infrastructure=aws
112+
capioperator init --kubeconfig=foo.yaml --infrastructure=aws --config-secret-name=capa-secret
113113
114114
# Initialize a management cluster with multiple infrastructure providers.
115-
capioperator init --infrastructure=aws --infrastructure=vsphere
115+
capioperator init --infrastructure=aws --infrastructure=vsphere --config-secret-name=infra-secret
116116
117117
# Initialize a management cluster with a custom target namespace for the operator.
118-
capioperator init --infrastructure aws --target-namespace foo`),
118+
capioperator init --infrastructure aws --config-secret-name=capa-secret --target-namespace foo`),
119119
Args: cobra.NoArgs,
120120
RunE: func(cmd *cobra.Command, args []string) error {
121121
return runInit()

0 commit comments

Comments
 (0)