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

fix: set default namespace and serviceaccount for MultiContainerRun pods #3285

Merged
merged 3 commits into from
Dec 13, 2024

Conversation

hairyhum
Copy link
Contributor

Change Overview

Set default namespace and serviceaccount when creating podSpec.

This was missed when initially implementing MultiContainerRun.

KubeTask is setting defaults in kube.GetPodObjectFromPodOptions Since MultiContainerRun uses k8s api directly to create pods, the defaults need to be set explicitly.

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test
  • 🏗️ Build

Issues

  • fixes #issue-number

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

KubeTask is setting defaults in kube.GetPodObjectFromPodOptions
Since MultiContainerRun uses k8s api directly to create pods, the defaults
need to be set explicitly.

Signed-off-by: Daniil Fedotov <[email protected]>
Signed-off-by: Daniil Fedotov <[email protected]>
@mergify mergify bot merged commit af27be3 into master Dec 13, 2024
25 checks passed
@mergify mergify bot deleted the multicontainer-defaults branch December 13, 2024 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants