cdk8s-plus
cdk8s-plus copied to clipboard
Support `enableServiceLinks` in Pod Specs.
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
to AbstractPodProps
. 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
- [x] :wave: I may be able to implement this feature request
- [ ] :warning: This feature might incur a breaking change
This is a :rocket: Feature Request