Skip to content

Add license support to helm chart #345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 17, 2025
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
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.5.0
version: 1.6.0
appVersion: 1.63.0

home: https://lakefs.io
Expand Down
23 changes: 22 additions & 1 deletion charts/lakefs/templates/_env.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ env:
value: asdjfhjaskdhuioaweyuiorasdsjbaskcbkj
{{- end }}
{{- if (.Values.enterprise).enabled}}
{{- if or (and .Values.secrets .Values.secrets.licenseContents) (and .Values.existingSecret .Values.secretKeys.licenseContentsKey) }}
- name: LAKEFS_LICENSE_PATH
value: '/etc/lakefs/license.tkn'
{{- end }}
- name: LAKEFS_USAGE_REPORT_ENABLED
value: "true"
- name: LAKEFS_FEATURES_LOCAL_RBAC
Expand Down Expand Up @@ -137,8 +141,25 @@ envFrom:
- key: config.yaml
path: config.yaml
{{- end }}
{{- if (.Values.enterprise).enabled }}
{{- if and .Values.existingSecret .Values.secretKeys.licenseContentsKey }}
- name: secret-volume-license-token
secret:
secretName: {{ .Values.existingSecret }}
items:
- key: {{ .Values.secretKeys.licenseContentsKey }}
path: license.tkn
{{- else if and .Values.secrets .Values.secrets.licenseContents }}
- name: secret-volume-license-token
secret:
secretName: {{ include "lakefs.fullname" . }}
items:
- key: license_contents
path: license.tkn
{{- end }}
{{- end }}
{{- if (((.Values.enterprise).auth).saml).enabled }}
- name: secret-volume
- name: secret-volume-license-token
secret:
secretName: saml-certificates
{{- end }}
Expand Down
10 changes: 9 additions & 1 deletion charts/lakefs/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,18 @@ spec:
mountPath: "/lakefs/data"
{{- end }}
{{- if (((.Values.enterprise).auth).saml).enabled }}
- name: secret-volume
- name: secret-volume-license-token
readOnly: true
mountPath: /etc/saml_certs/
{{- end }}
{{- if (.Values.enterprise).enabled }}
{{- if or (and .Values.secrets .Values.secrets.licenseContents) (and .Values.existingSecret .Values.secretKeys.licenseContentsKey) }}
- name: secret-volume-license-token
mountPath: /etc/lakefs/license.tkn
subPath: "license.tkn"
readOnly: true
{{- end }}
{{- end }}
{{- include "lakefs.env" . | nindent 10 }}
{{- include "lakefs.s3proxyContainer" . | nindent 8}}
{{- include "lakefs.gcpProxyContainer" . | nindent 8}}
Expand Down
6 changes: 6 additions & 0 deletions charts/lakefs/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ data:
{{- if (.Values.secrets).authEncryptSecretKey }}
auth_encrypt_secret_key: {{ .Values.secrets.authEncryptSecretKey | default "" | b64enc }}
{{- end }}

{{- if (.Values.enterprise).enabled }}

{{- if .Values.secrets.licenseContents }}
license_contents: {{ .Values.secrets.licenseContents | default "" | b64enc }}
{{- end }}

{{- if (((.Values.enterprise).auth).ldap).enabled }}
{{- if (((.Values.enterprise).auth).ldap).bindPassword }}
# LDAP bind password secret, used for LDAP authentication
Expand Down
5 changes: 5 additions & 0 deletions charts/lakefs/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ secretKeys:
authEncryptSecretKey: auth_encrypt_secret_key
# Use the following to fetch PostgreSQL connection string from an existing secret:
databaseConnectionString: null
# Use to fetch license token from an existing secret:
licenseContentsKey: null
# Use the following to fetch LDAP bind password from an existing secret:
ldapBindPassword: null
# Use the following to fetch OIDC client secret from an existing secret:
Expand Down Expand Up @@ -150,3 +152,6 @@ enterprise:
# certificates for AD FS IDP (e.g Azure AD)
samlRsaPublicCert: null
samlRsaPrivateKey: null

secrets:
licenseContents: null
Loading