Skip to content
This repository was archived by the owner on Aug 28, 2021. It is now read-only.
This repository was archived by the owner on Aug 28, 2021. It is now read-only.

Check doesn't work with TLS and token_path #107

Open
@xdom

Description

@xdom

Hi,
we have the resource configured with cluster_url, cluster_ca and namespace resource parameters. Then we only use put with token_path (and other params related to deployment).
However, check is scheduled even if no get is set up but it cannot authenticate against Kubernetes, obviously:

resource script '/opt/resource/check []' failed: exit status 1

stderr:
Initializing kubectl...
Cluster "default" set.
User "admin" set.
Context "default" modified.
Switched to context "default".
error: tls: failed to find any PEM data in certificate input

Although this doesn't cause any problems with put, it makes resource square orange (failing). This is not documented. Could you suggest anything to deal with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions