https://rancher.com/ logo
Title
r

rough-carpet-50214

11/01/2022, 9:27 PM
Hey, fleet is giving me an error when we use
kustomize.dir
in our fleet.yaml and point to a directory with a
kustomization.yaml
file in it that references a github link like this
apiVersion: <http://kustomize.config.k8s.io/v1beta1|kustomize.config.k8s.io/v1beta1>
kind: Kustomization

resources:
- <http://github.com/hashicorp/consul-api-gateway/config/crd?ref=v0.3.0|github.com/hashicorp/consul-api-gateway/config/crd?ref=v0.3.0>
The error we are getting is
Error while running post render on files: accumulating resources: accumulation err='accumulating resources from '<http://github.com/hashicorp/consul-api-gateway/config/crd?ref=v0.3.0|github.com/hashicorp/consul-api-gateway/config/crd?ref=v0.3.0>': 'crds/github.com/hashicorp/consul-api-gateway/config/crd?ref=v0.3.0' doesn't exist': no 'git' program on path: exec: "git": executable file not found in $PATH
It would appear that whatever fleet container is doing this processing does not have access to a git executable. We are working on figuring out what container this is and trying to do a custom build of it that includes git. However, I think the public image for this should include the git executable or some alternative to get this functionality working.