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

Use git remote-base instead of zip-archive for cloud image-update example #966

Merged

Conversation

stealthybox
Copy link
Member

Kustomize doesn't support local bases in sibling directories from the same archive.
( go-getter limitation: kubernetes-sigs/kustomize#2538 (comment) )

Quick fix for this broken example while we work on additional docs to help people fork into their repos.
@stefanprodan @kingdonb

problem:

# building /_base via zip works
kustomize build https://github.com/fluxcd/flux2/archive/main.zip//flux2-main/manifests/integrations/registry-credentials-sync/_base

# building /azure via zip fails because of the sibling dependency
kustomize build https://github.com/fluxcd/flux2/archive/main.zip//flux2-main/manifests/integrations/registry-credentials-sync/azure
Error: accumulating resources: 2 errors occurred:
        * accumulateFile error: "accumulating resources from '../_base': evalsymlink failure on '/tmp/kustomize-462235843/_base' : lstat /tmp/kustomize-462235843/_base: no such file or directory"
        * loader.New error: "error loading ../_base with git: url lacks host: ../_base, dir: evalsymlink failure on '/tmp/kustomize-462235843/_base' : lstat /tmp/kustomize-462235843/_base: no such file or directory, get: invalid source string: ../_base"

solution:

# build via git
kustomize build git@github.com/fluxcd/flux2//manifests/integrations/registry-credentials-sync/azure

@stealthybox
Copy link
Member Author

Also, the previous example was broken as well -- forget the top-level //flux2-main/... folder in the archive path

…mple

Signed-off-by: leigh capili <leigh@null.net>
@hiddeco hiddeco force-pushed the fixup-az-imgup-kustomize-build branch from c73f725 to b5027d8 Compare February 23, 2021 09:24
@stefanprodan stefanprodan added the area/docs Documentation related issues and pull requests label Feb 23, 2021
@stefanprodan stefanprodan merged commit d54e755 into fluxcd:main Feb 23, 2021
@stealthybox stealthybox deleted the fixup-az-imgup-kustomize-build branch February 24, 2021 00:53
ybelleguic pushed a commit to ybelleguic/flux2 that referenced this pull request Jan 9, 2023
build: Add `tidy` to `make verify`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docs Documentation related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants