/kind bug
What happened?
kubernetes metadata source doesn't lookup number of ENIs or EBS volumes, leading to a wrong CSI allocatable calculation in all instances since at least an EBS block device would be attached.
Values are statically set at:
https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/pkg/cloud/metadata/k8s.go#L150
instanceInfo := Metadata{
InstanceID: instanceID,
InstanceType: instanceType,
Region: region,
AvailabilityZone: availabilityZone,
NumAttachedENIs: 1, // All nodes have at least 1 attached ENI, so we'll use that
NumBlockDeviceMappings: 0,
}
What you expected to happen?
Feature parity with IMDS metadata provider.
How to reproduce it (as minimally and precisely as possible)?
Helm chart values:
node:
metadataSources: imds
Check allocatable count with:
kubectl get csinode <node> -o yaml
Anything else we need to know?:
Environment
- Kubernetes version (use
kubectl version): 1.33
- Driver version: 1.45
/kind bug
What happened?
kubernetesmetadata source doesn't lookup number of ENIs or EBS volumes, leading to a wrong CSI allocatable calculation in all instances since at least an EBS block device would be attached.Values are statically set at:
https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/pkg/cloud/metadata/k8s.go#L150
What you expected to happen?
Feature parity with IMDS metadata provider.
How to reproduce it (as minimally and precisely as possible)?
Helm chart values:
Check allocatable count with:
kubectl get csinode <node> -o yamlAnything else we need to know?:
Environment
kubectl version): 1.33