Skip to content

Commit dd7b754

Browse files
jichenjck8s-ci-robot
authored andcommitted
Fix failed to create cluster (#396)
this is different to container (statefulset), it's clusterctl command that didn't register openstack provider
1 parent 44daa4e commit dd7b754

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmd/clusterctl/main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,15 @@ limitations under the License.
1717
package main
1818

1919
import (
20+
"sigs.k8s.io/cluster-api-provider-openstack/pkg/deployer"
2021
"sigs.k8s.io/cluster-api/cmd/clusterctl/cmd"
22+
clustercommon "sigs.k8s.io/cluster-api/pkg/apis/cluster/common"
2123
)
2224

25+
func init() {
26+
clustercommon.RegisterClusterProvisioner("openstack", deployer.New())
27+
}
28+
2329
func main() {
2430
cmd.Execute()
2531
}

0 commit comments

Comments
 (0)