Move to app-of-apps chart
This commit is contained in:
parent
d07f159c53
commit
45101a04c9
4 changed files with 15 additions and 114 deletions
|
|
@ -1,24 +1,12 @@
|
||||||
|
---
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: media
|
name: media
|
||||||
|
type: application
|
||||||
|
version: 1.0.0
|
||||||
|
appVersion: "1.16.1"
|
||||||
description: App-of-apps for self-hosted media applications
|
description: App-of-apps for self-hosted media applications
|
||||||
|
|
||||||
# A chart can be either an 'application' or a 'library' chart.
|
dependencies:
|
||||||
#
|
- name: app-of-apps
|
||||||
# Application charts are a collection of templates that can be packaged into versioned archives
|
version: 1.0.2
|
||||||
# to be deployed.
|
repository: file://../../charts/app-of-apps
|
||||||
#
|
|
||||||
# Library charts provide useful utilities or functions for the chart developer. They're included as
|
|
||||||
# a dependency of application charts to inject those utilities and functions into the rendering
|
|
||||||
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
|
|
||||||
type: application
|
|
||||||
|
|
||||||
# This is the chart version. This version number should be incremented each time you make changes
|
|
||||||
# to the chart and its templates, including the app version.
|
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
|
||||||
version: 0.1.0
|
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
|
||||||
# It is recommended to use it with quotes.
|
|
||||||
appVersion: "1.16.0"
|
|
||||||
|
|
|
||||||
|
|
@ -1,72 +0,0 @@
|
||||||
{{/*
|
|
||||||
Expand the name of the chart.
|
|
||||||
*/}}
|
|
||||||
{{- define "media.name" -}}
|
|
||||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create a default fully qualified app name.
|
|
||||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
|
||||||
If release name contains chart name it will be used as a full name.
|
|
||||||
*/}}
|
|
||||||
{{- define "media.fullname" -}}
|
|
||||||
{{- if .Values.fullnameOverride }}
|
|
||||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
|
||||||
{{- else }}
|
|
||||||
{{- $name := default .Chart.Name .Values.nameOverride }}
|
|
||||||
{{- if contains $name .Release.Name }}
|
|
||||||
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create chart name and version as used by the chart label.
|
|
||||||
*/}}
|
|
||||||
{{- define "media.chart" -}}
|
|
||||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Set namespace
|
|
||||||
*/}}
|
|
||||||
{{- define "media.destination" -}}
|
|
||||||
destination:
|
|
||||||
namespace: {{ .Values.spec.destination.namespace }}
|
|
||||||
server: {{ .Values.spec.destination.server }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Common labels
|
|
||||||
*/}}
|
|
||||||
{{- define "media.labels" -}}
|
|
||||||
helm.sh/chart: {{ include "media.chart" . }}
|
|
||||||
{{ include "media.selectorLabels" . }}
|
|
||||||
{{- if .Chart.AppVersion }}
|
|
||||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
|
||||||
{{- end }}
|
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Selector labels
|
|
||||||
*/}}
|
|
||||||
{{- define "media.selectorLabels" -}}
|
|
||||||
app.kubernetes.io/name: {{ include "media.name" . }}
|
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create the name of the service account to use
|
|
||||||
*/}}
|
|
||||||
{{- define "media.serviceAccountName" -}}
|
|
||||||
{{- if .Values.serviceAccount.create }}
|
|
||||||
{{- default (include "media.fullname" .) .Values.serviceAccount.name }}
|
|
||||||
{{- else }}
|
|
||||||
{{- default "default" .Values.serviceAccount.name }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: kavita
|
|
||||||
namespace: argocd
|
|
||||||
labels:
|
|
||||||
{{- include "media.labels" . | nindent 4 }}
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
{{- include "media.destination" . | nindent 2 }}
|
|
||||||
project: default
|
|
||||||
source:
|
|
||||||
path: apps/kavita
|
|
||||||
repoURL: {{ .Values.spec.source.repoURL }}
|
|
||||||
targetRevision: {{ .Values.spec.source.targetRevision }}
|
|
||||||
syncPolicy:
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
|
|
@ -1,7 +1,11 @@
|
||||||
spec:
|
---
|
||||||
|
app-of-apps:
|
||||||
|
project: apps
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: media
|
|
||||||
source:
|
source:
|
||||||
repoURL: https://git.nc.landry.land/davad/argo.git
|
repoURL: https://git.nc.landry.land/davad/argo.git
|
||||||
targetRevision: HEAD
|
path: apps
|
||||||
|
apps:
|
||||||
|
- name: kavita
|
||||||
|
namespace: kavita
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue