-
Notifications
You must be signed in to change notification settings - Fork 42
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
The namespace of workflow environment can not be configured #160
Comments
The correct config template should be apiVersion: fission.io/v1
kind: Environment
metadata:
name: workflow
namespace: default
spec:
version: 2
TerminationGracePeriod: 5
resources:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 100m
memory: 128Mi
runtime:
image: fission/workflow-env
container:
env:
- name: ES_NATS_URL
value: "nats://[email protected]:4222"
- name: ES_NATS_CLUSTER
value: "fissionMQTrigger"
- name: FNENV_FISSION_CONTROLLER
value: "http://controller.fission"
- name: FNENV_FISSION_EXECUTOR
value: "http://executor.fission"
resources:
limits:
cpu: 400m
memory: 256Mi
requests:
cpu: 200m
memory: 128Mi
builder:
image: fission/workflow-build-env
command: "defaultBuild"
allowedFunctionsPerContainer: infinite |
Hi @xiekeyang - just to summarize our discussion on Slack here a bit:
|
Improvement Proposal of Selectable NamespaceProblem:Current workflow functions only allow configuration of task function name, with a fixed namespace of That don’t allow the functions under other ns to add to workflow task. Idea:Add a apiVersion: 1
output: echohello
tasks:
echohello:
run: hello
functionns: my-namespace And composed workflow template: apiVersion: 1
output: echocompose
tasks:
echohello:
run: hello
functionns: my-namespace
echoworld:
run: world
functionns: my-namespace
echocompose:
run: compose
inputs:
hello: "{ output('echohello') }"
world: "{ output('echoworld') }"
requires:
- echohello
- echoworld The empty Use entire
Move type TaskSpec struct {
Inputs map[string]*TypedValue
Requires map[string]*TaskDependencyParameters
Await int32
Output *TypedValue
} The task spec and task identifier are managed by map(key/value): @erwinvaneyk WDYT? Thanks. |
Another Story: Current It is referred to serverless white paper. |
I mistook above because that apiVersion: 1
output: echohello
tasks:
echohello:
run: "fisison://namespace/hello" or apiVersion: 1
output: echohello
tasks:
echohello:
run: "namespace/hello" But I'm not sure if we really need define runtime |
We had thought to set fnref key template as |
The link doesn't reference the white paper? I am interested; could you give me the correct link? 😁
Just for future reference, on slack we settled on: if undefined runtime -> check internal first for function -> check fission for function
That is an interesting issue, that users do not know the deployment runtime in advance. I am not yet sure what the best solution for this is. What about adding a build step that renames |
Sorry the correct link should be https://github.com/cncf/wg-serverless/tree/master/whitepaper, which is CNCF release. |
This should be closed by #176. As previous discussion with @erwinvaneyk , we still left some topic about resolver of tasks, including their runtime. I would like to open a new issue to go on this. |
👍 |
@erwinvaneyk I encounter some questions when configure the workflow environment:
environment namespace
The namespace of workflow environment seems not able to be configured. I changed it to
fission-function
insteaddefault
, and then the invocation of workflowed function will be hung up. (default
namespace is OK)Not support customized parameters in config spec
The text was updated successfully, but these errors were encountered: