Skip to content

dev: make command errors #770

Closed
Closed
@somaritane

Description

When kube config context is empty or pointing to another cluster or cluster without k8gb installed, make commands are failing:

 ❯ make                                
The connection to the server localhost:8080 was refused - did you specify the right host or port?
...
❯ make                                           
Error from server (NotFound): namespaces "k8gb" not found

This happens during the evaluation of the K8GB_COREDNS_IP make var:

k8gb/Makefile

Line 38 in 367e007

K8GB_COREDNS_IP ?= $(shell kubectl get svc k8gb-coredns -n k8gb -o custom-columns='IP:spec.clusterIP' --no-headers)

Also make demo command fails in any case:

make demo
/bin/sh: K8GB_COREDNS_IP: command not found

Most probably a regression by #764

Activity

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

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions