Issues in kustomize example #118

Closed
opened 2025-12-29 01:23:30 +01:00 by adam · 0 comments
Owner

Originally created by @leigh-johnson on GitHub (Feb 13, 2022).

Bug description

👋 Thank you for all of the hard work on headscale + thanks to the community contributors who created the kustomize example.

I'm running through the kustomize example and noticed an error in the init script.

I understand this is a community-contributed configuration, so I'll use this issue to document my experience and submit patches as I go. =) Let me know who I should tag for review on these.

To Reproduce

Issue 318.1: kustomize init.bash error: cp: cannot stat '../derp.yaml': No such file or directory

  1. clone repo && cd headscale/docs/examples/kustomize
  2. run init.bash
  3. notice: example derp.yml was moved or deleted.
$./init.bash 
++ dirname ./init.bash
+ cd .
+ umask 022
+ mkdir -p base/site/
+ '[' '!' -e base/site/public.env ']'
+ cat
+ '[' '!' -e base/site/derp.yaml ']'
+ cp ../derp.yaml base/site/derp.yaml
cp: cannot stat '../derp.yaml': No such file or directory

Context info

$ git rev-parse HEAD
c794f32f586c1e900ead2c1b5a24bf76d2875aea
Originally created by @leigh-johnson on GitHub (Feb 13, 2022). **Bug description** :wave: Thank you for all of the hard work on headscale + thanks to the community contributors who created the kustomize example. I'm running through the [kustomize example](https://github.com/juanfont/headscale/tree/main/docs/examples/kustomize) and noticed an error in the init script. I understand this is a community-contributed configuration, so I'll use this issue to document my experience and submit patches as I go. =) Let me know who I should tag for review on these. **To Reproduce** ### Issue 318.1: kustomize init.bash error: cp: cannot stat '../derp.yaml': No such file or directory 1. clone repo && cd headscale/docs/examples/kustomize 2. run init.bash 3. notice: example derp.yml was moved or deleted. ``` $./init.bash ++ dirname ./init.bash + cd . + umask 022 + mkdir -p base/site/ + '[' '!' -e base/site/public.env ']' + cat + '[' '!' -e base/site/derp.yaml ']' + cp ../derp.yaml base/site/derp.yaml cp: cannot stat '../derp.yaml': No such file or directory ``` **Context info** ``` $ git rev-parse HEAD c794f32f586c1e900ead2c1b5a24bf76d2875aea ```
adam added the bug label 2025-12-29 01:23:30 +01:00
adam closed this issue 2025-12-29 01:23:30 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#118