diff --git a/cmd/flux/bootstrap.go b/cmd/flux/bootstrap.go index 78af2305493cb76e84ada3101091da1bd95f2b75..fd16af944c62cdecea0cf1b4471c212287680680 100644 --- a/cmd/flux/bootstrap.go +++ b/cmd/flux/bootstrap.go @@ -88,7 +88,7 @@ func init() { "when enabled, the personal access token will be used instead of SSH deploy key") bootstrapCmd.PersistentFlags().Var(&bootstrapLogLevel, "log-level", bootstrapLogLevel.Description()) bootstrapCmd.PersistentFlags().StringVar(&bootstrapManifestsPath, "manifests", "", "path to the manifest directory") - bootstrapCmd.PersistentFlags().StringVar(&bootstrapClusterDomain, "cluster-domain", "cluster.local", "internal cluster domain") + bootstrapCmd.PersistentFlags().StringVar(&bootstrapClusterDomain, "cluster-domain", defaults.ClusterDomain, "internal cluster domain") bootstrapCmd.PersistentFlags().MarkHidden("manifests") rootCmd.AddCommand(bootstrapCmd) } diff --git a/cmd/flux/install.go b/cmd/flux/install.go index 5e725963bdfaa06d49ee685e3bf3306836f5204a..ad96d8834bcea6bc57565c13a9a38c7a2fa248ae 100644 --- a/cmd/flux/install.go +++ b/cmd/flux/install.go @@ -124,6 +124,7 @@ func installCmdRun(cmd *cobra.Command, args []string) error { NotificationController: defaults.NotificationController, ManifestFile: fmt.Sprintf("%s.yaml", namespace), Timeout: timeout, + ClusterDomain: installClusterDomain, } if installManifestsPath == "" {