carvel-dev / kapp-controller

Continuous delivery and package management for Kubernetes.
https://carvel.dev/kapp-controller
Apache License 2.0
267 stars 103 forks source link

kctrl package release does not work as expected inside a kubernetes pod #1627

Open rohitagg2020 opened 1 week ago

rohitagg2020 commented 1 week ago

What steps did you take:

  1. Added kctrl as binary to the Dockerfile.
  2. Created a container image.
  3. Deployed a pod with the above image.
  4. Ssh into the pod.
  5. Ran kctrl pkg release inside the k8s pod.

What happened: When I am trying to run kctrl pkg release inside the k8s pod, it errors out.

Screenshot 2024-09-10 at 8 05 28 PM

What did you expect: Expected kctrl pkg release to complete successfully and produce the carvel-artifacts.

Anything else you would like to add: [Additional information that will assist in solving the issue.]

Environment:


Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible" 👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

madAndroid commented 6 days ago

We're experiencing this as well - it seems any KUBECONFIG related environment variables are being ignored, and the internal K8s environment variables are being used instead