Skip to content
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

control-service: [Bug fix] Fix supported python versions helm configuration #1964

Merged
merged 2 commits into from
Apr 27, 2023

Conversation

doks5
Copy link
Contributor

@doks5 doks5 commented Apr 25, 2023

A regression was introduced in the Control Service's helm chart when 54914a0 was merged, which caused Control Service installation failures. The error observed at helm upgrade command execution is

Error: UPGRADE FAILED: error validating "": error validating data:
ValidationError(Deployment.spec.template.spec.containers[0].env[79].value): invalid type for
io.k8s.api.core.v1.EnvVar.value: got "map", expected "string"

The error was raised because the map was not properly converted to string.

This change fixes the error.

Testing Done: Executed locally helm install ... against a kind cluster and verified that the environment variable was properly set.

DATAJOBS_DEPLOYMENT_DEFAULT_PYTHON_VERSION: 3.7
DATAJOBS_DEPLOYMENT_SUPPORTED_PYTHON_VERSIONS: {"3.7":{"baseImage":"registry.hub.docker.com/versatiledatakit/data-job-base-python-3.7:latest",
"vdkImage":"registry.hub.docker.com/versatiledatakit/quickstart-vdk:release"}}

…ration

A regression was introduced in the Control Service's helm chart when
54914a0 was merged, which
caused Control Service installation failures. The error observed at `helm upgrade` command execution is

```
Error: UPGRADE FAILED: error validating "": error validating data:
ValidationError(Deployment.spec.template.spec.containers[0].env[79].value): invalid type for
io.k8s.api.core.v1.EnvVar.value: got "map", expected "string"
```

The error was raised because the map was not properly converted to string.

This change fixes the error.

Testing Done: Executed locally `helm install ...` against a kind cluster and verified that the
environment variable was properly set.
```
DATAJOBS_DEPLOYMENT_DEFAULT_PYTHON_VERSION: 3.7
DATAJOBS_DEPLOYMENT_SUPPORTED_PYTHON_VERSIONS: {"3.7":{"baseImage":"registry.hub.docker.com/versatiledatakit/data-job-base-python-3.7:latest",
"vdkImage":"registry.hub.docker.com/versatiledatakit/quickstart-vdk:release"}}
```

Signed-off-by: Andon Andonov <andonova@vmware.com>
@doks5 doks5 self-assigned this Apr 25, 2023
@doks5 doks5 enabled auto-merge (squash) April 27, 2023 09:58
@doks5 doks5 merged commit a4d6b7f into main Apr 27, 2023
7 of 8 checks passed
@doks5 doks5 deleted the person/andonova/fix-helm-config branch April 27, 2023 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants