Skip to content

feature: enhance the error message on having an inproper kubeconfig for the syncagent #111

@stroebitzer

Description

@stroebitzer

Feature Description

My syncagents did not come up with this error message

{"level":"info","time":"2025-10-20T12:57:39.456Z","caller":"api-syncagent/main.go:101","msg":"Moin, I'm the kcp Sync Agent","version":"v0.3.0","name":"myservice-syncagent","apiexport":"myapiexport"} {"level":"fatal","time":"2025-10-20T12:57:39.458Z","caller":"api-syncagent/main.go:91","msg":"Sync Agent has encountered an error","error":"kcp kubeconfig does not point to a specific workspace"}

My kubeconfig (properly saved as secret and bound in the syncagent) looked like this

`apiVersion: v1
clusters:

So, my mistake was not providing the current-context. The error message kcp kubeconfig does not point to a specific workspace sent me into the wrong direction.

Proposed Solution

Please provide a proper error message.

Alternative Solutions

No response

Want to contribute?

  • I would like to work on this issue.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions