MCPcopy Create free account
hub / github.com/flant/shell-operator / NewObjectPatcher

Function NewObjectPatcher

pkg/kube/object_patch/patch.go:39–44  ·  view source on GitHub ↗
(kubeClient KubeClient, logger *log.Logger)

Source from the content-addressed store, hash-verified

37}
38
39func NewObjectPatcher(kubeClient KubeClient, logger *log.Logger) *ObjectPatcher {
40 return &ObjectPatcher{
41 kubeClient: kubeClient,
42 logger: logger.With(pkg.LogKeyOperatorComponent, "KubernetesObjectPatcher"),
43 }
44}
45
46func (o *ObjectPatcher) ExecuteOperations(ops []sdkpkg.PatchCollectorOperation) error {
47 log.Debug("Starting execute operations process")

Callers 3

Test_PatchOperationsFunction · 0.85
Test_CreateOperationsFunction · 0.85
Test_DeleteOperationsFunction · 0.85

Calls

no outgoing calls

Tested by 3

Test_PatchOperationsFunction · 0.68
Test_CreateOperationsFunction · 0.68
Test_DeleteOperationsFunction · 0.68