-
Notifications
You must be signed in to change notification settings - Fork 54
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
linkerd labels are not propagated to infinispan pods #1968
Comments
@cgmEdi Thanks for raising the issue. Currently we don't provide a supported integration with Linkerd and I'm not familiar with this service-mesh. I see that the labels The Infinispan CR deploys a StatefulSet to create the Infinispan pods, does Linkerd require that the labels are applied on the StatefulSet itself? |
As far as I understand it, the linkerd controller installs an admission webhook that is responsible for
I raised this issue because there might be a bug where the infinispan operator is ignoring admission webhook patches for labels, which is not directly related to linkerd but just wrong behavior. In order to properly test this, one could write an admission webhook, which adds some arbitrary label to pods and check whether the pods generated by the statefulset of the infinispan operator get these labels after being deployed. |
The admission webhook would be interacting with the pods directly AFAIU, there's nothing for the Infinispan operator to ignore. Similarly, the Operator only ever modifies the StatefulSet definition, we don't update pod specs individually.
Can you try this? I don't have the time to delve into this right now, but if you find there's an underlying issue I can use the reproducer and work on a fix. |
In our k8s cluster we use the infinispan operator in version 2.3.6.Final (image: quay.io/infinispan/operator:2.3.6.Final).
With an infinispan in version 14.0.21.Final
We are trying to get the created infinispan pods meshed with an linkerd service mesh. When the pods are created and send to the linkerd admission webhook, the proxies sidecars get injected, as well as all the linkerd annotations but for some reason the labels that linkerd patches in, get ignored and the pods are left without those.
Example:
Source infinispan.yaml:
Actually deployed pods:
Expected Pods:
For resources, that are not managed by the infinispan operator, the injection of labels works fine.
The text was updated successfully, but these errors were encountered: