From 8efe053ffa725484cfffe5ab4d0827ace0acff5f Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Sun, 13 Dec 2020 16:35:19 +0200 Subject: [PATCH] Fix cluster domain mapping Signed-off-by: Stefan Prodan --- cmd/flux/bootstrap.go | 2 +- cmd/flux/install.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/flux/bootstrap.go b/cmd/flux/bootstrap.go index 78af2305..fd16af94 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 5e725963..ad96d883 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 == "" {