Skip to content

Instantly share code, notes, and snippets.

@markllama
Created September 3, 2014 18:15
Show Gist options
  • Save markllama/e08f3375d754a718bb4b to your computer and use it in GitHub Desktop.
Save markllama/e08f3375d754a718bb4b to your computer and use it in GitHub Desktop.
Kubernetes Pod Structure Definition
// Pod is a collection of containers, used as either input (create, update) or as output (list, get).
type Pod struct {
JSONBase `json:",inline" yaml:",inline"`
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
DesiredState PodState `json:"desiredState,omitempty" yaml:"desiredState,omitempty"`
CurrentState PodState `json:"currentState,omitempty" yaml:"currentState,omitempty"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment