moved common outside application set

This commit is contained in:
Morten Olsen
2026-01-01 20:37:09 +01:00
parent d5a0803eee
commit 4e0b6ed008
16 changed files with 17 additions and 19 deletions

View File

@@ -1,6 +0,0 @@
dependencies:
- name: common
repository: file://../common
version: 1.0.0
digest: sha256:07cebde439abe4ba19bb28e844b7419dab83c7f613886416aaf3ec08e8059144
generated: "2026-01-01T12:59:49.454842+01:00"

View File

@@ -4,4 +4,4 @@ name: audiobookshelf
dependencies: dependencies:
- name: common - name: common
version: 1.0.0 version: 1.0.0
repository: file://../common repository: file://../../common

View File

@@ -4,4 +4,4 @@ name: baikal
dependencies: dependencies:
- name: common - name: common
version: 1.0.0 version: 1.0.0
repository: file://../common repository: file://../../common

View File

@@ -4,4 +4,4 @@ name: blinko
dependencies: dependencies:
- name: common - name: common
version: 1.0.0 version: 1.0.0
repository: file://../common repository: file://../../common

View File

@@ -4,4 +4,4 @@ name: bytestash
dependencies: dependencies:
- name: common - name: common
version: 1.0.0 version: 1.0.0
repository: file://../common repository: file://../../common

View File

@@ -4,4 +4,4 @@ name: calibre-web
dependencies: dependencies:
- name: common - name: common
version: 1.0.0 version: 1.0.0
repository: file://../common repository: file://../../common

View File

@@ -4,4 +4,4 @@ name: coder
dependencies: dependencies:
- name: common - name: common
version: 1.0.0 version: 1.0.0
repository: file://../common repository: file://../../common

View File

@@ -4,4 +4,4 @@ name: esphome
dependencies: dependencies:
- name: common - name: common
version: 1.0.0 version: 1.0.0
repository: file://../common repository: file://../../common

View File

@@ -4,4 +4,4 @@ name: forgejo
dependencies: dependencies:
- name: common - name: common
version: 1.0.0 version: 1.0.0
repository: file://../common repository: file://../../common

View File

@@ -4,4 +4,4 @@ name: gitea
dependencies: dependencies:
- name: common - name: common
version: 1.0.0 version: 1.0.0
repository: file://../common repository: file://../../common

View File

@@ -30,7 +30,7 @@ name: your-app
dependencies: dependencies:
- name: common - name: common
version: 1.0.0 version: 1.0.0
repository: file://../common repository: file://../../common
``` ```
### Step 2: Restructure values.yaml ### Step 2: Restructure values.yaml
@@ -197,6 +197,8 @@ cd apps/charts/your-app
helm dependency build helm dependency build
``` ```
**Note:** The common library is located at `apps/common/`, so charts in `apps/charts/` use `repository: file://../../common`.
### Step 5: Test the Migration ### Step 5: Test the Migration
Test that the chart renders correctly: Test that the chart renders correctly:
@@ -653,10 +655,12 @@ externalSecrets:
**Solution:** **Solution:**
```bash ```bash
cd apps/charts/your-app cd apps/charts/your-app
rm -rf charts rm -rf charts Chart.lock
helm dependency build helm dependency build
``` ```
**Note:** After changing the repository path in `Chart.yaml` (e.g., from `file://../common` to `file://../../common`), you must delete `Chart.lock` and rebuild dependencies.
### Issue: Template Syntax Errors ### Issue: Template Syntax Errors
**Error:** Template rendering fails with syntax errors **Error:** Template rendering fails with syntax errors

View File

@@ -13,7 +13,7 @@ name: your-app
dependencies: dependencies:
- name: common - name: common
version: 1.0.0 version: 1.0.0
repository: file://../common repository: file://../../common
``` ```
Then run `helm dependency build` to download the dependency. Then run `helm dependency build` to download the dependency.

View File

@@ -73,7 +73,7 @@ env:
## Extending Placeholders ## Extending Placeholders
To add more placeholders, edit `apps/charts/common/templates/_helpers.tpl` in the `common.env` helper: To add more placeholders, edit `apps/common/templates/_helpers.tpl` in the `common.env` helper:
### Current Implementation ### Current Implementation