getporter / operator

The Porter Operator gives you a native, integrated experience for managing your bundles from Kubernetes. It is the recommended way to automate your bundle pipeline with support for GitOps.
https://porter.sh/operator
Apache License 2.0
31 stars 18 forks source link

mage Deploy should update our kubeconfig #251

Open schristoff opened 1 year ago

schristoff commented 1 year ago

Describe the bug

When we run mage Deploy it should configure the kube config so we can run kubectl commands without having to mess with the configs. :)

To Reproduce

Steps to reproduce the behavior:

  1. Run mage Deploy
  2. kubectl get pods
  3. :(

Expected behavior

When mage deploy finishes successfully, we should be able to interact with our cluster via kubectl.

Operator execution and Output

kubectl get pods
E0816 21:43:33.333941   23626 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused

If I go grab the kubeconfig from kind, and then put it in the expected area (~/.kube/config) everything works

troy0820 commented 1 year ago

https://github.com/getporter/magefiles/pull/30 PR should do it but I'm trying to do some magic to import it (maybe go.work) to settle the test case for this issue.