Skip to content

A new command to add K8s component to the Devfile from file #6338

Open
@valaparthvi

Description

@valaparthvi

/kind feature

Which functionality do you think we should add?

Add a new command to odo that will add K8s component to the Devfile from a file.

odo add component --type k8s --from-file <file>

Why is this needed?

This command might be helpful in cases where you need to modify the Devfile to add a K8s resource without doing so manually.
For e.g., defining a DB microservice inside Devfile that the application can connect to via ServiceBinding; odo will ensure the microservice is created for a successful bind.
Using the command will avoid having to use kubectl or oc client to create the service as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue as a feature request. For PRs, that means that the PR is the implementationlifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.needs-triageIndicates an issue or PR lacks a `triage/*` and requires one.priority/LowNice to have issue. It's not immediately on the project roadmap to get it done.

    Type

    No type

    Projects

    • Status

      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions