Skip to content

Scale and Autoscale completion does not work as intended #1993

@hadasgayer

Description

@hadasgayer

When running 'oc scale' or 'oc autoscale', tab completion only suggests the 'deploymentconfig' resource and not the rest of the relevant controllers. In addition, the completion does not find the relevant deploymentconfigs for scaling.

Impact

Completion is less helpful for scaling commands.

Expected Behavior

The initial completion should suggest deploymentconfig, deployment, replicaset, statefulset, or replicationcontroller. After completing the resource type, tab completion should suggest the relevant resources in the current or selected namespace.
In my opinion machinesets should be an option as well since they can be scaled with that command too when BMO is installed, but that's probably open to debate.

Steps to Reproduce

  1. Verify oc bash completion.
  2. Run 'oc scale' or 'oc autoscale' and press tab.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions