Skip to content

kubectl-pod_logs breaks on non-POSIX Mac shell #16

@joedobner

Description

@joedobner

OSX bash doesn't like ,,

TMC02YJ3FXJGH6:kubefunc jdobner1$ RUN=(RUN Run run)
TMC02YJ3FXJGH6:kubefunc jdobner1$ echo ${RUN[1],,}
Run
TMC02YJ3FXJGH6:kubefunc jdobner1$ echo $SHELL
/bin/bash

This results in

Select a Pod: 112
ERROR: Pod totally-real-eks-pod-name-5cd48dd956-7ktlb is not running

Because the status is Running

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions