Skip to content

Conversation

@ash-thakur-rh
Copy link
Member

@ash-thakur-rh ash-thakur-rh commented Jan 12, 2026

Description

Fixes #5495

This PR addresses issue #5495 by adding enhanced support for subresource operations in the Kubernetes Java client library. It introduces convenience methods and comprehensive documentation to make working with Kubernetes subresources more intuitive.

New Convenience Methods

  1. status() method - A convenience method equivalent to subresource("status") for updating the status stanza of Kubernetes resources.
  2. approval() method - A convenience method equivalent to subresource("approval") for approving/denying

Enhanced Documentation

  • Comprehensive JavaDoc for the subresource(String) method explaining:
    • Common Kubernetes subresources (status, ephemeralcontainers, approval, custom)
    • Practical examples for each subresource type
    • References to specialized methods/interfaces where applicable
  • Updated CHEATSHEET.md with extensive examples covering all major subresource use cases

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change
  • Chore (non-breaking change which doesn't affect codebase;
    test, version modification, documentation, etc.)

Checklist

  • Code contributed by me aligns with current project license: Apache 2.0
  • I Added CHANGELOG entry regarding this change
  • I have implemented unit tests to cover my changes
  • I have added/updated the javadocs and other documentation accordingly
  • No new bugs, code smells, etc. in SonarCloud report
  • I tested my code in Kubernetes
  • I tested my code in OpenShift

@ash-thakur-rh ash-thakur-rh added this to the 7.6.0 milestone Jan 16, 2026
@ash-thakur-rh ash-thakur-rh marked this pull request as ready for review January 16, 2026 09:10
@ash-thakur-rh ash-thakur-rh changed the title Feat subresource feat - Add more support for subresource operations Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add more support for subresource operations

1 participant