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

Add function GetPodObjectFromPodOptions to fetch pod object before running CreatePod #1722

Merged
merged 2 commits into from
Nov 9, 2022

Conversation

shlokc9
Copy link
Contributor

@shlokc9 shlokc9 commented Nov 7, 2022

Change Overview

This PR introduces a new function GetPodObjectFromPodOptions that only populates the pod object using podOptions. This new function allows us to use the pod object elsewhere in the codebase before actually creating it in the cluster.

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

Issues

  • fixes #issue-number

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2022

Thanks for submitting this pull request 🎉. The team will review it soon and get back to you.

If you haven't already, please take a moment to review our project contributing guideline and Code of Conduct document.

@infraq infraq added this to In Progress in Kanister Nov 7, 2022
@shlokc9 shlokc9 changed the title Get pod object in CreatePod() function from a GetPodObjectFromPodOptions() function Add function GetPodObjectFromPodOptions to fetch pod object before running CreatePod Nov 7, 2022
@shlokc9 shlokc9 requested a review from pavannd1 November 7, 2022 18:03
pkg/kube/pod.go Outdated Show resolved Hide resolved
Kanister automation moved this from In Progress to Reviewer approved Nov 9, 2022
@shlokc9 shlokc9 added the kueue label Nov 9, 2022
@mergify mergify bot merged commit 13d446a into master Nov 9, 2022
Kanister automation moved this from Reviewer approved to Done Nov 9, 2022
@mergify mergify bot deleted the update-createpod-in-podoptions branch November 9, 2022 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants