Skip to content

Commit

Permalink
Soft disable client side dependencies (#440)
Browse files Browse the repository at this point in the history
* Soft disable dependencies

* FrameworkVersion -> OperatorVersion
  • Loading branch information
gerred authored and kensipe committed Jun 28, 2019
1 parent 34ffdb1 commit f3bd8b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion pkg/kudoctl/cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ func newInstallCmd() *cobra.Command {
SilenceUsage: true,
}

installCmd.Flags().BoolVar(&options.AllDependencies, "all-dependencies", false, "Installs all dependency packages. (default \"false\")")
installCmd.Flags().BoolVar(&options.AutoApprove, "auto-approve", false, "Skip interactive approval when existing version found. (default \"false\")")
installCmd.Flags().StringVar(&options.KubeConfigPath, "kubeconfig", "", "The file path to Kubernetes configuration file. (default \"$HOME/.kube/config\")")
installCmd.Flags().StringVar(&options.InstanceName, "instance", "", "The instance name. (default to Operator name)")
Expand Down
4 changes: 3 additions & 1 deletion pkg/kudoctl/cmd/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ type Options struct {

// DefaultOptions initializes the install command options to its defaults
var DefaultOptions = &Options{
Namespace: "default",
Namespace: "default",
AllDependencies: false,
}

// Run returns the errors associated with cmd env
Expand Down Expand Up @@ -165,6 +166,7 @@ func installOperator(operatorArgument string, isDependencyInstall bool, reposito
}

// Dependencies of the particular OperatorVersion
// TODO (@gerred): Remove dead code branch
if options.AllDependencies {
dependencyOperators, err := repo.GetOperatorVersionDependencies(crds.OperatorVersion)
if err != nil {
Expand Down

0 comments on commit f3bd8b8

Please sign in to comment.