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

BUG: unable to remote build kustomization #515

Closed
MagnusRef opened this issue Apr 29, 2024 · 1 comment
Closed

BUG: unable to remote build kustomization #515

MagnusRef opened this issue Apr 29, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@MagnusRef
Copy link

Problem Description

Kustomization looks to be requiring the git binary if you want to reference remote kustomization inside of a flux kustomization.

Git command is not available in the addon-controller image, however it would be preferable to find a way to fix this without having to add the binary to the distroless image.

more info in slack convo:
https://projectsveltos.slack.com/archives/C046P825BBL/p1714399969297979

System Information

CLUSTERAPI VERSION: v1.6.4
SVELTOS VERSION: v1.27.0
KUBERNETES VERSION: 1.29.3

Logs


│ I0429 14:02:40.560837       1 worker.go:238] "added to result with err accumulating resources: accumulation err='accumulating resources from '../../base': '/tmp/kustomization-latest@sha256:0911cb337523b37159115 │
│ d6cd83d99672cbcb1e860813b52d848b17fd15967ab238178723/base' must resolve to a file': recursed accumulation of path '/tmp/kustomization-latest@sha256:0911cb337523b37159115d6cd83d99672cbcb1e860813b52d848b17fd15967 │
│ ab238178723/base': accumulating components: accumulateDirectory: \"recursed accumulation of path '/tmp/kustomization-latest@sha256:0911cb337523b37159115d6cd83d99672cbcb1e860813b52d848b17fd15967ab238178723/compo │
│ nents/pods-security-standards': accumulating resources: accumulation err='accumulating resources from 'https://github.com/kyverno/policies/pod-security?ref=release-1.12&timeout=120s': URL is a git repository':  │
│ no 'git' program on path: exec: \\\"git\\\": executable file not found in $PATH\"" logger="deployer" worker="8" key="erst-azure-workload:::<REDACTED-CLUSTER-NAME>:::Capi:::kyverno-policies-capi-<REDACTED-CLUSTER-NAME>:::Ku │
│ stomize:::false"                                                                                                                                                                                                   │
@MagnusRef MagnusRef added the bug Something isn't working label Apr 29, 2024
@gianlucam76 gianlucam76 added this to the v0.30.0 milestone May 7, 2024
@gianlucam76 gianlucam76 self-assigned this May 7, 2024
@gianlucam76
Copy link
Member

Image to use is projectsveltos/addon-contoller-git:v0.30.0 (v0.30.0 is the first release where this image is available).

This image will be available in any future release. Just replace tag with future release name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants