cdk8s-team / cdk8s

Define Kubernetes native apps and abstractions using object-oriented programming
https://cdk8s.io
Apache License 2.0
4.38k stars 294 forks source link

Make ApiObject.props public #2236

Open erikschul opened 3 weeks ago

erikschul commented 3 weeks ago

Description of the feature or enhancement:

I would like to use cdk8s-plus types, but after they've been created (e.g. new KubeDeployment(...)), the props are not accessible, so KubeDeployment (etc.) cannot be injected as a dependency, which I thought is the normal practice in CDK, e.g. new MyCustomServiceType(scope, id, { deployment: myDeployment })

Is it possible to change this to public? If no, why not? And in that case, is it technically possible to fork the repo and change it, or are the technical reasons why this cannot be made public? I understand that people may try to modify properties, but it is readonly.

export declare class ApiObject extends Construct {
    private readonly props;

Use Case:

Proposed Solution:

Other:


This is a :rocket: Feature Request