forked from istio/istio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix for istio-initializer needs to ignore hostNetwork pod specs (isti…
…o#1440) Automatic merge from submit-queue fix for istio-initializer needs to ignore hostNetwork pod specs **What this PR does / why we need it**: PR for istio/istio.io#655, see istio#655 for details **Release note**: ```release-note When a pod uses hostNetwork: true, the pod will be disabled from side car injection on purpose because we don't want the envoy side car to change the network configuration at the host level. ```
- Loading branch information
1 parent
cc0bfa2
commit 1ddd19b
Showing
4 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
pilot/platform/kube/inject/testdata/hello-host-network.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: hello-host-network | ||
spec: | ||
replicas: 7 | ||
template: | ||
metadata: | ||
labels: | ||
app: hello-host-network | ||
tier: backend | ||
track: stable | ||
spec: | ||
containers: | ||
- name: hello-host-network | ||
image: "fake.docker.io/google-samples/hello-go-gke:1.0" | ||
ports: | ||
- name: http | ||
containerPort: 80 | ||
hostNetwork: true |
26 changes: 26 additions & 0 deletions
26
pilot/platform/kube/inject/testdata/hello-host-network.yaml.injected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
creationTimestamp: null | ||
name: hello-host-network | ||
spec: | ||
replicas: 7 | ||
strategy: {} | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app: hello-host-network | ||
tier: backend | ||
track: stable | ||
spec: | ||
containers: | ||
- image: fake.docker.io/google-samples/hello-go-gke:1.0 | ||
name: hello-host-network | ||
ports: | ||
- containerPort: 80 | ||
name: http | ||
resources: {} | ||
hostNetwork: true | ||
status: {} | ||
--- |