jina-ai / jcloud

Simplify deploying and managing Jina projects on Jina Cloud
https://docs.jina.ai/concepts/jcloud/
Apache License 2.0
298 stars 13 forks source link

Flow deployment does not set environment variables #141

Closed npitsillos closed 1 year ago

npitsillos commented 1 year ago

Flow deployment does not have env vars correctly set when flow is normalized

When a normalised flow is deployed the env vars the flow defines do not have the literal values appended when vars are exported in the environment


jina version

- jina 3.15.0
- docarray 0.21.0
- jcloud 0.2.6
- jina-hubble-sdk 0.36.0
- jina-proto 0.1.17
- protobuf 4.22.3
- proto-backend upb
- grpcio 1.47.5
- pyyaml 6.0
- python 3.10.0
- platform Linux
- platform-release 5.19.0-41-generic
- platform-version #42~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 18 17:40:00 UTC 2
- architecture x86_64
- processor x86_64
- uid 168535014319630
- session-id f1e2207f-e516-11ed-9f5c-99481da9260e
- uptime 2023-04-27T17:17:02.728448
- ci-vendor (unset)
- internal False
* JINA_DEFAULT_HOST (unset)
* JINA_DEFAULT_TIMEOUT_CTRL (unset)
* JINA_DEPLOYMENT_NAME (unset)
* JINA_DISABLE_UVLOOP (unset)
* JINA_EARLY_STOP (unset)
* JINA_FULL_CLI (unset)
* JINA_GATEWAY_IMAGE (unset)
* JINA_GRPC_RECV_BYTES (unset)
* JINA_GRPC_SEND_BYTES (unset)
* JINA_HUB_NO_IMAGE_REBUILD (unset)
* JINA_LOG_CONFIG (unset)
* JINA_LOG_LEVEL (unset)
* JINA_LOG_NO_COLOR (unset)
* JINA_MP_START_METHOD (unset)
* JINA_OPTOUT_TELEMETRY (unset)
* JINA_RANDOM_PORT_MAX (unset)
* JINA_RANDOM_PORT_MIN (unset)
* JINA_LOCKS_ROOT (unset)
* JINA_K8S_ACCESS_MODES (unset)
* JINA_K8S_STORAGE_CLASS_NAME (unset)
* JINA_K8S_STORAGE_CAPACITY (unset)
* JINA_STREAMER_ARGS (unset)

Flow yaml

jtype: Flow
with:
  protocol: http
  name: test-flow
  env:
    TEST_ENV_VAR: ${{ ENV.VAR }}
executors:
  - uses: jinaai+docker://auth0-unified-64c3e19b1d2f398f/JCloudCISentencizer:latest

image image image