Skip to content

Commit 79dc35b

Browse files
committed
Add license support
1 parent e0cb6fd commit 79dc35b

File tree

5 files changed

+44
-1
lines changed

5 files changed

+44
-1
lines changed

charts/lakefs/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: lakefs
33
description: A Helm chart for running LakeFS on Kubernetes
44
type: application
5-
version: 1.5.0
5+
version: 1.6.0
66
appVersion: 1.63.0
77

88
home: https://lakefs.io

charts/lakefs/templates/_env.tpl

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ env:
111111
{{- if .Values.extraEnvVars }}
112112
{{- toYaml .Values.extraEnvVars | nindent 2 }}
113113
{{- end }}
114+
{{- if (.Values.enterprise).enabled }}
115+
{{- if or (and .Values.secrets .Values.secrets.licenseContents) (and .Values.existingSecret .Values.secretKeys.licenseContentsKey) }}
116+
- name: LAKEFS_LICENSE_PATH
117+
value: '/etc/lakefs/license.tkn'
118+
{{- end }}
119+
{{- end }}
114120
{{- if .Values.extraEnvVarsSecret }}
115121
envFrom:
116122
- secretRef:
@@ -137,6 +143,23 @@ envFrom:
137143
- key: config.yaml
138144
path: config.yaml
139145
{{- end }}
146+
{{- if (.Values.enterprise).enabled }}
147+
{{- if and .Values.existingSecret .Values.secretKeys.licenseContentsKey }}
148+
- name: secret-volume
149+
secret:
150+
secretName: {{ include "lakefs.fullname" . }}
151+
items:
152+
- key: licenseContentsKey
153+
path: license.tkn
154+
{{- else if and .Values.secrets .Values.secrets.licenseContents }}
155+
- name: secret-volume
156+
secret:
157+
secretName: {{ include "lakefs.fullname" . }}
158+
items:
159+
- key: license_contents
160+
path: license.tkn
161+
{{- end }}
162+
{{- end }}
140163
{{- if (((.Values.enterprise).auth).saml).enabled }}
141164
- name: secret-volume
142165
secret:

charts/lakefs/templates/deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,14 @@ spec:
103103
readOnly: true
104104
mountPath: /etc/saml_certs/
105105
{{- end }}
106+
{{- if (.Values.enterprise).enabled }}
107+
{{- if or (and .Values.secrets .Values.secrets.licenseContents) (and .Values.existingSecret .Values.secretKeys.licenseContentsKey) }}
108+
- name: secret-volume
109+
mountPath: /etc/lakefs/license.tkn
110+
subPath: "license.tkn"
111+
readOnly: true
112+
{{- end }}
113+
{{- end }}
106114
{{- include "lakefs.env" . | nindent 10 }}
107115
{{- include "lakefs.s3proxyContainer" . | nindent 8}}
108116
{{- include "lakefs.gcpProxyContainer" . | nindent 8}}

charts/lakefs/templates/secret.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ data:
1313
{{- if (.Values.secrets).authEncryptSecretKey }}
1414
auth_encrypt_secret_key: {{ .Values.secrets.authEncryptSecretKey | default "" | b64enc }}
1515
{{- end }}
16+
17+
{{- if (.Values.enterprise).enabled }}
18+
{{- if .Values.secrets.licenseContents }}
19+
license_contents: {{ .Values.secrets.licenseContents | default "" | b64enc }}
20+
{{- end }}
21+
{{- end }}
22+
1623
{{- if (.Values.enterprise).enabled }}
1724
{{- if (((.Values.enterprise).auth).ldap).enabled }}
1825
{{- if (((.Values.enterprise).auth).ldap).bindPassword }}

charts/lakefs/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ secretKeys:
121121
authEncryptSecretKey: auth_encrypt_secret_key
122122
# Use the following to fetch PostgreSQL connection string from an existing secret:
123123
databaseConnectionString: null
124+
# Use to fetch license token from an existing secret:
125+
licenseContentsKey: null
124126
# Use the following to fetch LDAP bind password from an existing secret:
125127
ldapBindPassword: null
126128
# Use the following to fetch OIDC client secret from an existing secret:
@@ -150,3 +152,6 @@ enterprise:
150152
# certificates for AD FS IDP (e.g Azure AD)
151153
samlRsaPublicCert: null
152154
samlRsaPrivateKey: null
155+
156+
secrets:
157+
licenseContents: null

0 commit comments

Comments
 (0)