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 isInstance for each Kubernetes resource type #582

Merged
merged 3 commits into from
Jun 4, 2019

Commits on Jun 4, 2019

  1. Configuration menu
    Copy the full SHA
    4f6041e View commit details
    Browse the repository at this point in the history
  2. Add isInstance for each Kubernetes resource type

    `Resource.isInstance` is a static method that provides a type guard
    allowing users to check whether an arbitrary object is a `Resource`.
    
    This commit implements this function for all Kubernetes implementations
    of `Resource`. So, e.g., `Pod.isInstance(foo)` is a type guard for
    `Pod`.
    hausdorff committed Jun 4, 2019
    Configuration menu
    Copy the full SHA
    72d7b82 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ee25c12 View commit details
    Browse the repository at this point in the history