Skip to content

Make KubernetesNodeContext public #1700

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

Conversation

cronik
Copy link
Contributor

@cronik cronik commented May 27, 2025

Refactor KubernetesNodeContext to make it public for extensions to make use of ContainerExecDecorator. This refactor introduces a new method getPodResource() to get access to the associated PodResource from the client. This reduces the need for direct access to KubernetesClient and the connectToCloud() method.

Testing done

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

Refactor `KubernetesNodeContext` to make it public for extensions to make
use of `ContainerExecDecorator`. This refactor introduces a new method
`getPodResource()` to get access to the associated `PodResource` from
the client. This reduces the need for direct access to `KubernetesClient`
and the `connectToCloud()` method.
@cronik cronik requested a review from a team as a code owner May 27, 2025 02:15
@Vlatombe Vlatombe merged commit 8fe8f2b into jenkinsci:master May 27, 2025
9 checks passed
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.

2 participants