Skip to content

Allow setting service account on build pods #1506

@yuvipanda

Description

@yuvipanda

Proposed change

Currently, we pass in the username / password for the docker registry so we can push images to it. There are solutions like workload-identity and IRSA that allow using kubernetes service accounts to be used instead to authenticate to cloud services.

Currently, there's no way to configure which kubernetes service account the build pods should use. We'll need to expose that as an option to make use of it.

Alternative options

  • Add an extra_pod_config and extra_container_config option instead that are more generic ways to customize the build pod.

Who would use this feature?

  • Anyone running binderhubs on cloud providers

(Optional): Suggest a solution

  • Add traitlet that allows configuring this
  • Pass it on to the Builder object, so it can use it to construct the pod
  • Add some unit tests

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions