Skip to content

Commit

Permalink
Changing defaults as per the examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
aattuluri committed Feb 29, 2020
1 parent 5bb023a commit 7cb149a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions admiral/cmd/admiral/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ func GetRootCmd(args []string) *cobra.Command {
rootCmd.PersistentFlags().AddGoFlagSet(flag.CommandLine)
rootCmd.PersistentFlags().StringVar(&params.KubeconfigPath, "kube_config", "",
"Use a Kubernetes configuration file instead of in-cluster configuration")
rootCmd.PersistentFlags().StringVar(&params.ClusterRegistriesNamespace, "secret_namespace", "default",
rootCmd.PersistentFlags().StringVar(&params.ClusterRegistriesNamespace, "secret_namespace", "admiral",
"Namespace to monitor for secrets defaults to admiral-secrets")
rootCmd.PersistentFlags().StringVar(&params.DependenciesNamespace, "dependency_namespace", "default",
rootCmd.PersistentFlags().StringVar(&params.DependenciesNamespace, "dependency_namespace", "admiral",
"Namespace to monitor for secrets defaults to admiral-secrets")
rootCmd.PersistentFlags().StringVar(&params.SyncNamespace, "sync_namespace", "default",
rootCmd.PersistentFlags().StringVar(&params.SyncNamespace, "sync_namespace", "admiral-sync",
"Namespace to monitor for secrets defaults to admiral-secrets")
rootCmd.PersistentFlags().DurationVar(&params.CacheRefreshDuration, "sync_period", 5*time.Minute,
"Interval for syncing Kubernetes resources, defaults to 5 min")
Expand Down
2 changes: 1 addition & 1 deletion admiral/pkg/clusters/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ func addUpdateVirtualService(obj *v1alpha3.VirtualService, exist *v1alpha3.Virtu
func addUpdateServiceEntry(obj *v1alpha3.ServiceEntry, exist *v1alpha3.ServiceEntry, namespace string, rc *RemoteController) {
var err error
var op string
if exist == nil {
if exist == nil || exist.Spec.Hosts == nil {
obj.Namespace = namespace
obj.ResourceVersion = ""
_, err = rc.ServiceEntryController.IstioClient.NetworkingV1alpha3().ServiceEntries(namespace).Create(obj)
Expand Down

0 comments on commit 7cb149a

Please sign in to comment.