Skip to content

Instantly share code, notes, and snippets.

@jortel
Created March 4, 2020 21:06
Show Gist options
  • Save jortel/4c60d2954bda1dcbe133f6fda954aced to your computer and use it in GitHub Desktop.
Save jortel/4c60d2954bda1dcbe133f6fda954aced to your computer and use it in GitHub Desktop.
// IncompatibleGVKs
type IncompatibleGVKs struct {
Namespaces []Namespace `json:"namespaces,omitempty"`
}
// Workload is a store for unhealthy resource and it's dependents
type GVK struct {
Group string `json:"group"`
Version string `json:"version"`
Kind string `json:"kind"`
}
// Namespace is a store for unhealthy resources in a namespace
type Namespace struct {
Name string `json:"name"`
IncompatibleGVK []GVK `json:"gvks"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment