Skip to content
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

add configurable runtime parameters to chart #165

Merged
merged 1 commit into from
Jul 13, 2018
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
22 changes: 21 additions & 1 deletion charts/fission-workflows/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ spec:
"--api-workflow",
"--api-admin",
"--metrics",
{{- if .Values.debug }}
"--debug",
{{- end }}
]
env:
- name: ES_NATS_URL
Expand Down Expand Up @@ -76,9 +79,26 @@ metadata:
namespace: default
spec:
version: 2
TerminationGracePeriod: {{ .Values.gracePeriod }}
runtime:
image: "{{ .Values.envImage }}:{{.Values.tag}}"
container:
command: ["/fission-workflows-bundle"]
args: [
# Override workflow env CMD to optionally enable --debug
"--nats",
"--fission",
"--internal",
"--controller",
"--api-http",
"--api-workflow-invocation",
"--api-workflow",
"--api-admin",
"--metrics",
{{- if .Values.debug }}
"--debug",
{{- end }}
]
env:
- name: ES_NATS_URL
value: "nats://{{ .Values.nats.authToken }}@{{ .Values.nats.location }}.{{ .Values.fnenv.fission.ns }}:{{ .Values.nats.port }}"
Expand All @@ -91,4 +111,4 @@ spec:
builder:
image: "{{ .Values.buildEnvImage }}:{{.Values.tag}}"
command: "defaultBuild"
allowedFunctionsPerContainer: infinite
allowedFunctionsPerContainer: infinite
6 changes: 6 additions & 0 deletions charts/fission-workflows/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ nats:
cluster: fissionMQTrigger
location: nats-streaming
port: 4222

# Enable Debug Message?
debug: false

# Pod deleting grace period in seconds
gracePeriod: 5