Skip to content

Devfile parser library should generate Kube objects #181

Description

@maysunfaisal

The devfile/parser library should be able to generate basic Kubernetes objects from the devfile. The list of these functions and objects can be found documented at the design doc for the library and also the util funcs that can be found in the same doc.

Currently, Odo and Devworkspace operator repo generate their own Kube structs and objects, so there is a lot of redundant code and this issue will be solving that problem for all the consumers of the devfile/parser. For example, this google doc outlines the odo and devworkspace operator repo functions for these generator code.

The generated Kube objects are only going to be static objects ie; they would not need cluster communication.

Parent Issue: #144

Activity

  1. maysunfaisal commented on Oct 19, 2020

    @maysunfaisal
    MemberAuthor

    I have outlined the work that needs to be done for this issue here in the document - https://docs.google.com/document/d/1ffLi37fM7LAjRK5SXAw-yVNwr9GchFYy_e_5VD-FOZc/edit#heading=h.v1ex47x85625

    I have divided them into first pass and second pass; where first pass requires little to no refactoring of Odo code and is of higher priority compared to the second pass.

  2. yangcao77 commented on Jun 7, 2021

    @yangcao77
    Contributor

    The work in library repo has been done.
    The only thing left is to port over the last piece of generator (GetInitContainer) to odo.

  3. yangcao77 commented on Jun 15, 2021

    @yangcao77
    Contributor

    PR created in Odo: redhat-developer/odo#4809

  4. yangcao77 commented on Jun 21, 2021

    @yangcao77
    Contributor

    This issue has been done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/libraryCommon devfile library for interacting with devfiles

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions