-
Notifications
You must be signed in to change notification settings - Fork 24
/
controller.go
40 lines (34 loc) · 1.46 KB
/
controller.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package installation
import (
"github.com/spf13/cobra"
)
func init() {
controllerInstallCmd.Flags().BoolVar(&generateCert, "generate-cert", false, "Generate self signed certificates for Aperture Controller")
}
// controllerInstallCmd is the command to install Aperture Controller on Kubernetes.
var controllerInstallCmd = &cobra.Command{
Use: "controller",
Short: "Install Aperture Controller",
Long: `
Use this command to install Aperture Controller and its dependencies on your Kubernetes cluster.
Refer https://artifacthub.io/packages/helm/aperture/aperture-controller#parameters for list of configurable parameters for preparing values file.`,
SilenceErrors: true,
Example: `aperturectl install controller --values-file=values.yaml
aperturectl install controller --values-file=values.yaml --namespace=aperture`,
RunE: func(cmd *cobra.Command, args []string) error {
return handleInstall(apertureController, controller)
},
}
// controllerInstallCmd is the command to install Aperture Controller on Kubernetes.
var controllerUnInstallCmd = &cobra.Command{
Use: "controller",
Short: "Uninstall Aperture Controller",
Long: `
Use this command to uninstall Aperture Controller and its dependencies from your Kubernetes cluster`,
SilenceErrors: true,
Example: `aperturectl uninstall controller
aperturectl uninstall controller --namespace=aperture`,
RunE: func(cmd *cobra.Command, args []string) error {
return handleUnInstall(apertureController, controller)
},
}