MCPcopy
hub / github.com/zarf-dev/zarf / getLabelPatch

Function getLabelPatch

src/internal/agent/hooks/common.go:73–79  ·  view source on GitHub ↗
(currLabels map[string]string)

Source from the content-addressed store, hash-verified

71}
72
73func getLabelPatch(currLabels map[string]string) operations.PatchOperation {
74 if currLabels == nil {
75 currLabels = make(map[string]string)
76 }
77 currLabels["zarf-agent"] = "patched"
78 return operations.ReplacePatchOperation("/metadata/labels", currLabels)
79}
80
81// classifyURLSchemes reports whether any of the given repository URLs require
82// the Zarf git server or the Zarf registry (OCI).

Callers 8

mutateGitRepoFunction · 0.85
mutatePodFunction · 0.85
mutateRepositorySecretFunction · 0.85
mutateAppProjectFunction · 0.85
mutateOCIRepoFunction · 0.85
mutateApplicationSetFunction · 0.85
mutateHelmRepoFunction · 0.85
mutateApplicationFunction · 0.85

Calls 1

ReplacePatchOperationFunction · 0.92

Tested by

no test coverage detected