generated from interTwin-eu/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Feature Request: Downward API Volume Support
Currently, InterLink supports Downward API environment variables via fieldRef, but does not support Downward API volumes that expose pod metadata as files.
Current Support
✅ Environment variables via fieldRef:
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.nameMissing Support
❌ Downward API volumes:
volumes:
- name: podinfo
downwardAPI:
items:
- path: "pod-name"
fieldRef:
fieldPath: metadata.name
- path: "labels"
fieldRef:
fieldPath: metadata.labels
- path: "annotations"
fieldRef:
fieldPath: metadata.annotationsUse Case
Downward API volumes are useful when:
- Applications need to read metadata from files rather than environment variables
- Multiple pieces of metadata need to be accessible in a structured way
- Labels and annotations need to be exposed (not supported in env fieldRef)
- Applications expect metadata in specific file locations
Expected Behavior
When a pod uses Downward API volumes, the virtual kubelet should:
- Create the specified volume mount path in the container
- Populate files with the requested pod metadata
- Support all standard Downward API fieldRef paths in volumes:
metadata.namemetadata.namespacemetadata.uidmetadata.labels(volume-only feature)metadata.annotations(volume-only feature)spec.nodeNamespec.serviceAccountNamestatus.podIPstatus.hostIP
Testing
Related test case development in: interlink-hq/vk-test-set#11
This would enable full Kubernetes Downward API compatibility in InterLink implementations.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels