Skip to content

[Bug]: bk secret list - limited to 30 results with no pagination option #894

Description

@aspett

Contact Details

andrew - at - pett - dot - nz

What happened?

$ bk --version
bk version 3.49.2

bk secret list only returns up to 30 results, but there is no option to paginate through remaining secrets.

Version

3.49.2

What environment are you seeing the problem on?

Local Development

Relevant log output

$ bk secret list --cluster-uuid $CLUSTER_UUID | jq '.[].key' | wc -l
30



$  bk secret list --help
Usage: bk secret list (ls) --cluster-uuid=STRING [flags]

List secrets for a cluster.

List secrets for a cluster.

Examples:

    # List all secrets in a cluster
    $ bk secret list --cluster-uuid my-cluster-uuid

    # List secrets in JSON format
    $ bk secret list --cluster-uuid my-cluster-uuid -o json

Flags:
  -h, --help                   Show context-sensitive help.
  -y, --yes                    Skip all confirmation prompts
      --no-input               Disable all interactive prompts
  -q, --quiet                  Suppress progress output
      --no-pager               Disable pager for text output
      --debug                  Enable debug output for REST API calls

      --cluster-uuid=STRING    The UUID of the cluster to list secrets for
      --json                   Output as JSON
      --yaml                   Output as YAML
      --text                   Output as text
  -o, --output=""              Output format. One of: json, yaml, text

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions