diff --git a/client-programs/pkg/cmd/admin_platform_deploy_cmd.go b/client-programs/pkg/cmd/admin_platform_deploy_cmd.go index 8c7752f3..993fdf26 100644 --- a/client-programs/pkg/cmd/admin_platform_deploy_cmd.go +++ b/client-programs/pkg/cmd/admin_platform_deploy_cmd.go @@ -13,6 +13,7 @@ import ( type AdminPlatformDeployOptions struct { Config string Kubeconfig string + Provider string Version string } @@ -23,7 +24,7 @@ func (o *AdminPlatformDeployOptions) Run() error { return err } - fullConfig.ClusterInfrastructure.Provider = "kind" + fullConfig.ClusterInfrastructure.Provider = o.Provider clusterConfig := cluster.NewClusterConfig(o.Kubeconfig) @@ -67,6 +68,12 @@ func (p *ProjectInfo) NewAdminPlatformDeployCmd() *cobra.Command { "", "kubeconfig file to use instead of $KUBECONFIG or $HOME/.kube/config", ) + c.Flags().StringVar( + &o.Provider, + "provider", + "kind", + "infastructure provider deployment is being made to", + ) c.Flags().StringVar( &o.Version, "version", diff --git a/client-programs/pkg/cmd/admin_services_deploy_cmd.go b/client-programs/pkg/cmd/admin_services_deploy_cmd.go index 0bbafcbd..917ce822 100644 --- a/client-programs/pkg/cmd/admin_services_deploy_cmd.go +++ b/client-programs/pkg/cmd/admin_services_deploy_cmd.go @@ -13,6 +13,7 @@ import ( type AdminServicesDeployOptions struct { Config string Kubeconfig string + Provider string Version string } @@ -23,7 +24,7 @@ func (o *AdminServicesDeployOptions) Run() error { return err } - fullConfig.ClusterInfrastructure.Provider = "kind" + fullConfig.ClusterInfrastructure.Provider = o.Provider clusterConfig := cluster.NewClusterConfig(o.Kubeconfig) @@ -58,6 +59,12 @@ func (p *ProjectInfo) NewAdminServicesDeployCmd() *cobra.Command { "", "kubeconfig file to use instead of $KUBECONFIG or $HOME/.kube/config", ) + c.Flags().StringVar( + &o.Provider, + "provider", + "kind", + "infastructure provider deployment is being made to", + ) c.Flags().StringVar( &o.Version, "version",