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

Bug: Miss leading Error with current-context #33

Description

@oliverbaehler

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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