Skip to content

Implement base class for Kubernetes model classes #784

Open
@davidxia

Description

@davidxia

This is a feature request. Most of the Kubernetes objects have a set of fields in common:

  • kind
  • apiVersion
  • metadata
  • spec

Currently the various model classes all inherit from object. Is there a way to implement a base class for all k8s resources and have all the models extend that?

It'd also be nice to have utils.parse_from_yaml(yaml_file) that just parses a YAML file into the correct model (no API requests at all). I'm not sure how the models are generated, but I suspect it may be related to this analogous java client issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions