Skip to content

Commit 7c11780

Browse files
committed
chore(containerd): add lint exemption
Signed-off-by: Vaughn Dice <vdice@akamai.com>
1 parent 2975d71 commit 7c11780

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

internal/containerd/restart_unix.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,9 @@ func ListSystemdUnits() ([]byte, error) {
151151
}
152152

153153
func nsenterCmd(cmd ...string) *exec.Cmd {
154+
// #nosec G204 G702
154155
return exec.CommandContext(context.Background(), "nsenter",
155-
append([]string{fmt.Sprintf("-m/%s/proc/1/ns/mnt", os.Getenv("HOST_ROOT")), "--"}, cmd...)...) // #nosec G204
156+
append([]string{fmt.Sprintf("-m/%s/proc/1/ns/mnt", os.Getenv("HOST_ROOT")), "--"}, cmd...)...)
156157
}
157158

158159
func getPid(executable string) (int, error) {

internal/controller/shim_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ func (sr *ShimReconciler) handleDeployRuntimeClass(ctx context.Context, shim *rc
597597
}
598598
patchMethod := client.RawPatch(types.ApplyPatchType, runtimeClassData)
599599
patchOptions := &client.PatchOptions{
600-
Force: ptr(true), // Force b/c any fields we are setting need to be owned by the spin-operator
600+
Force: ptr(true), // Force b/c any fields we are setting need to be owned by the shim-operator
601601
FieldManager: "shim-operator",
602602
}
603603

0 commit comments

Comments
 (0)