mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
The fork's engine now declares its real repo path so consumers (cloud clients/deploy) can require it as a pinned version with NO replace/alias — resolving the argoproj-path import that could only be satisfied by a filesystem replace. Parent (github.com/hanzoai/deploy/v3) keeps its local replace onto ./gitops-engine for its own build. 243 files, module-path substitution only.
22 lines
448 B
Go
22 lines
448 B
Go
package syncwaves
|
|
|
|
import (
|
|
"strconv"
|
|
|
|
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
|
|
|
"github.com/hanzoai/deploy/gitops-engine/pkg/sync/common"
|
|
helmhook "github.com/hanzoai/deploy/gitops-engine/pkg/sync/hook/helm"
|
|
)
|
|
|
|
func Wave(obj *unstructured.Unstructured) int {
|
|
text, ok := obj.GetAnnotations()[common.AnnotationSyncWave]
|
|
if ok {
|
|
val, err := strconv.Atoi(text)
|
|
if err == nil {
|
|
return val
|
|
}
|
|
}
|
|
return helmhook.Weight(obj)
|
|
}
|