Compare commits
No commits in common. "f79f4dfe28c794792929f5dd266ee41d2111a008" and "988b6c1f4e1ddca47b4e16ecba98f8e9203151c1" have entirely different histories.
f79f4dfe28
...
988b6c1f4e
45 changed files with 41 additions and 240 deletions
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
when:
|
||||
path: "charts/unifi-controller/**"
|
||||
path: "charts/fleetlock/**"
|
||||
branches:
|
||||
- main
|
||||
pipeline:
|
||||
|
@ -10,4 +10,4 @@ pipeline:
|
|||
commands:
|
||||
- helm plugin install https://github.com/chartmuseum/helm-push
|
||||
- helm repo add therepo $HELM_REPO --username $HELM_USER --password $HELM_PASSWORD
|
||||
- helm cm-push charts/unifi-controller therepo
|
||||
- helm cm-push charts/fleetlock therepo
|
13
.woodpecker/mariadb.yaml
Normal file
13
.woodpecker/mariadb.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
when:
|
||||
path: "charts/mariadb/**"
|
||||
branches:
|
||||
- main
|
||||
pipeline:
|
||||
package:
|
||||
image: "docker.io/alpine/helm:latest"
|
||||
secrets: [helm_user, helm_password, helm_repo]
|
||||
commands:
|
||||
- helm plugin install https://github.com/chartmuseum/helm-push
|
||||
- helm repo add therepo $HELM_REPO --username $HELM_USER --password $HELM_PASSWORD
|
||||
- helm cm-push charts/mariadb therepo
|
13
.woodpecker/node-red.yaml
Normal file
13
.woodpecker/node-red.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
when:
|
||||
path: "charts/node-red/**"
|
||||
branches:
|
||||
- main
|
||||
pipeline:
|
||||
package:
|
||||
image: "docker.io/alpine/helm:latest"
|
||||
secrets: [helm_user, helm_password, helm_repo]
|
||||
commands:
|
||||
- helm plugin install https://github.com/chartmuseum/helm-push
|
||||
- helm repo add therepo $HELM_REPO --username $HELM_USER --password $HELM_PASSWORD
|
||||
- helm cm-push charts/node-red therepo
|
13
.woodpecker/timetagger.yaml
Normal file
13
.woodpecker/timetagger.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
when:
|
||||
path: "charts/timetagger/**"
|
||||
branches:
|
||||
- main
|
||||
pipeline:
|
||||
package:
|
||||
image: "docker.io/alpine/helm:latest"
|
||||
secrets: [helm_user, helm_password, helm_repo]
|
||||
commands:
|
||||
- helm plugin install https://github.com/chartmuseum/helm-push
|
||||
- helm repo add therepo $HELM_REPO --username $HELM_USER --password $HELM_PASSWORD
|
||||
- helm cm-push charts/timetagger therepo
|
|
@ -1,23 +0,0 @@
|
|||
# Patterns to ignore when building packages.
|
||||
# This supports shell glob matching, relative path matching, and
|
||||
# negation (prefixed with !). Only one pattern per line.
|
||||
.DS_Store
|
||||
# Common VCS dirs
|
||||
.git/
|
||||
.gitignore
|
||||
.bzr/
|
||||
.bzrignore
|
||||
.hg/
|
||||
.hgignore
|
||||
.svn/
|
||||
# Common backup files
|
||||
*.swp
|
||||
*.bak
|
||||
*.tmp
|
||||
*.orig
|
||||
*~
|
||||
# Various IDEs
|
||||
.project
|
||||
.idea/
|
||||
*.tmproj
|
||||
.vscode/
|
|
@ -1,6 +0,0 @@
|
|||
apiVersion: v2
|
||||
name: unifi-controller
|
||||
description: A Helm chart for unifi controller.
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "7.4.162"
|
|
@ -1,62 +0,0 @@
|
|||
{{/*
|
||||
Expand the name of the chart.
|
||||
*/}}
|
||||
{{- define "unifi-controller.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 "unifi-controller.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 "unifi-controller.chart" -}}
|
||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Common labels
|
||||
*/}}
|
||||
{{- define "unifi-controller.labels" -}}
|
||||
helm.sh/chart: {{ include "unifi-controller.chart" . }}
|
||||
{{ include "unifi-controller.selectorLabels" . }}
|
||||
{{- if .Chart.AppVersion }}
|
||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||
{{- end }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Selector labels
|
||||
*/}}
|
||||
{{- define "unifi-controller.selectorLabels" -}}
|
||||
app.kubernetes.io/name: {{ include "unifi-controller.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create the name of the service account to use
|
||||
*/}}
|
||||
{{- define "unifi-controller.serviceAccountName" -}}
|
||||
{{- if .Values.serviceAccount.create }}
|
||||
{{- default (include "unifi-controller.fullname" .) .Values.serviceAccount.name }}
|
||||
{{- else }}
|
||||
{{- default "default" .Values.serviceAccount.name }}
|
||||
{{- end }}
|
||||
{{- end }}
|
|
@ -1,81 +0,0 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "unifi-controller.fullname" . }}
|
||||
labels:
|
||||
{{- include "unifi-controller.labels" . | nindent 4 }}
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "unifi-controller.selectorLabels" . | nindent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
{{- with .Values.podAnnotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "unifi-controller.selectorLabels" . | nindent 8 }}
|
||||
spec:
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||
hostNetwork: true
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
env:
|
||||
- name: PUID
|
||||
value: 1000
|
||||
- name: PGID
|
||||
value: 1000
|
||||
- name: TZ
|
||||
value: Europe/London
|
||||
- name: MEM_LIMIT
|
||||
value: 1024
|
||||
- name: MEM_STARTUP
|
||||
value: 1024
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8443
|
||||
protocol: TCP
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: data
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.affinity }}
|
||||
affinity:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.tolerations }}
|
||||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
{{- if not .Values.pvc.existingClaim }}
|
||||
claimName: {{ include "unifi-controller.fullname" . }}
|
||||
{{- else }}
|
||||
claimName: {{ .Values.pvc.existingClaim }}
|
||||
{{- end }}
|
|
@ -1,15 +0,0 @@
|
|||
{{- if not .Values.pvc.existingClaim -}}
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: {{ include "unifi-controller.fullname" . }}
|
||||
labels:
|
||||
{{- include "unifi-controller.labels" . | nindent 4 }}
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: {{ .Values.pvc.storageClassName | quote }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.pvc.storage | quote }}
|
||||
{{- end }}
|
|
@ -1,51 +0,0 @@
|
|||
# Default values for unifi-controller.
|
||||
# This is a YAML-formatted file.
|
||||
# Declare variables to be passed into your templates.
|
||||
|
||||
replicaCount: 1
|
||||
|
||||
image:
|
||||
repository: docker.io/linuxserver/unifi-controller
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: ""
|
||||
|
||||
imagePullSecrets: []
|
||||
nameOverride: ""
|
||||
fullnameOverride: ""
|
||||
|
||||
podAnnotations: {}
|
||||
|
||||
podSecurityContext: {}
|
||||
# fsGroup: 2000
|
||||
|
||||
securityContext: {}
|
||||
# capabilities:
|
||||
# drop:
|
||||
# - ALL
|
||||
# readOnlyRootFilesystem: true
|
||||
# runAsNonRoot: true
|
||||
# runAsUser: 1000
|
||||
|
||||
resources: {}
|
||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||
# choice for the user. This also increases chances charts run on environments with little
|
||||
# resources, such as Minikube. If you do want to specify resources, uncomment the following
|
||||
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
|
||||
# limits:
|
||||
# cpu: 100m
|
||||
# memory: 128Mi
|
||||
# requests:
|
||||
# cpu: 100m
|
||||
# memory: 128Mi
|
||||
|
||||
nodeSelector: {}
|
||||
|
||||
tolerations: []
|
||||
|
||||
affinity: {}
|
||||
|
||||
pvc:
|
||||
existingClaim: false
|
||||
storageClassName: ""
|
||||
storage: "1Gi"
|
Loading…
Reference in a new issue