Skip to content

Conversation

aceppaluni
Copy link

@aceppaluni aceppaluni commented Aug 22, 2025

This PR updates autoReload

@aceppaluni aceppaluni marked this pull request as ready for review August 25, 2025 13:37
Copy link
Contributor

@EnriqueL8 EnriqueL8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @aceppaluni a few comments, the autoReload was put in the wrong place

Have you tested this by changing something the config in the runtime folder of a running stack and seeing it reload it?

initCmd.PersistentFlags().StringArrayVar(&initOptions.NodeNames, "node-name", []string{}, "Node name")
initCmd.PersistentFlags().BoolVar(&initOptions.RemoteNodeDeploy, "remote-node-deploy", false, "Enable or disable deployment of FireFly contracts on remote nodes")
initCmd.PersistentFlags().StringToStringVar(&initOptions.EnvironmentVars, "environment-vars", map[string]string{}, "Common environment variables to set on all containers in FireFly stack")
initCmd.Flags().BoolVar(&initOptions.EnableAutoReload, "auto-reload", true, "Enable config auto reload in generated FireFly configs")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
initCmd.Flags().BoolVar(&initOptions.EnableAutoReload, "auto-reload", true, "Enable config auto reload in generated FireFly configs")
initCmd.Flags().BoolVar(&initOptions.EnableAutoReload, "auto-reload", true, "Enable config auto reload in FireFly Core")

Event *EventConfig `yaml:"event,omitempty"`
Plugins *Plugins `yaml:"plugins"`
Namespaces *NamespacesConfig `yaml:"namespaces"`
AutoReload bool `json:"autoReload" yaml:"autoReload"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You only need the YAML one here

Suggested change
AutoReload bool `json:"autoReload" yaml:"autoReload"`
AutoReload bool `yaml:"autoReload"`

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants