Skip to content
This repository was archived by the owner on Nov 5, 2020. It is now read-only.

Commit 04e1e4d

Browse files
ewildealexellis
authored andcommitted
Add licence support
Signed-off-by: Edward Wilde <[email protected]>
1 parent bca7225 commit 04e1e4d

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

deployment/chart/of-federation/templates/faaslambda-dep.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ spec:
1919
spec:
2020
serviceAccountName: {{ .Release.Name }}-controller
2121
volumes:
22+
{{- if .Values.basic_auth }}
23+
- name: auth
24+
secret:
25+
secretName: basic-auth
26+
{{- end }}
2227
- name: lambda-aws-access
2328
secret:
2429
secretName: lambda-aws-access
@@ -41,6 +46,10 @@ spec:
4146
value: "{{ .Values.faaslambda.httpProbe }}"
4247
- name: secret_mount_path
4348
value: "/var/secrets"
49+
{{- if .Values.basic_auth }}
50+
- name: basic_auth
51+
value: "{{ .Values.basic_auth }}"
52+
{{- end }}
4453
- name: readiness_probe_initial_delay_seconds
4554
value: "{{ .Values.faaslambda.readinessProbe.initialDelaySeconds }}"
4655
- name: readiness_probe_timeout_seconds
@@ -55,6 +64,10 @@ spec:
5564
value: "{{ .Values.faaslambda.livenessProbe.periodSeconds }}"
5665
- name: lambda_execution_role
5766
value: "{{ .Values.faaslambda.lambda_execution_role }}"
67+
- name: licence_jwt
68+
value: "{{ .Values.faaslambda.licence_jwt }}"
69+
- name: licence_email
70+
value: "{{ .Values.faaslambda.licence_email }}"
5871
- name: AWS_REGION
5972
value: "{{ .Values.faaslambda.aws_region }}"
6073
- name: AWS_ACCESS_KEY_ID
@@ -67,6 +80,12 @@ spec:
6780
secretKeyRef:
6881
name: lambda-aws-access
6982
key: AWS_SECRET_ACCESS_KEY
83+
{{- if .Values.basic_auth }}
84+
volumeMounts:
85+
- name: auth
86+
readOnly: true
87+
mountPath: "/var/secrets"
88+
{{- end }}
7089
ports:
7190
- containerPort: 8080
7291
protocol: TCP

deployment/chart/of-federation/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ faaslambda:
5959
timeoutSeconds: 1
6060
periodSeconds: 10
6161
lambda_execution_role: ""
62+
licence_jwt: ""
63+
licence_email: ""
6264
aws_region: "eu-west-1"
6365

6466
gateway:

0 commit comments

Comments
 (0)