Skip to content

Instantly share code, notes, and snippets.

@smothiki
Last active July 12, 2016 22:25
Show Gist options
  • Save smothiki/99cd67b1498df0b80006bda50baf9554 to your computer and use it in GitHub Desktop.
Save smothiki/99cd67b1498df0b80006bda50baf9554 to your computer and use it in GitHub Desktop.
type cluster struct {
[] nodes
any metadata
}
get cluster() returns cluster
type node struct {
platform stirng
metrics cpu , memory etc..,
events for n time
load details if any
}
get node() return node
type interface componenet{
type string
version string
subs []subcompoenent
metadata if componenet has no subcomps
}
get component info () return componenet struct
get subcomponent(name) return subcomp struct
----------------------------
type subcomponents{
name string
host string
logs string([])
events string([])
get component Info() return subcomp struct
get logs() return string([])
get events ()returns string([])
component can be any thing like RC or Daemonset, deployment
subcompoenent si basically pod info
doctor Info struct {
cluster cluster
[] components
metadata / comments string
}
get component()calls get component
get doctorinfo() reutrn doctor
get cluster() calls cluster get cluster
get components() returns components
@smothiki
Copy link
Author

  1. what more can we add about debug an issue?
  2. what should go into metadata for each struct?
    Add more details if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment