Support enableServiceLinks
in Pod Specs.
#2179
Labels
@component/cdk8s-plus
Issue related to cdk8s-plus
effort/small
1 day tops
feature-request
New/Enhanced functionality wanted
good-first-issue
Good for newcomers
priority/p2
Dependent on community feedback. PR's are welcome :)
Description of the feature or enhancement:
Pods and workloads that define pods (e.g. Deployments, StatefulSets, etc) should have the
enableServiceLinks
property that defines whether the pod has service discovery environment variables defined.Use Case:
I need to be able to disable this option across many workloads, and would prefer to have a better way than applying JSON patches.
Proposed Solution:
Addition of
enableServiceLinks: boolean
toAbstractPodProps
. I haven't played with the CDK8s-plus internels yet so there may also be runtime manipulation needed.Other:
Documentation: https://kubernetes.io/docs/tutorials/services/connect-applications-service/#accessing-the-service
Pod Spec Reference: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#pod-v1-core
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: