Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable injecting additional annotations into pods (MAISTRA-518) #26

Merged
merged 1 commit into from
Jun 27, 2019

Conversation

luksa
Copy link
Contributor

@luksa luksa commented Jun 20, 2019

When using Istio CNI through Multus CNI, the pod needs to contain an
annotation that tells Multus to use the Istio CNI plugin on the pod.
The annotation needs to be injected at pod creation time so that it
already exists when the kubelet starts setting up the pod's network.
Adding the annotation afterwards has no effect, since the pod's network
has already been set up.

For this reason, the sidecar-injector now allows you to specify any
number of additional annotations to inject (in addition to the
(init)containers, volumes, etc.)

When using Istio CNI through Multus CNI, the pod needs to contain an
annotation that tells Multus to use the Istio CNI plugin on the pod.
The annotation obviously needs to be injected at pod creation, so the
sidecar-injector now allows you to specify any number of additional
annotations to inject (in addition to the (init)containers, volumes,
etc.)
}

for i, c := range cases {
if c.inputFile != "TestWebhookInject_http_probe_nosidecar_rewrite.yaml" {
continue
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this an upstream typo/bug/leftover that should be reported/fixed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. It was a bug, but it was fixed already.

@luksa luksa merged commit 1477e9d into maistra:maistra-0.12 Jun 27, 2019
dgn pushed a commit to dgn/istio-maistra that referenced this pull request Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants