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

Commit

Permalink
Add licence support
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Wilde <ewilde@gmail.com>
  • Loading branch information
ewilde authored and alexellis committed Jun 17, 2019
1 parent bca7225 commit 04e1e4d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions deployment/chart/of-federation/templates/faaslambda-dep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ spec:
spec:
serviceAccountName: {{ .Release.Name }}-controller
volumes:
{{- if .Values.basic_auth }}
- name: auth
secret:
secretName: basic-auth
{{- end }}
- name: lambda-aws-access
secret:
secretName: lambda-aws-access
Expand All @@ -41,6 +46,10 @@ spec:
value: "{{ .Values.faaslambda.httpProbe }}"
- name: secret_mount_path
value: "/var/secrets"
{{- if .Values.basic_auth }}
- name: basic_auth
value: "{{ .Values.basic_auth }}"
{{- end }}
- name: readiness_probe_initial_delay_seconds
value: "{{ .Values.faaslambda.readinessProbe.initialDelaySeconds }}"
- name: readiness_probe_timeout_seconds
Expand All @@ -55,6 +64,10 @@ spec:
value: "{{ .Values.faaslambda.livenessProbe.periodSeconds }}"
- name: lambda_execution_role
value: "{{ .Values.faaslambda.lambda_execution_role }}"
- name: licence_jwt
value: "{{ .Values.faaslambda.licence_jwt }}"
- name: licence_email
value: "{{ .Values.faaslambda.licence_email }}"
- name: AWS_REGION
value: "{{ .Values.faaslambda.aws_region }}"
- name: AWS_ACCESS_KEY_ID
Expand All @@ -67,6 +80,12 @@ spec:
secretKeyRef:
name: lambda-aws-access
key: AWS_SECRET_ACCESS_KEY
{{- if .Values.basic_auth }}
volumeMounts:
- name: auth
readOnly: true
mountPath: "/var/secrets"
{{- end }}
ports:
- containerPort: 8080
protocol: TCP
Expand Down
2 changes: 2 additions & 0 deletions deployment/chart/of-federation/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ faaslambda:
timeoutSeconds: 1
periodSeconds: 10
lambda_execution_role: ""
licence_jwt: ""
licence_email: ""
aws_region: "eu-west-1"

gateway:
Expand Down

0 comments on commit 04e1e4d

Please sign in to comment.