initial
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-02-28 20:47:48 +03:00
commit 1b29710513
14 changed files with 689 additions and 0 deletions

23
.drone.yml Normal file
View File

@ -0,0 +1,23 @@
---
kind: pipeline
type: docker
name: default
trigger:
event:
- push
steps:
- name: release
image: cr.grachevko.ru/drone/helm:0.1.4
settings:
name: hedgedoc
registry: https://harbor.grachevko.ru/chartrepo
username:
from_secret: HELM_REPO_USERNAME
password:
from_secret: HELM_REPO_PASSWORD
when:
branch:
- master
- rc

23
.helmignore Normal file
View File

@ -0,0 +1,23 @@
# 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/

11
Chart.yaml Normal file
View File

@ -0,0 +1,11 @@
apiVersion: v2
name: hedgedoc
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
appVersion: 1.9.7
maintainers:
- email: me@grachevko.ru
name: Konstantin Grachev
sources:
- https://git.grachevko.ru/hedgedoc/charts

22
templates/NOTES.txt Normal file
View File

@ -0,0 +1,22 @@
1. Get the application URL by running these commands:
{{- if .Values.ingress.enabled }}
{{- range $host := .Values.ingress.hosts }}
{{- range .paths }}
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }}
{{- end }}
{{- end }}
{{- else if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "hedgedoc.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "hedgedoc.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "hedgedoc.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "hedgedoc.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT
{{- end }}

62
templates/_helpers.tpl Normal file
View File

@ -0,0 +1,62 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "hedgedoc.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 "hedgedoc.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 "hedgedoc.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "hedgedoc.labels" -}}
helm.sh/chart: {{ include "hedgedoc.chart" . }}
{{ include "hedgedoc.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "hedgedoc.selectorLabels" -}}
app.kubernetes.io/name: {{ include "hedgedoc.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
{{- define "hedgedoc.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "hedgedoc.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

111
templates/configmap.yaml Normal file
View File

@ -0,0 +1,111 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "hedgedoc.fullname" . }}
labels:
{{- include "hedgedoc.labels" . | nindent 4 }}
data:
CMD_SOURCE_URL: {{ .Values.config.sourceURL | quote }}
CMD_DOMAIN: {{ .Values. config.domain | quote }}
CMD_URL_PATH: {{ .Values. config.urlPath | quote }}
CMD_HOST: {{ .Values. config.host | quote }}
CMD_PORT): {{ .Values. config.port | quote }}
CMD_PATH: {{ .Values. config.path | quote }}
CMD_LOGLEVEL: {{ .Values. config.loglevel | quote }}
CMD_URL_ADDPORT: {{ .Values. config.urlAddPort | quote }}
CMD_USESSL: {{ .Values. config.useSSL | quote }}
CMD_HSTS_ENABLE: {{ .Values. config.hsts.enable | quote }}
CMD_HSTS_MAX_AGE: {{ .Values. config.hsts.maxAgeSeconds | quote }}
CMD_HSTS_INCLUDE_SUBDOMAINS: {{ .Values. config.hsts.includeSubdomains | quote }}
CMD_HSTS_PRELOAD: {{ .Values. config.hsts.preload | quote }}
CMD_CSP_ENABLE: {{ .Values. config.csp.enable | quote }}
CMD_CSP_REPORTURI: {{ .Values. config.csp.reportURI | quote }}
CMD_CSP_ADD_DISQUS: {{ .Values. config.csp.addDisqus | quote }}
CMD_CSP_ADD_GOOGLE_ANALYTICS: {{ .Values. config.csp.addGoogleAnalytics | quote }}
CMD_CSP_ALLOW_FRAMING: {{ .Values. config.csp.allowFraming | quote }}
CMD_CSP_ALLOW_PDF_EMBED: {{ .Values. config.csp.allowPDFEmbed | quote }}
CMD_COOKIE_POLICY: {{ .Values. config.cookiePolicy | quote }}
CMD_PROTOCOL_USESSL: {{ .Values. config.protocolUseSSL | quote }}
CMD_ALLOW_ORIGIN: {{ .Values. config.allowOrigin | quote }}
CMD_ALLOW_ANONYMOUS: {{ .Values. config.allowAnonymous | quote }}
CMD_ALLOW_ANONYMOUS_EDITS: {{ .Values. config.allowAnonymousEdits | quote }}
CMD_ALLOW_FREEURL: {{ .Values. config.allowFreeURL | quote }}
CMD_REQUIRE_FREEURL_AUTHENTICATION: {{ .Values. config.requireFreeURLAuthentication | quote }}
CMD_FORBIDDEN_NOTE_IDS: {{ .Values. config.forbiddenNoteIDs | quote }}
CMD_DEFAULT_PERMISSION: {{ .Values. config.defaultPermission | quote }}
CMD_DB_USERNAME: {{ .Values. config.csp.db.username | quote }}
CMD_DB_HOST: {{ .Values. config.csp.db.host | quote }}
CMD_DB_PORT: {{ .Values. config.csp.db.port | quote }}
CMD_DB_DATABASE: {{ .Values. config.csp.db.database | quote }}
CMD_DB_DIALECT: {{ .Values. config.csp.db.dialect | quote }}
CMD_SESSION_SECRET: {{ .Values. config.sessionSecret | quote }}
CMD_SESSION_LIFE: {{ .Values. config.sessionLife | quote }}
CMD_TOOBUSY_LAG: {{ .Values. config.tooBusyLag | quote }}
CMD_IMAGE_UPLOAD_TYPE: {{ .Values. config.imageUploadType | quote }}
CMD_IMGUR_CLIENTID: {{ .Values. config.imgur.clientID | quote }}
CMD_S3_ACCESS_KEY_ID: {{ .Values. config.s3.accessKeyId | quote }}
CMD_S3_REGION: {{ .Values. config.s3.region | quote }}
CMD_S3_ENDPOINT: {{ .Values. config.s3.endpoint | quote }}
CMD_S3_BUCKET: {{ .Values. config.s3bucket | quote }}
CMD_S3_FOLDER: {{ .Values. config.s3folder | quote }}
CMD_S3_PUBLIC_FILES: {{ .Values. config.s3publicFiles | quote }}
CMD_MINIO_ACCESS_KEY: {{ .Values. config.minio.accessKey | quote }}
CMD_MINIO_ENDPOINT: {{ .Values. config.minio.endPoint | quote }}
CMD_MINIO_SECURE: {{ .Values. config.minio.secure | quote }}
CMD_MINIO_PORT: {{ .Values. config.minio.port | quote }}
CMD_LUTIM_URL: {{ .Values. config.lutim.url | quote }}
CMD_AZURE_CONNECTION_STRING: {{ .Values. config.azure.connectionString | quote }}
CMD_AZURE_CONTAINER: {{ .Values. config.azure.container | quote }}
CMD_FACEBOOK_CLIENTID: {{ .Values. config.facebook.clientID | quote }}
CMD_TWITTER_CONSUMERKEY: {{ .Values. config.twitter.consumerKey | quote }}
CMD_GITHUB_CLIENTID: {{ .Values. config.github.clientID | quote }}
CMD_GITLAB_BASEURL: {{ .Values. config.gitlab.baseURL | quote }}
CMD_GITLAB_CLIENTID: {{ .Values. config.gitlab.clientID | quote }}
CMD_GITLAB_SCOPE: {{ .Values. config.gitlab.scope | quote }}
CMD_MATTERMOST_BASEURL: {{ .Values. config.mattermost.baseURL | quote }}
CMD_MATTERMOST_CLIENTID: {{ .Values. config.mattermost.clientID | quote }}
CMD_OAUTH2_PROVIDERNAME: {{ .Values. config.oauth2.providerName | quote }}
CMD_OAUTH2_BASEURL: {{ .Values. config.oauth2.baseURL | quote }}
CMD_OAUTH2_USER_PROFILE_URL: {{ .Values. config.oauth2.userProfileURL | quote }}
CMD_OAUTH2_USER_PROFILE_ID_ATTR: {{ .Values. config.oauth2.userProfileIdAttr | quote }}
CMD_OAUTH2_USER_PROFILE_USERNAME_ATTR: {{ .Values. config.oauth2.userProfileUsernameAttr | quote }}
CMD_OAUTH2_USER_PROFILE_DISPLAY_NAME_ATTR: {{ .Values. config.oauth2.userProfileDisplayNameAttr | quote }}
CMD_OAUTH2_USER_PROFILE_EMAIL_ATTR: {{ .Values. config.oauth2.userProfileEmailAttr | quote }}
CMD_OAUTH2_TOKEN_URL: {{ .Values. config.oauth2.tokenURL | quote }}
CMD_OAUTH2_AUTHORIZATION_URL: {{ .Values. config.oauth2.authorizationURL | quote }}
CMD_OAUTH2_CLIENT_ID: {{ .Values. config.oauth2.clientID | quote }}
CMD_OAUTH2_SCOPE: {{ .Values. config.oauth2.scope | quote }}
CMD_OAUTH2_ROLES_CLAIM: {{ .Values. config.oauth2.rolesClaim | quote }}
CMD_OAUTH2_ACCESS_ROLE: {{ .Values. config.oauth2.accessRole | quote }}
CMD_DROPBOX_CLIENTID: {{ .Values. config.dropbox.clientID | quote }}
CMD_DROPBOX_APPKEY: {{ .Values. config.dropbox.appKey | quote }}
CMD_GOOGLE_CLIENTID: {{ .Values. config.google.clientID | quote }}
CMD_GOOGLE_HOSTEDDOMAIN: {{ .Values. config.google.hostedDomain | quote }}
CMD_LDAP_PROVIDERNAME: {{ .Values. config.ldap.providerName | quote }}
CMD_LDAP_URL: {{ .Values. config.ldap.url | quote }}
CMD_LDAP_BINDDN: {{ .Values. config.ldap.bindDn | quote }}
CMD_LDAP_BINDCREDENTIALS: {{ .Values. config.ldap.bindCredentials | quote }}
CMD_LDAP_SEARCHBASE: {{ .Values. config.ldap.searchBase | quote }}
CMD_LDAP_SEARCHFILTER: {{ .Values. config.ldap.searchFilter | quote }}
CMD_LDAP_SEARCHATTRIBUTES: {{ .Values. config.ldap.searchAttributes | quote }}
CMD_LDAP_USERNAMEFIELD: {{ .Values. config.ldap.usernameField | quote }}
CMD_LDAP_USERIDFIELD: {{ .Values. config.ldap.useridField | quote }}
CMD_LDAP_TLS_CA: {{ .Values. config.ldap.tlsca | quote }}
CMD_SAML_PROVIDERNAME: {{ .Values. config.saml.providerName | quote }}
CMD_SAML_IDPSSOURL: {{ .Values. config.saml.idpSsoUrl | quote }}
CMD_SAML_IDPCERT: {{ .Values. config.saml.idpCert | quote }}
CMD_SAML_CLIENTCERT: {{ .Values. config.saml.clientCert | quote }}
CMD_SAML_ISSUER: {{ .Values. config.saml.issuer | quote }}
CMD_SAML_IDENTIFIERFORMAT: {{ .Values. config.saml.identifierFormat | quote }}
CMD_SAML_DISABLEREQUESTEDAUTHNCONTEXT: {{ .Values. config.saml.disableRequestedAuthnContext | quote }}
CMD_SAML_GROUPATTRIBUTE: {{ .Values. config.saml.groupAttribute | quote }}
CMD_SAML_EXTERNALGROUPS: {{ .Values. config.saml.externalGroups | quote }}
CMD_SAML_REQUIREDGROUPS: {{ .Values. config.saml.requiredGroups | quote }}
CMD_SAML_ATTRIBUTE_ID: {{ .Values. config.saml.attribute.id | quote }}
CMD_SAML_ATTRIBUTE_USERNAME: {{ .Values. config.saml.attribute.username | quote }}
CMD_SAML_ATTRIBUTE_EMAIL: {{ .Values. config.saml.attribute.email | quote }}
CMD_EMAIL: {{ .Values. config.email | quote }}
CMD_ALLOW_EMAIL_REGISTER: {{ .Values. config.allowEmailRegister | quote }}
CMD_ALLOW_GRAVATAR: {{ .Values. config.allowGravatar | quote }}
CMD_OPENID: {{ .Values. config.openID | quote }}
CMD_LINKIFY_HEADER_STYLE: {{ .Values. config.linkifyHeaderStyle | quote }}

61
templates/deployment.yaml Normal file
View File

@ -0,0 +1,61 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "hedgedoc.fullname" . }}
labels:
{{- include "hedgedoc.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "hedgedoc.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "hedgedoc.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "hedgedoc.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.registry}}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}

28
templates/hpa.yaml Normal file
View File

@ -0,0 +1,28 @@
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "hedgedoc.fullname" . }}
labels:
{{- include "hedgedoc.labels" . | nindent 4 }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ include "hedgedoc.fullname" . }}
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}

61
templates/ingress.yaml Normal file
View File

@ -0,0 +1,61 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "hedgedoc.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
{{- end }}
{{- end }}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{- include "hedgedoc.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ .path }}
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
pathType: {{ .pathType }}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $fullName }}
port:
number: {{ $svcPort }}
{{- else }}
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}

23
templates/secrets.yaml Normal file
View File

@ -0,0 +1,23 @@
{{- if not .Values.existingSecret }}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "hedgedoc.fullname" . }}
labels:
{{- include "hedgedoc.labels" . | nindent 4 }}
type: Opaque
data:
CMD_DB_URL: {{ .Values. config.dbURL | quote }}
CMD_DB_PASSWORD: {{ .Values. config.csp.db.password | quote }}
CMD_S3_SECRET_ACCESS_KEY: {{ .Values. config.s3.secretAccessKey | quote }}
CMD_MINIO_SECRET_KEY: {{ .Values. config.minio.secretKey | quote }}
CMD_FACEBOOK_CLIENTSECRET: {{ .Values. config.facebook.clientSecret | quote }}
CMD_TWITTER_CONSUMERSECRET: {{ .Values. config.twitter.consumerSecret | quote }}
CMD_GITHUB_CLIENTSECRET: {{ .Values. config.github.clientSecret | quote }}
CMD_GITLAB_CLIENTSECRET: {{ .Values. config.gitlab.clientSecret | quote }}
CMD_MATTERMOST_CLIENTSECRET: {{ .Values. config.mattermost.clientSecret | quote }}
CMD_OAUTH2_CLIENT_SECRET: {{ .Values. config.oauth2.clientSecret | quote }}
CMD_DROPBOX_CLIENTSECRET: {{ .Values. config.dropbox.clientSecret | quote }}
CMD_GOOGLE_CLIENTSECRET: {{ .Values. config.google.clientSecret | quote }}
{{- end }}

15
templates/service.yaml Normal file
View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "hedgedoc.fullname" . }}
labels:
{{- include "hedgedoc.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "hedgedoc.selectorLabels" . | nindent 4 }}

View File

@ -0,0 +1,12 @@
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "hedgedoc.serviceAccountName" . }}
labels:
{{- include "hedgedoc.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}

View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "hedgedoc.fullname" . }}-test-connection"
labels:
{{- include "hedgedoc.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test
spec:
containers:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "hedgedoc.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never

222
values.yaml Normal file
View File

@ -0,0 +1,222 @@
config:
sourceURL: ""
domain: ""
urlPath: ""
host: ""
port: ""
path: ""
loglevel: ""
urlAddPort: ""
useSSL: ""
hsts:
enable: ""
maxAgeSeconds: ""
includeSubdomains: ""
preload: ""
csp:
enable: ""
reportURI: ""
addDisqus: ""
addGoogleAnalytics: ""
allowFraming: ""
allowPDFEmbed: ""
cookiePolicy: ""
protocolUseSSL: ""
allowOrigin: ""
allowAnonymous: ""
allowAnonymousEdits: ""
allowFreeURL: ""
requireFreeURLAuthentication: ""
forbiddenNoteIDs: ""
defaultPermission: ""
dbURL: ""
db:
username: ""
password: ""
host: ""
port: ""
database: ""
dialect: ""
sessionSecret: ""
sessionLife: ""
tooBusyLag: ""
imageUploadType: ""
imgur:
clientID: ""
s3:
accessKeyId: ""
secretAccessKey: ""
region: ""
endpoint: ""
s3bucket: ""
s3folder: ""
s3publicFiles: ""
minio:
accessKey: ""
secretKey: ""
endPoint: ""
secure: ""
port: ""
lutim:
url: ""
azure:
connectionString: ""
container: ""
facebook:
clientID: ""
clientSecret: ""
twitter:
consumerKey: ""
consumerSecret: ""
github:
clientID: ""
clientSecret: ""
gitlab:
baseURL: ""
clientID: ""
clientSecret: ""
scope: ""
mattermost:
baseURL: ""
clientID: ""
clientSecret: ""
oauth2:
providerName: ""
baseURL: ""
userProfileURL: ""
userProfileIdAttr: ""
userProfileUsernameAttr: ""
userProfileDisplayNameAttr: ""
userProfileEmailAttr: ""
tokenURL: ""
authorizationURL: ""
clientID: ""
clientSecret: ""
scope: ""
rolesClaim: ""
accessRole: ""
dropbox:
clientID: ""
clientSecret: ""
appKey: ""
google:
clientID: ""
clientSecret: ""
hostedDomain: ""
ldap:
providerName: ""
url: ""
bindDn: ""
bindCredentials: ""
searchBase: ""
searchFilter: ""
searchAttributes: ""
usernameField: ""
useridField: ""
tlsca: ""
saml:
providerName: ""
idpSsoUrl: ""
idpCert: ""
clientCert: ""
issuer: ""
identifierFormat: ""
disableRequestedAuthnContext: ""
groupAttribute: ""
externalGroups: ""
requiredGroups: ""
attribute:
id: ""
username: ""
email: ""
email: ""
allowEmailRegister: ""
allowGravatar: ""
openID: ""
linkifyHeaderStyle: ""
existingSecret: ""
# Default values for hedgedoc.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
image:
registry: quay.io
repository: hedgedoc/hedgedoc
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
imagePullSecrets: [ ]
nameOverride: ""
fullnameOverride: ""
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 3000
ingress:
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
tls: [ ]
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
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
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
nodeSelector: {}
tolerations: [ ]
affinity: {}