You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/cmd/create/root.go
+34-13Lines changed: 34 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,25 @@ import (
17
17
ctrl "sigs.k8s.io/controller-runtime"
18
18
)
19
19
20
+
const (
21
+
recreateClusterUsage="Delete cluster first if it already exists."
22
+
buildNameUsage="Name for build (Prefix for kind cluster name, pod names, etc)."
23
+
kubeVersionUsage="Version of the kind kubernetes cluster to create."
24
+
extraPortsMappingUsage="List of extra ports to expose on the docker container and kubernetes cluster as nodePort "+
25
+
"(e.g. \"22:32222,9090:39090,etc\")."
26
+
kindConfigPathUsage="Path of the kind config file to be used instead of the default."
27
+
hostUsage="Host name to access resources in this cluster."
28
+
ingressHostUsage="Host name used by ingresses. Useful when you have another proxy in front of ingress-nginx that idpbuilder provisions."
29
+
protocolUsage="Protocol to use to access web UIs. http or https."
30
+
portUsage="Port number to use to access web UIs."
31
+
pathRoutingUsage="When set to true, web UIs are exposed under single domain name. "+
32
+
"e.g. \"https://cnoe.localtest.me/argocd\" instead of \"https://argocd.cnoe.localtest.me\""
33
+
extraPackagesUsage="Paths to locations containing custom packages"
34
+
packageCustomizationFilesUsage="Name of the package and the path to file to customize the core packages with. "+
35
+
"valid package names are: argocd, nginx, and gitea. e.g. argocd:/tmp/argocd.yaml"
36
+
noExitUsage="When set, idpbuilder will not exit after all packages are synced. Useful for continuously syncing local directories."
37
+
)
38
+
20
39
var (
21
40
// Flags
22
41
recreateClusterbool
@@ -44,22 +63,24 @@ var CreateCmd = &cobra.Command{
44
63
45
64
funcinit() {
46
65
// cluster related flags
47
-
CreateCmd.PersistentFlags().BoolVar(&recreateCluster, "recreate", false, "Delete cluster first if it already exists.")
48
-
CreateCmd.PersistentFlags().StringVar(&buildName, "build-name", "localdev", "Name for build (Prefix for kind cluster name, pod names, etc).")
49
-
CreateCmd.PersistentFlags().StringVar(&kubeVersion, "kube-version", "v1.30.3", "Version of the kind kubernetes cluster to create.")
50
-
CreateCmd.PersistentFlags().StringVar(&extraPortsMapping, "extra-ports", "", "List of extra ports to expose on the docker container and kubernetes cluster as nodePort (e.g. \"22:32222,9090:39090,etc\").")
51
-
CreateCmd.PersistentFlags().StringVar(&kindConfigPath, "kind-config", "", "Path of the kind config file to be used instead of the default.")
CreateCmd.PersistentFlags().StringVar(&host, "host", globals.DefaultHostName, "Host name to access resources in this cluster.")
55
-
CreateCmd.PersistentFlags().StringVar(&ingressHost, "ingress-host-name", "", "Host name used by ingresses. Useful when you have another proxy in front of ingress-nginx that idpbuilder provisions.")
56
-
CreateCmd.PersistentFlags().StringVar(&protocol, "protocol", "https", "Protocol to use to access web UIs. http or https.")
57
-
CreateCmd.PersistentFlags().StringVar(&port, "port", "8443", "Port number under which idpBuilder tools are accessible.")
58
-
CreateCmd.PersistentFlags().BoolVar(&pathRouting, "use-path-routing", false, "When set to true, web UIs are exposed under single domain name.")
59
-
CreateCmd.Flags().StringSliceVarP(&extraPackages, "package", "p", []string{}, "Paths to locations containing custom packages")
60
-
CreateCmd.Flags().StringSliceVarP(&packageCustomizationFiles, "package-custom-file", "c", []string{}, "Name of the package and the path to file to customize the package with. e.g. argocd:/tmp/argocd.yaml")
CreateCmd.Flags().BoolVarP(&noExit, "no-exit", "n", true, "When set, idpbuilder will not exit after all packages are synced. Useful for continuously syncing local directories.")
0 commit comments