newrelic / newrelic-infra-operator

This repository hosts the newrelic kubernetes operator of infrastructure
Apache License 2.0
3 stars 8 forks source link

Mutator webhook does not support native sidecars #471

Open mmerrill3 opened 4 weeks ago

mmerrill3 commented 4 weeks ago

When using native sidecars in a pod, the pods that the mutator uses, newrelic-infra-operator, do not support native side cars in k8s.

Description

The output when trying to apply a pod with a native sidecar, and the mutator webhook enabled for all pods in all namespaces.

Expected Behavior

Pod creation is ok.

Troubleshooting or NR Diag results

Provide any other relevant log data. TIP: Scrub logs and diagnostic information for sensitive information

Steps to Reproduce

Enable the webhook in a cluster. Try to install a pod with a native sidecar. This is an init container with a restartPolicy set to Always, and startup, readiness, and liveness probes configured.

Your Environment

EKS, kubernetes 1.29

new relic infra operator version v0.19.2

Additional context

For Maintainers Only or Hero Triaging this bug

Suggested Priority (P1,P2,P3,P4,P5): Suggested T-Shirt size (S, M, L, XL, Unknown):

workato-integration[bot] commented 4 weeks ago

https://new-relic.atlassian.net/browse/NR-315916