@@ -96,26 +96,26 @@ var initCmd = &cobra.Command{
96
96
# Initialize CAPI operator only without installing any providers.
97
97
# capioperator init
98
98
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
104
101
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
107
107
108
108
# 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
110
110
111
111
# 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
113
113
114
114
# 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
116
116
117
117
# 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` ),
119
119
Args : cobra .NoArgs ,
120
120
RunE : func (cmd * cobra.Command , args []string ) error {
121
121
return runInit ()
0 commit comments