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: Add supported python version configuration #1761

Merged
merged 18 commits into from
Mar 30, 2023

Conversation

doks5
Copy link
Contributor

@doks5 doks5 commented Mar 21, 2023

As part of the effort to support different python versions for data job deployments in Versatile Data Kit, we need to be able to configure what python versions are supported by the Control Service.

This change adds new configuration to the Control Service's helm chart, which allows administrators of the service to specify what python versions are allowed for deployments and what vdk and job base images are to be used for the corresponding python versions. The configuration is in the form of a map as described in VEP-1739 and is injected in the Control Service deployment as a DATAJOBS_DEPLOYMENT_SUPPORTED_PYTHON_VERSIONS environment variable.

The configuration is also added to the service's application properties files.

Additionally, a set of methods is implemented to support a variety of use cases related to accecssing and managing the supported python versions configuration.

Testing Done: Unit tests added.

@doks5 doks5 self-assigned this Mar 21, 2023
@doks5 doks5 linked an issue Mar 21, 2023 that may be closed by this pull request
@doks5 doks5 requested review from antoniivanov, mivanov1988 and murphp15 and removed request for antoniivanov March 21, 2023 11:44
@doks5 doks5 force-pushed the person/andonova/impl-pyver-spec branch from 89cfb9c to cdc3d20 Compare March 21, 2023 16:25
Copy link
Collaborator

@antoniivanov antoniivanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked a few questions because I was confused a bit. Let's see them answered first and I will make a second pass.

@doks5 doks5 force-pushed the person/andonova/impl-pyver-spec branch from 7d115a7 to efbd4a0 Compare March 23, 2023 07:47
@doks5 doks5 requested a review from antoniivanov March 23, 2023 10:51
@doks5 doks5 force-pushed the person/andonova/impl-pyver-spec branch 2 times, most recently from 74607e0 to 219407b Compare March 24, 2023 08:52
@doks5 doks5 force-pushed the person/andonova/impl-pyver-spec branch from 0036586 to 987317c Compare March 27, 2023 12:04
Copy link
Collaborator

@murphp15 murphp15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@mivanov1988 mivanov1988 enabled auto-merge (squash) March 29, 2023 08:13
@doks5 doks5 disabled auto-merge March 29, 2023 11:15
doks5 and others added 17 commits March 29, 2023 14:40
As part of the effort to support different python versions for data job
deployments in Versatile Data Kit, we need to be able to configure what
python versions are supported by the Control Service.

This change adds new configuration to the Control Service's helm chart,
which allows administrators of the service to specify what python versions
are allowed for deployments and what vdk and job base images are to be used
for the corresponding python versions. The configuration is in the form of
a map as described in VEP-1739 and is injected in the Control Service
deployment as a `DATAJOBS_DEPLOYMENT_SUPPORTED_PYTHON_VERSIONS`
environment variable.

The configuration is also added to the service's application properties
files.

Additionally, a set of methods is implemented to support a variety of use
cases related to accecssing and managing the supported python versions
configuration.

Testing Done: Unit tests added.

Signed-off-by: Andon Andonov <[email protected]>
Signed-off-by: Andon Andonov <[email protected]>
Signed-off-by: Andon Andonov <[email protected]>
Signed-off-by: Andon Andonov <[email protected]>
Signed-off-by: Andon Andonov <[email protected]>
Signed-off-by: Andon Andonov <[email protected]>
Signed-off-by: Andon Andonov <[email protected]>
Signed-off-by: Andon Andonov <[email protected]>
Signed-off-by: Andon Andonov <[email protected]>
@doks5 doks5 force-pushed the person/andonova/impl-pyver-spec branch from 62c848a to 17a099c Compare March 29, 2023 11:40
@doks5 doks5 enabled auto-merge (squash) March 29, 2023 14:08
@doks5 doks5 disabled auto-merge March 29, 2023 21:22
@doks5 doks5 enabled auto-merge (squash) March 30, 2023 06:54
@doks5 doks5 merged commit 967898f into main Mar 30, 2023
@doks5 doks5 deleted the person/andonova/impl-pyver-spec branch March 30, 2023 07:41
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.

Support for Multiple Python Versions in VDK
6 participants