korallo
korallo

Reputation: 97

Retrieve programmatically JSON Schema of a Resource in a Live Kubernetes Cluster

I want to programmatically retrieve the JSON Schema of the NetworkPolicy resource from a live Kubernetes cluster.

Although I found methods to convert a struct into a JSON Schema, my application will run on multiple clusters, and the schema may vary between clusters (e.g., due to different Kubernetes versions).

Is there a way to dynamically fetch the JSON Schema for the NetworkPolicy resource directly from the cluster at runtime?

Upvotes: 1

Views: 32

Answers (0)

Related Questions