Skip to content

Commit

Permalink
add import to go proxy docs (operator-framework#5279)
Browse files Browse the repository at this point in the history
Signed-off-by: austin <[email protected]>
  • Loading branch information
asmacdo authored Nov 10, 2021
1 parent 65f82e8 commit 45915b2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ Reconcile loop in `controllers/memcached_controller.go`:


```go
import (
...
"github.com/operator-framework/operator-lib/proxy"
)


for i, container := range dep.Spec.Template.Spec.Containers {
dep.Spec.Template.Spec.Containers[i].Env = append(container.Env, proxy.ReadProxyVarsFromEnv()...)
}
Expand Down

0 comments on commit 45915b2

Please sign in to comment.