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: configurable builder job service account #791

Merged

Conversation

mivanov1988
Copy link
Collaborator

Currently, the builder job is based on Kaniko and requires root privileges.
In some cases, Pod Security Policy can be configured based on namespace and service account.
However, Control Service does not provide the ability to set a service account to the Builder Job.

This change aims to provide an ability to set a service account through the Helm Chart.

spec.template.spec.serviceAccountName: "account_name"

Testing done: unit tests and helm template

Signed-off-by: Miroslav Ivanov [email protected]

Currently, builder job is based on Kaniko and requires root privileges.
In some cases Pod Security Policy can be configured based on namespace and service account.
However, Control Service does not provide the ability to set a service account to the Builder Job.

This change aims to provide an ability to set a service account through the Helm Chart.

spec.template.spec.serviceAccountName: "account_name"

Testing done: unit tests and helm template

Signed-off-by: Miroslav Ivanov [email protected]
@mivanov1988 mivanov1988 enabled auto-merge (squash) April 7, 2022 13:01
@mivanov1988 mivanov1988 merged commit 65203b3 into main Apr 7, 2022
@mivanov1988 mivanov1988 deleted the topic/miroslavi/configurable-job-builder-service-account branch April 7, 2022 13:17
mrdavidlaing added a commit to mrdavidlaing/versatile-data-kit that referenced this pull request Apr 7, 2022
- Can be instantiated from code rather than via the VDK CLI
- Can be run without needing any data job files
- Gives access to an instantiated job_input object
- WIP

Signed-off-by: David Laing <[email protected]>
Co-authored-by: David Laing <[email protected]>
mrdavidlaing added a commit to mrdavidlaing/versatile-data-kit that referenced this pull request Apr 11, 2022
- Implemented as a contextmanager to reduce API surface area

Signed-off-by: David Laing <[email protected]>
mrdavidlaing added a commit to mrdavidlaing/versatile-data-kit that referenced this pull request Apr 12, 2022
mrdavidlaing added a commit to mrdavidlaing/versatile-data-kit that referenced this pull request Apr 14, 2022
- Also pass the initialised JobContext (which contains JobContext.job_input)

Signed-off-by: David Laing <[email protected]>
mrdavidlaing added a commit to mrdavidlaing/versatile-data-kit that referenced this pull request Apr 27, 2022
mrdavidlaing added a commit to mrdavidlaing/versatile-data-kit that referenced this pull request Apr 27, 2022
mrdavidlaing added a commit to mrdavidlaing/versatile-data-kit that referenced this pull request Apr 27, 2022
...  rather than a JobContext so as to minimize API surface area

Signed-off-by: David Laing <[email protected]>
mrdavidlaing added a commit to mrdavidlaing/versatile-data-kit that referenced this pull request Apr 28, 2022
- IStandalongDataJob
- StandaloneDataJobFactory.create()

Signed-off-by: David Laing <[email protected]>
mrdavidlaing added a commit to mrdavidlaing/versatile-data-kit that referenced this pull request Apr 28, 2022
mrdavidlaing added a commit to mrdavidlaing/versatile-data-kit that referenced this pull request Apr 28, 2022
mrdavidlaing pushed a commit to mrdavidlaing/versatile-data-kit that referenced this pull request May 6, 2022
mrdavidlaing pushed a commit to mrdavidlaing/versatile-data-kit that referenced this pull request May 8, 2022
mrdavidlaing pushed a commit to mrdavidlaing/versatile-data-kit that referenced this pull request May 9, 2022
mrdavidlaing pushed a commit to mrdavidlaing/versatile-data-kit that referenced this pull request May 10, 2022
mrdavidlaing pushed a commit to mrdavidlaing/versatile-data-kit that referenced this pull request May 10, 2022
mrdavidlaing added a commit to mrdavidlaing/versatile-data-kit that referenced this pull request May 11, 2022
- Instantiate and execute plugin lifecycle from code rather than via the VDK CLI
- Gives access to an instantiated job_input object
- Can be run without needing any data job files
- Implemented as a contextmanager to reduce API surface area
- Triggers all plugin hooks except:
        * CoreHookSpecs.vdk_command_line

Sample usage:

    with StandaloneDataJobFactory.create(datajob_directory) as job_input:
        #... use job_input object to interact with SuperCollider
antoniivanov pushed a commit that referenced this pull request May 11, 2022
- Instantiate and execute plugin lifecycle from code rather than via the VDK CLI
- Gives access to an instantiated job_input object
- Can be run without needing any data job files
- Implemented as a contextmanager to reduce API surface area
- Triggers all plugin hooks except:
        * CoreHookSpecs.vdk_command_line

Sample usage:

    with StandaloneDataJobFactory.create(datajob_directory) as job_input:
        #... use job_input object to interact with SuperCollider
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.

3 participants