Use shared host validation in maintenance integration
1 file changed,
+2
−2
internal/activator/maintenance.go+2 −2
CI passed — run details
diff --git a/internal/activator/maintenance.go b/internal/activator/maintenance.go| index 7687bf3c2..37c804c81 100644 |
| --- a/internal/activator/maintenance.go |
| +++ b/internal/activator/maintenance.go |
| @@ -6,8 +6,8 @@ import ( |
| "net/http" |
| "time" |
| + "github.com/carlosframework/platform/internal/controlname" |
| "github.com/carlosframework/platform/internal/edge" |
| - "github.com/carlosframework/platform/internal/provision" |
| ) |
| var ( |
| @@ -43,7 +43,7 @@ func (o *stopObservation) complete() bool { |
| // FenceAndStop keeps admission closed after cancellation or failure. A missing |
| // entry is not evidence that an earlier process or replica stopped successfully. |
| func (a *Service) FenceAndStop(ctx context.Context, host string, generation uint64) (*StopEvidence, error) { |
| - if a == nil || !provision.ValidHostShape(host) || generation == 0 { |
| + if a == nil || !controlname.ValidHostShape(host) || generation == 0 { |
| return nil, ErrFenceGeneration |
| } |
| if ctx == nil { |