Skip to content

DRAFT --- set sane defaults for workload create/apply --service-ref flag #471

@heyjcollins

Description

@heyjcollins

This is placeholder and requires further analysis by PM.

Description of problem

To bind a service to a workload via the --service-ref flag, someone must remember (and type correctly) <resource.owner>/<version>:<resource.kind>:<name>.
This is likely to be error-prone and burdensome.
Providing sane default values for the majority of the required value will address a good deal of this pain in a significant portion of use-cases

Proposed solution

If end-user provides only a single value for --service-ref, CLI should assume the <name> has been specified and should set [services.apps.tanzu.vmware.com:ResourceClaim](http://services.apps.tanzu.vmware.com/v1alpha1:ResourceClaim) by default

Given I've provided `--service-claim rmq1`
When I `tanzu apps workload create/apply` a workload
Then the apps plugin will submit XXXXXXX

Example

<Code snippets that illustrate the when/then blocks>

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions