瀏覽代碼

service hash must exlude depends_on

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 1 年之前
父節點
當前提交
d658fecc63
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      pkg/compose/hash.go

+ 1 - 0
pkg/compose/hash.go

@@ -32,6 +32,7 @@ func ServiceHash(o types.ServiceConfig) (string, error) {
 	if o.Deploy != nil {
 		o.Deploy.Replicas = nil
 	}
+	o.DependsOn = nil
 
 	bytes, err := json.Marshal(o)
 	if err != nil {