mirror of
https://github.com/outbackdingo/Biohazard.git
synced 2026-01-27 02:18:21 +00:00
feat: begin migrating to OCIRepository for Helm charts
This commit is contained in:
@@ -12,6 +12,17 @@
|
||||
"versioningTemplate": "helm",
|
||||
"depNameTemplate": "app-template",
|
||||
"registryUrlTemplate": "https://bjw-s-labs.github.io/helm-charts"
|
||||
},
|
||||
{
|
||||
"description": ["app-template OCI versions"],
|
||||
"customType": "regex",
|
||||
"managerFilePatterns": ["/^kube/.+/ks\\.ya?ml$/"],
|
||||
"matchStrings": [
|
||||
"APP_TEMPLATE: \\\"+(?<currentValue>[\\d\\.]+)\\\"+",
|
||||
],
|
||||
"datasourceTemplate": "docker",
|
||||
"versioningTemplate": "docker",
|
||||
"depNameTemplate": "ghcr.io/bjw-s-labs/helm/app-template"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
28
kube/repos/flux/helm/oci/app-template/chart.yaml
Normal file
28
kube/repos/flux/helm/oci/app-template/chart.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://flux.jank.ing/ocirepository-source-v1.json?test
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: OCIRepository
|
||||
metadata:
|
||||
name: app-template
|
||||
spec:
|
||||
interval: 1h
|
||||
layerSelector:
|
||||
mediaType: application/vnd.cncf.helm.chart.content.v1.tar+gzip
|
||||
operation: copy
|
||||
url: oci://ghcr.io/bjw-s-labs/helm/app-template
|
||||
ref:
|
||||
tag: "${APP_TEMPLATE:=4.4.0}"
|
||||
---
|
||||
# yaml-language-server: $schema=https://flux.jank.ing/ocirepository-source-v1.json?test
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: OCIRepository
|
||||
metadata:
|
||||
name: app-template-renovate-test
|
||||
spec:
|
||||
interval: 1h
|
||||
layerSelector:
|
||||
mediaType: application/vnd.cncf.helm.chart.content.v1.tar+gzip
|
||||
operation: copy
|
||||
url: oci://ghcr.io/bjw-s-labs/helm/app-template
|
||||
ref:
|
||||
tag: 4.2.0
|
||||
7
kube/repos/flux/helm/oci/app-template/kustomization.yaml
Normal file
7
kube/repos/flux/helm/oci/app-template/kustomization.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
|
||||
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||||
kind: Component
|
||||
resources:
|
||||
- ./chart.yaml
|
||||
|
||||
@@ -7,14 +7,10 @@ metadata:
|
||||
namespace: *app
|
||||
spec:
|
||||
interval: 5m
|
||||
chart:
|
||||
spec:
|
||||
chart: app-template
|
||||
version: 4.4.0
|
||||
sourceRef:
|
||||
name: bjw-s
|
||||
kind: HelmRepository
|
||||
namespace: flux-system
|
||||
chartRef:
|
||||
kind: OCIRepository
|
||||
name: *app
|
||||
namespace: *ns
|
||||
values:
|
||||
controllers:
|
||||
app:
|
||||
|
||||
@@ -13,11 +13,15 @@ spec:
|
||||
path: ./kube/deploy/apps/${APPNAME}/app
|
||||
components:
|
||||
- ../../../core/flux-system/alerts/template/
|
||||
- ../../../../repos/flux/helm/oci/app-template/
|
||||
dependsOn:
|
||||
- name: crds
|
||||
namespace: flux-system
|
||||
- name: ${APPNAME}-db
|
||||
# - name: ${APPNAME}-db
|
||||
- name: ${APPNAME}-pvc
|
||||
postBuild:
|
||||
substitute:
|
||||
APP_TEMPLATE: 4.4.0
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
|
||||
Reference in New Issue
Block a user