github.com/caos/orbos@v1.5.14-0.20221103111702-e6cd0cea7ad4/cmd/chore/e2e/run/patch.go (about) 1 package main 2 3 import ( 4 "context" 5 "time" 6 ) 7 8 func patch(ctx context.Context, settings programSettings, newOrbctl newOrbctlCommandFunc, path, value string) error { 9 10 patchCtx, patchCancel := context.WithTimeout(ctx, 1*time.Minute) 11 defer patchCancel() 12 13 return runCommand(settings, orbctl.strPtr(), nil, nil, newOrbctl(patchCtx), "--gitops", "file", "patch", "orbiter.yml", path, "--value", value, "--exact") 14 }