Files
deploy/gitops-engine/pkg/sync/syncwaves/waves.go
T
zeekay 4e36746cb4 gitops-engine: rename module path to github.com/hanzoai/deploy/gitops-engine
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.
2026-07-18 08:57:17 -07:00

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)
}