The intention of this PR is to support people running W&B Launch Agent on local Kubernets but need to push data to ECR.
With this configuration the AWS env vars can be set and provide access to the AWS resources to build the image.
Relevant values-test.yaml content
# Additional environment variables to set on the agent container.
additionalEnvVars:
- name: COMMON_ENV_VAR_1
value: "common-value1"
- name: COMMON_ENV_VAR_2
value: "common-value2"
# Additional secret environment variables to set on the agent container.
additionalSecretEnvVars:
- name: SECRET_ENV_VAR_1
value: "secret_test1"
- name: SECRET_ENV_VAR_2
value: "secret2_test2_
Applied the test
flamarion@wandb-mpb[±|add_support_for_env_vars_on_launch_agent U:4 ?:1 ✗]:~/src/helm-charts/charts $ helm upgrade --namespace=wandb --create-namespace --install wandb-launch ./launch-agent -f values-test.yaml
Release "wandb-launch" has been upgraded. Happy Helming!
NAME: wandb-launch
LAST DEPLOYED: Mon Jan 29 19:27:46 2024
NAMESPACE: wandb
STATUS: deployed
REVISION: 26
TEST SUITE: None
The intention of this PR is to support people running W&B Launch Agent on local Kubernets but need to push data to ECR. With this configuration the AWS env vars can be set and provide access to the AWS resources to build the image.
Relevant
values-test.yaml
contentApplied the test
Deployment was restarted and new pod created
Validating if the env vars were set