Skip to content

Commit d4e70d9

Browse files
authored
Fix syntax in the godoc (#72)
Signed-off-by: austin <[email protected]>
1 parent 22f6002 commit d4e70d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proxy/doc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ reconcile functions, Operator authors are then responsible for setting these
2626
variables in the Container Envs that must use the proxy, For example:
2727
2828
// Pods with Kubernetes < 1.22
29-
for _, cSpec := range (myPod.Spec.Containers) {
30-
cSpec.Env = append(defaultEnv(), ReadProxyVarsFromEnv())
29+
for i, cSpec := range (myPod.Spec.Containers) {
30+
myPod.Spec.Containers[i].Env = append(cSpec.Env, ReadProxyVarsFromEnv()...)
3131
}
3232
*/
3333
package proxy

0 commit comments

Comments
 (0)