api/types/swarm: define type for FailureAction

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-11-05 11:25:31 +01:00
parent c1cfb483a1
commit b552b8b729
3 changed files with 19 additions and 9 deletions

View File

@@ -705,7 +705,7 @@ func setImage(image string) testdaemon.ServiceConstructor {
}
}
func setFailureAction(failureAction string) testdaemon.ServiceConstructor {
func setFailureAction(failureAction swarm.FailureAction) testdaemon.ServiceConstructor {
return func(s *swarm.Service) {
s.Spec.UpdateConfig.FailureAction = failureAction
}