Skip to content

Commit 60af3bb

Browse files
tmatsutmatsu
authored andcommitted
Fix bug
1 parent bb2cdda commit 60af3bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func updateNvidiaEnv(target []corev1.Container, basePath string) (patch []patchO
124124
}
125125
if !ok || (ok && requests.IsZero()) {
126126
patch = append(patch, patchOperation {
127-
Op: "replace",
127+
Op: "add",
128128
Path: basePath + "/" + strconv.Itoa(i) + "/env",
129129
Value: inject_env,
130130
})

0 commit comments

Comments
 (0)