Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kctrl dev fails to install git package #1339

Closed
rcmadhankumar opened this issue Oct 4, 2023 · 0 comments · Fixed by #1391
Closed

kctrl dev fails to install git package #1339

rcmadhankumar opened this issue Oct 4, 2023 · 0 comments · Fixed by #1391
Assignees
Labels
bug This issue describes a defect or unexpected behavior carvel-accepted This issue should be considered for future work and that the triage process has been completed

Comments

@rcmadhankumar
Copy link
Contributor

rcmadhankumar commented Oct 4, 2023

What steps did you take:
Downloaded the latest version v0.48.1 of kctrl from the releases and tried to install the pkg-standalone example using kctrl dev

What happened:
Package installation failed as it could not find git in the $PATH as below. But, git is available in the PATH.

$git version
git version 2.42.0
$ kctrl dev -f packages.yaml -f package install.yaml 
Target cluster 'https://127.0.0.1:56506' (nodes: kind-control-plane)

apiVersion: packaging.carvel.dev/v1alpha1
kind: PackageInstall
metadata:
  creationTimestamp: null
  name: pkg-standalone-demo
  namespace: pkg-standalone
spec:
  packageRef:
    refName: pkg-standalone.test.carvel.dev
    versionSelection:
      constraints: 2.0.0
  serviceAccountName: pkg-standalone-sa
  values:
  - secretRef:
      name: pkg-standalone-demo-values
status:
  conditions: null
  friendlyDescription: ""
  observedGeneration: 0

Reconciling in-memory app/pkg-standalone-demo (namespace: pkg-standalone) ...
==> Executing /usr/local/bin/vendir [vendir sync -f - --lock-file /dev/null]
==> Finished executing /usr/local/bin/vendir


4:30:55PM: Fetch started
4:30:55PM: Fetch failed
	    | vendir: Error: Syncing directory '0':
	    |   Syncing directory '.' with git contents:
	    |     Fetching git repository:
	    |       Git [init]: exec: "git": executable file not found in $PATH (stderr: )
	    |
	    | Fetching resources: Error (see .status.usefulErrorMessage for details)

App tailing error: Timed out waiting for caches to sync

Succeeded

What did you expect:
Expecting the package to be installed smoothly without any errors.

Anything else you would like to add:

Environment:

  • kapp Controller version (execute kubectl get deployment -n kapp-controller kapp-controller -o yaml and the annotation is kbld.k14s.io/images):
kctrl version 0.48.0
  • Kubernetes version (use kubectl version)
$kubectl version
Client Version: v1.28.2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.27.3

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.

@rcmadhankumar rcmadhankumar added bug This issue describes a defect or unexpected behavior carvel-triage This issue has not yet been reviewed for validity labels Oct 4, 2023
@rcmadhankumar rcmadhankumar added carvel-accepted This issue should be considered for future work and that the triage process has been completed and removed carvel-triage This issue has not yet been reviewed for validity labels Oct 19, 2023
@rcmadhankumar rcmadhankumar self-assigned this Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes a defect or unexpected behavior carvel-accepted This issue should be considered for future work and that the triage process has been completed
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant