Skip to content

Conversation

@bmagic
Copy link
Contributor

@bmagic bmagic commented Oct 27, 2024

What does this PR do?

This PR adds the AbortOnPluginFailure field in the staticConfiguration. When this field is set to true, then Traefik won't start if one of the plugins (local & remote) has an error during initialization.

Motivation

It's based on this issue: #10106 & my first PR which allows configuration by plugin: #10929

Fixes #10106

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

If the field is not defined, Traefik will log the error and continue starting as usual.
If this PR is accepted, I'll create a new one in the helm repo to add the missing arg.

@bmagic bmagic requested a review from rtribotte November 6, 2024 07:48
@rtribotte rtribotte changed the title Add staticConfiguration field RequirePluginsToStart Add AbortOnPluginFailure option to abort startup on plugin load failure Nov 6, 2024
Copy link
Member

@rtribotte rtribotte left a comment

Choose a reason for hiding this comment

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

Thanks!

@kevinpollet kevinpollet added this to the next milestone Nov 6, 2024
Copy link
Member

@kevinpollet kevinpollet left a comment

Choose a reason for hiding this comment

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

Thanks 👍

@traefiker
Copy link
Contributor

🚫 checks status: PR status: cancelled

@traefiker
Copy link
Contributor

🚫 checks status: PR status: failure

@traefiker traefiker merged commit 552bd8f into traefik:master Nov 6, 2024
39 checks passed
@rtribotte rtribotte added the kind/enhancement a new or improved feature. label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an option to fail startup if plugins fail to load

5 participants