Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Bug: Miss leading Error with current-context #33

Open
oliverbaehler opened this issue Mar 23, 2021 · 0 comments
Open

Bug: Miss leading Error with current-context #33

oliverbaehler opened this issue Mar 23, 2021 · 0 comments

Comments

@oliverbaehler
Copy link
Contributor

A missleading error is thrown when the current-context field is set in the referenced kubeconfig:

TRAC[0000] Loading targets from inventory.               filter=".*" group-vars-dir=group_vars limits=
TRAC[0000] Successfully loaded targets from inventory.   targets=1
TRAC[0000] Loading playbooks for targets.                load-cluster-inventory=true playbook-file=playbook.yml spruce-eval=true
ERRO[0000] Failed to compile playbooks.                  error="Failed to create playbook for target 'harvester-01': 'failed to retrieve cluster-inventory: invalid configuration: [context was not found for specified context: harvester-01, cluster has no server defined]'"
error: Failed to create playbook for target 'harvester-01': 'failed to retrieve cluster-inventory: invalid configuration: [context was not found for specified context: harvester-01, cluster has no server defined]'

After deleting the value of current-context this error no longer occours.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant