Skip to content

parse error: Invalid numeric literal at line 1, column 8 #42

Closed
@HGCH81

Description

@HGCH81

Hello,

with new kubernetes version v1.28.6 some cluster have problemes with secrets token like:

kubectl get node
Warning: Use tokens from the TokenRequest API or manually created secret-based tokens instead of auto-generated secret-based tokens.

this cause the exception:
parse error: Invalid numeric literal at line 1, column 8

i have had "grep" condition in line 124:

else
    data=$(eval timeout "$TIMEOUT" kubectl get --raw "/$api_path" | grep -i -v "Warn" 2>&1)

I hope this can help other people, and if possible add this to the main script.

In some cases you need to add Decrecated either

| grep -i -v "Warn" | grep -i -v "Deprecat"

Thx

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