Skip to content

Conversation

@nluaces
Copy link
Member

@nluaces nluaces commented Dec 2, 2025

Implements #2333

Changes:

  • The namespace controller has an additional watcher for custom resources created in the designated directories.
  • This feature is enabled by default ("auto"). To disable it, export the environment variable SKUPPER_SYSTEM_RELOAD_TYPE to "manual"
  • CLI change: the command skupper system install needs to pass said env. variable to the system-controller pod.

Additional information:

  • These changes only apply to podman and docker platforms and they can be tested by running:
export SKUPPER_SYSTEM_CONTROLLER_IMAGE=quay.io/nluaces/system-controller:latest

@nluaces nluaces self-assigned this Dec 2, 2025
@nluaces nluaces force-pushed the 2333-system-controller-input-watcher branch from 163082a to 853219d Compare December 2, 2025 17:24
Copy link
Member

@fgiorgetti fgiorgetti left a comment

Choose a reason for hiding this comment

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

It would be nice to include a message in the startup banner of the system controller, displaying the status of the autoreload definition.

Another thing I am missing here is the fact that if you delete a Site and/or all resources from a given namespace, the Teardown is not being executed.

"SKUPPER_OUTPUT_PATH": config.hostDataHome,
"CONTAINER_ENGINE": config.containerEngine,
"SKUPPER_SYSTEM_RELOAD_TYPE": utils.DefaultStr(os.Getenv(types.ENV_SYSTEM_AUTO_RELOAD),
types.SystemReloadTypeAuto),
Copy link
Member

Choose a reason for hiding this comment

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

Should the default here be SystemReloadTypeManual, instead?

types.SystemReloadTypeManual)

if systemReloadType == types.SystemReloadTypeManual {
slog.Default().Error("Automatic reloading is not configured.")
Copy link
Member

Choose a reason for hiding this comment

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

Maybe make this a debug level message, not an error.

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.

Reload automatically changes in custom resources for docker and podman system platforms

2 participants