-
Notifications
You must be signed in to change notification settings - Fork 102
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 possibility for pipe-tasks to pipe env-files #1484
Conversation
Summary: When creating `ConfigMap`s or `Secret`s k8s allows for taking an env-file using the `--from-env-file` option. Env-files contain a list of environment variables. These syntax rules apply: - Each line in an env file has to be in VAR=VAL format. - Lines beginning with # (i.e. comments) are ignored. - Blank lines are ignored. - There is no special handling of quotation marks (i.e. they will be part of the ConfigMap value)) New pipe-task `fnvFile` field can be used instead of `file` to signal that the pipe-file should be treated as an env-file: ```yaml spec: pipe: - envFile: /tmp/foo.env kind: ConfigMap key: foo ``` Note, that **either** `file` or `envFile` can be used but not both. For more information on env-files see [k8s documentation](https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#create-configmaps-from-files) Fixes: #1394 Signed-off-by: Aleksey Dukhovniy <alex.dukhovniy@googlemail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two small nits, other than that it looks good
Signed-off-by: Aleksey Dukhovniy <alex.dukhovniy@googlemail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@zen-dog I am running into this error: My Task:
I already checked that the pod is mounting the |
It seems you're simply using an outdated kudo version which doesn't have |
Well I tried with the kudo terraform provider and configured the kudo version to be |
I'm not sure, @runyontr do you know more? |
I also uninstalled my brew cask and manually installed the 0.13.0-rc1 - after running kudo manually without terraform I got the same error. |
Can you try a key with all lowercases? |
@runyontr unfortunately its the same result |
I just noticed that when I describe the instance I can see the following message:
I am confused about the
|
It looks like that error is returned regardless of the reason the error happened. So even though the issue was some configuration with the task, the logic here: https://github.com/kudobuilder/kudo/blob/master/pkg/engine/workflow/engine.go#L155-L165 only returns the value here: https://github.com/kudobuilder/kudo/blob/master/pkg/engine/workflow/engine.go#L22 |
The |
Summary:
When creating
ConfigMap
s orSecret
s k8s allows for taking an env-file using the--from-env-file
option. Env-files contain a list of environment variables.These syntax rules apply:
New pipe-task
envFile
field can be used instead offile
to signal that the pipe-file should be treated as an env-file:Note, that either
file
orenvFile
can be used but not both.For more information on env-files see k8s documentation
Fixes: #1394
Signed-off-by: Aleksey Dukhovniy alex.dukhovniy@googlemail.com