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

[Don't Review] Add a utility to get container name from podoptions #2319

Closed
wants to merge 1 commit into from

Conversation

viveksinghggits
Copy link
Contributor

Change Overview

This PR adds a utility in pod.go to get us container name from podoptions so that we can use this while creating the Pod and while getting the logs from pod and by doing so we would get the correct container name that was given while creating the pod .
In the next PRs this utility will be consumed by rest of the code.

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
/kanister/pkg/kube (container-from-po*) » go test
OK: 47 passed, 3 skipped
PASS
ok  	github.com/kanisterio/kanister/pkg/kube	194.999s


This commit adds a utility in `pod.go` to get us container name from podoptions
so that we can use this while creating the Pod and while getting the logs from
pod and we would get the correct container name that was while creating the pod
.
In the next PRs this utility will be consumed by rest of the code.
@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2023

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.

@viveksinghggits viveksinghggits changed the title Add a utility to get container name from podoptions [Don't Review] Add a utility to get container name from podoptions Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants