alexellis / alexellis/run-job

[Feature] Support environment variables

Đang mở
#5 14 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
210
Fork
8
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Inspired by the Kubernetes spec, support environment variables.

I think run-job should remain as simple as possible, but these are normally required for many kinds of container.

[K8s format](https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/)

```yaml
env:
- name: DEMO_GREETING
value: "Hello from the environment"
- name: DEMO_FAREWELL
value: "Such a sweet sorrow"
```

I'd be tempted to use the [OpenFaaS format](https://docs.openfaas.com/reference/yaml/), but the K8s style may be easier for people migrating tasks.

```yaml
environment:
DEMO_FAREWELL: "Such a sweet sorrow"
```

By running the `env` built-in shell command in `alpine:3.16`, we can see whether the inputs have been received.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.