Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubernetes component parser #755

Closed
3 tasks
yangcao77 opened this issue Feb 3, 2022 · 3 comments
Closed
3 tasks

Kubernetes component parser #755

yangcao77 opened this issue Feb 3, 2022 · 3 comments
Assignees
Labels
area/library Common devfile library for interacting with devfiles

Comments

@yangcao77
Copy link
Contributor

yangcao77 commented Feb 3, 2022

Which area this feature is related to?

/area library

Which functionality do you think we should add?

Why is this needed? Is your feature request related to a problem?
after outerloop scenario has been supported in devfile 2.2.0, Kubernetes component will be frequently used for deploy commands.
consumers like HAS an ODC will need to fetch information from Kubernetes components and display to user.

Detailed description:
Library should be able to parse, write and validate Kubernetes components

Describe the solution you'd like

  • Library should be able to parse Kubernetes components (within devfile & separate file)
  • Library should be able to validate Kubernetes components
  • Library should be able to update & write to Kubernetes components (within devfile & separate file)

Describe alternatives you've considered

Additional context

@openshift-ci openshift-ci bot added the area/library Common devfile library for interacting with devfiles label Feb 3, 2022
@amisevsk
Copy link
Contributor

amisevsk commented Jun 6, 2022

This issue seems like it's preparing to duplicate existing functionality within Kubernetes libraries -- are we sure want to build and maintain this?

@yangcao77
Copy link
Contributor Author

yangcao77 commented Jun 6, 2022

This item needs further investigation, but we need an extra layer to read from & write to kubernetes definition in devfile. If Kubernetes libraries already have exactly what we need, then the library should import & use Kubernetes libraries, and add additional helper functions to fulfill our needs.

@yangcao77
Copy link
Contributor Author

been done in devfile/library#137
instead of creating a complete parser for kubernetes component, we decided to provider a helper function for consumers to parse the kubernetes yaml. only deployment, service, route and ingress is being extracted out with the helper function. for any other k8s resources, consumers can do the extraction on demand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/library Common devfile library for interacting with devfiles
Projects
None yet
Development

No branches or pull requests

3 participants