Skip to content

Commit

Permalink
Use lakefs-enterprise in lakefs charts (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
N-o-Z authored Feb 10, 2025
1 parent dff8d8d commit ee76f4e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/lakefs/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: lakefs
description: A Helm chart for running LakeFS on Kubernetes
type: application
version: 1.3.33
version: 1.4.0
appVersion: 1.49.1

home: https://lakefs.io
Expand Down
18 changes: 18 additions & 0 deletions charts/lakefs/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,21 @@ Create the name of the service account to use
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

{{/*
Define which repository to use according to the following:
1. Explicitly defined
2. Otherwise if fluffy is enabled - take enterprise image
3. Otherwise use OSS image
*/}}
{{- define "lakefs.repository" -}}
{{- if not .Values.image.repository }}
{{- if (.Values.fluffy).enabled }}
{{- default "treeverse/lakefs-enterprise" .Values.image.repository }}
{{- else }}
{{- default "treeverse/lakefs" .Values.image.repository }}
{{- end }}
{{- else }}
{{- default .Values.image.repository }}
{{- end }}
{{- end }}
12 changes: 11 additions & 1 deletion charts/lakefs/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ spec:
labels:
{{- include "lakefs.selectorLabels" . | nindent 8 }}
spec:
{{- if eq ( include "lakefs.repository" .) "treeverse/lakefs-enterprise" }}
{{- if (.Values.fluffy.image.privateRegistry).enabled }}
imagePullSecrets:
{{- if (.Values.fluffy.image.privateRegistry).secretToken }}
- name: "docker-registry"
{{- else }}
- name: {{ .Values.fluffy.image.privateRegistry.secretName }}
{{- end }}
{{- end }}
{{- end }}
serviceAccountName: {{ include "lakefs.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
Expand All @@ -31,7 +41,7 @@ spec:
{{- end }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: "{{ include "lakefs.repository" . }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
Expand Down
1 change: 0 additions & 1 deletion charts/lakefs/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
replicaCount: 1

image:
repository: treeverse/lakefs
pullPolicy: IfNotPresent

nameOverride: ""
Expand Down

0 comments on commit ee76f4e

Please sign in to comment.