Skip to content

Commit

Permalink
Allow hostNetwork on PSP when needed (#816)
Browse files Browse the repository at this point in the history
* Allow hostNetwork on PSP when needed

* Update moby dep to avoid vulnerability
  • Loading branch information
fiunchinho authored Oct 20, 2021
1 parent bdcc217 commit 73e0114
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project's packages adheres to [Semantic Versioning](http://semver.org/s

## [Unreleased]

### Changed

- Deployment `hostNetwork` is enabled or not depending on `chartOperator.cni.install` value.

## [2.19.0] - 2021-08-13

### Removed
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ replace (
github.com/dgrijalva/jwt-go => github.com/dgrijalva/jwt-go/v4 v4.0.0-preview1
github.com/docker/distribution => github.com/docker/distribution v0.0.0-20191216044856-a8371794149d
// Use moby v20.10.0-beta1 to fix build issue on darwin.
github.com/docker/docker => github.com/moby/moby v20.10.0-beta1+incompatible
github.com/docker/docker => github.com/moby/moby v20.10.9+incompatible
// Use go-logr/logr v0.1.0 due to breaking changes in v0.2.0 that can't be applied.
github.com/go-logr/logr v0.2.0 => github.com/go-logr/logr v0.1.0
github.com/gogo/protobuf v1.3.1 => github.com/gogo/protobuf v1.3.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,8 @@ github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RR
github.com/mitchellh/osext v0.0.0-20151018003038-5e2d6d41470f/go.mod h1:OkQIRizQZAeMln+1tSwduZz7+Af5oFlKirV/MSYes2A=
github.com/mitchellh/reflectwalk v1.0.0 h1:9D+8oIskB4VJBN5SFlmc27fSlIBZaov1Wpk/IfikLNY=
github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
github.com/moby/moby v20.10.0-beta1+incompatible h1:LNccN9nL6T8XyhNaPm+830SsK1WA3otcZ1NLlJRXS+8=
github.com/moby/moby v20.10.0-beta1+incompatible/go.mod h1:fDXVQ6+S340veQPv35CzDahGBmHsiclFwfEygB/TWMc=
github.com/moby/moby v20.10.9+incompatible h1:fzBLeWWduR/GQCWZe6MDL8t8qKr6Nhpgd2sLzhdVBuk=
github.com/moby/moby v20.10.9+incompatible/go.mod h1:fDXVQ6+S340veQPv35CzDahGBmHsiclFwfEygB/TWMc=
github.com/moby/term v0.0.0-20200312100748-672ec06f55cd h1:aY7OQNf2XqY/JQ6qREWamhI/81os/agb2BAGpcx5yWI=
github.com/moby/term v0.0.0-20200312100748-672ec06f55cd/go.mod h1:DdlQx2hp0Ss5/fLikoLlEeIYiATotOjgB//nb973jeo=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
Expand Down
2 changes: 1 addition & 1 deletion helm/chart-operator/templates/psp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ spec:
- 'configMap'
- 'secret'
allowPrivilegeEscalation: false
hostNetwork: false
hostNetwork: {{ .Values.chartOperator.cni.install }}
hostIPC: false
hostPID: false

0 comments on commit 73e0114

Please sign in to comment.