Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,26 @@ tasks:
- task: setup
- task: lint-self-hosted

internal-release:
desc: Workflow that releases the self-hosted helm chart for internal use
deps:
- setup
cmds:
- task: package-self-hosted
- task: lint-self-hosted
- task: publish-self-hosted
vars: { REPLICATED_CHANNEL: 'Helm-Unstable' }

public-release:
desc: Workflow that releases the self-hosted helm chart to customers
deps:
- setup
cmds:
- task: package-self-hosted
- task: lint-self-hosted
- task: publish-self-hosted
vars: { REPLICATED_CHANNEL: 'Helm' }

release-self-hosted:
desc: Workflow that packages, lints and releases the self-hosted helm chart
deps:
Expand Down
2 changes: 1 addition & 1 deletion charts/opslevel/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: "v2"
name: "opslevel"
type: "application"
version: "2025.5.23"
version: "2025.6.3"
appVersion: "2025.5.22"
description: "The OpsLevel internal developer portal helps your team ship fast without risking your software standards."
home: "https://www.opslevel.com/"
Expand Down
13 changes: 13 additions & 0 deletions charts/opslevel/templates/redis/serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{{- if .Values.redis.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: '{{ .Values.redis.serviceAccount.name }}'
labels:
app.kubernetes.io/component: serviceAccount
app.kubernetes.io/part-of: redis
{{- with .Values.redis.serviceAccount.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
{{- if eq .Values.redis.external false }}
apiVersion: apps/v1 # API version
kind: Deployment
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: redis
labels:
app.kubernetes.io/component: app
app.kubernetes.io/part-of: redis
spec:
replicas: 1
strategy:
type: Recreate
serviceName: redis
revisionHistoryLimit: 3
selector:
matchLabels:
app.kubernetes.io/component: app
app.kubernetes.io/part-of: redis
revisionHistoryLimit: 3
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
Expand All @@ -28,19 +29,46 @@ spec:
spec:
{{- template "opslevel.pullSecrets" . }}
{{- template "global.nodeSelector" . }}
priorityClassName: {{ .Values.priorityClasses.normal }}
serviceAccountName: "{{ .Values.redis.serviceAccount.name }}"
priorityClassName: {{ .Values.priorityClasses.high }}
{{- with .Values.redis.securityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
subdomain: redis
containers:
- name: master
- name: redis
image: {{ template "redis.image" . }}
imagePullPolicy: IfNotPresent
{{- with .Values.redis.pod.securityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
ports:
- containerPort: 6379
- containerPort: 6379
{{- with .Values.redis.resources }}
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
volumeMounts:
- name: data
mountPath: /data
- name: empty-dir
mountPath: /tmp
subPath: tmp-dir
volumes:
- name: empty-dir
emptyDir: {}
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes:
- ReadWriteOnce
{{- if .Values.redis.storageClass }}
storageClassName: '{{ .Values.redis.storageClass }}'
{{- end }}
resources:
requests:
storage: '{{ .Values.redis.storageSize }}'
{{- end }}
19 changes: 19 additions & 0 deletions charts/opslevel/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,26 @@ redis:
resources: *resourcesMedium
pod:
annotations: {}
securityContext: {}
# allowPrivilegeEscalation: false
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
# seccompProfile:
# type: RuntimeDefault
serviceAccount:
create: true
name: redis
annotations: {}
securityContext: {}
# fsGroupChangePolicy: Always
# supplementalGroups: []
# sysctls: []
storageClass: ""
storageSize: "8Gi"
secret:
create: true
name: "opslevel-redis"
Expand Down