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

Add istio inject false label/annotation #164

Open
Noksa opened this issue Mar 9, 2023 · 0 comments
Open

Add istio inject false label/annotation #164

Noksa opened this issue Mar 9, 2023 · 0 comments

Comments

@Noksa
Copy link

Noksa commented Mar 9, 2023

Currently, privileged ksniff pod will run with istio-proxy sidecar if it runs in a namespace with injection enabled.

It would be great if we could add such label and annotation here:

objectMetadata := v1.ObjectMeta{

Should be like that:

	objectMetadata := v1.ObjectMeta{
		GenerateName: "ksniff-",
		Namespace:    k.targetNamespace,
		Labels: map[string]string{
			"app":                     "ksniff",
			"app.kubernetes.io/name":  "ksniff",
			"sidecar.istio.io/inject": "false",
		},
		Annotations: map[string]string{
			"sidecar.istio.io/inject": "false",
		},
	}
@Noksa Noksa changed the title Add istion inject false label/annotation Add istio inject false label/annotation Mar 9, 2023
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

No branches or pull requests

1 participant