Import k8s from custom URL #2141
Labels
@component/cdk8s-cli
Issue related to cdk8s-cli
effort/large
1+ weeks
feature-request
New/Enhanced functionality wanted
priority/p2
Dependent on community feedback. PR's are welcome :)
Description of the feature or enhancement:
Add a command line option to
cdk8s import k8s
to point to a custom URL instead of the default (hardcoded) one. Something along the lines ofcdk8s import k8s:http://127.0.0.1/_definitions.json
.Use Case:
I've created a project that generates a dynamic
_definitions.json
from your running Kubernetes installation and wanted to use this with thecdk8s import k8s
command to have cdk8s generate imports that include all of my CRDs automatically without me specifying each one individually.Currently the URL for k8s is hardcoded. By changing the file
node_modules/cdk8s-cli/lib/import/k8s.js
I can point to my URL and CDK8s successfully generates import files from my live deployment.Suggested implementation
Similar to
github
andhelm
imports take a URL, allow something likecdk8s import k8s:<url>
or add a CLI option such as--custom-url
.I'm happy to have a go at implementing this feature but wanted to find out if others are interested before opening a PR and also what the preferred means of specifying the URL would be.
Thanks
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: