Skip to content

odo deploy --dry-run #6240

Open
Open
@valaparthvi

Description

@valaparthvi

/kind user-story

User Story

  • As an odo user
  • I want to be able to show what resources would be created on the cluster without actually applying them
  • So that I can view what odo will do on my cluster
  • So that I can debug easy problems that I'm facing with variables substitution inside Devfile

Acceptance Criteria

  • odo deploy should have --dry-run that will output all Kubernetes resource formated as YAML separated by --- that would be created on the cluster
  • odo dev should have --dry-run that will output all Kubernetes resources formated as YAML separated by --- that would be created on the cluster. When this flag is specified, the command exists right after printing all the objects (no waiting for anything)

/kind user-story

original text:

Which functionality do you think we should add?

odo deploy --dry-run

The command should describe which Kubernetes components would be applied in both cases.

Why is this needed?

It can be confusing for a user that a Kubernetes component is sometimes deployed with odo deploy, depending on if the component is referenced or not from an Apply command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/user-storyAn issue of user-story kindlifecycle/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/MediumNice to have issue. Getting it done before priority changes would be great.

    Type

    No type

    Projects

    • Status

      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions