You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to add a custom annotation to mount pods via juicefs/mount-annotations in StorageClass, but the annotation never shows up on the pods.
What you expected to happen:
I expected the mount pod annotation to be present when inspecting the pod with this command:
kubectl describe pod <mount-pod> -n <namespace>
How to reproduce it (as minimally and precisely as possible):
This is my StorageClass configuration. My goal is to have the mount pod's annotated with the "ad.datadoghq.com/..." annotation which allows the Datadog agent in my Kubernetes cluster to scrape the prometheus metrics exposed at the /metrics endpoint.
MountVolume.SetUp failed for volume : rpc error: code = Internal desc = Could not mount juicefs: rpc error: code = InvalidArgument desc = Parse yaml or json error: json: cannot unmarshal object into Go value of type string
Passing as stringified JSON does not work either, instead I get this error:
MountVolume.SetUp failed for volume : rpc error: code = Internal desc = Could not mount juicefs: rpc error: code = InvalidArgument desc = Parse yaml or json error: json: cannot unmarshal string into Go value of type map[string]string
deanpatel2
changed the title
[BUG] Adding custom annotation to mount pod not working
[BUG] Adding custom annotation with nested json using juicefs/mount-annotations not working
Oct 14, 2024
What happened:
I am trying to add a custom annotation to mount pods via
juicefs/mount-annotations
in StorageClass, but the annotation never shows up on the pods.What you expected to happen:
I expected the mount pod annotation to be present when inspecting the pod with this command:
kubectl describe pod <mount-pod> -n <namespace>
How to reproduce it (as minimally and precisely as possible):
This is my
StorageClass
configuration. My goal is to have the mount pod's annotated with the "ad.datadoghq.com/..." annotation which allows the Datadog agent in my Kubernetes cluster to scrape the prometheus metrics exposed at the/metrics
endpoint.I get error like this:
Passing as stringified JSON does not work either, instead I get this error:
In what format do I add custom annotations with StorageClass? When I try to override via
storageClasses.mountPod.annotations
https://github.com/juicedata/charts/blob/main/charts/juicefs-csi-driver/values.yaml#L419, it does not work either.Anything else we need to know?
Environment:
kubectl version
): v1.28.2The text was updated successfully, but these errors were encountered: