feat: rolling deploy strategy for global service, always recreate

This commit is contained in:
Pavel Sviderski
2025-02-13 21:32:08 +10:00
parent b17fd7531f
commit 43f28284f1
8 changed files with 449 additions and 91 deletions
+5
View File
@@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"github.com/distribution/reference"
"reflect"
"uncloud/internal/machine/api/pb"
)
@@ -37,6 +38,10 @@ func (s *ServiceSpec) Validate() error {
return nil
}
func (s *ServiceSpec) Equals(spec ServiceSpec) bool {
return reflect.DeepEqual(*s, spec)
}
type ContainerSpec struct {
Command []string
Image string