Skip to content

Enhance the WaitFor kubernetes Job output format #179

@cmanzur

Description

@cmanzur

Is there a possibility to have a better formatted output in the Kubernetes Job WaitFor ?

I can't paste an image here, but everything is in red color and each line begins with INFO: kubernetes-wait-job: b' (Yes, there's a b'' wrapping the log line)

This is the log I have:

INFO: kubernetes-wait-job: Fetching logs from pod: restore-db-12344-fc7wj
INFO: kubernetes-wait-job: ========================== job log start ==========================
INFO: kubernetes-wait-job: b'debconf: delaying package configuration, since apt-utils is not installed'
INFO: kubernetes-wait-job: b'Downloading Demo dump...'
INFO: kubernetes-wait-job: b'Recreating database...'
INFO: kubernetes-wait-job: b'Refreshing DB permissions...'
INFO: kubernetes-wait-job: b'GRANT'
INFO: kubernetes-wait-job: b'GRANT'
INFO: kubernetes-wait-job: b'GRANT'

This is the log i want:

Fetching logs from pod: restore-db-12344-fc7wj
========================== job log start ==========================
debconf: delaying package configuration, since apt-utils is not installed
Downloading Demo dump...
Recreating database...
Refreshing DB permissions...
GRANT
GRANT
GRANT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions