Keyboard shortcuts

/ or ⌘/Ctrl K
Find a note
j / k
Next / previous section or linked note
h / l
Collapse or go to parent / expand or enter
e or Alt-click
Read a linked note here
o
Open focused note on its own
g g / G
First / last section or linked note
g h / g a
Home / all notes
g b / g t
Backlinks / table of contents
t
Cycle System, Light, Dark
? / Esc
Show / close this reference

Search: ↑/↓ or Ctrl N/P, Enter to open. Shortcuts pause while typing.

api machinery (k8s) [e77cac60]

Tags: kubernetes (k8s)

https://github.com/kubernetes/apimachinery

  • Implements the basics of the type system

1. Kinds

  • Divided into API groups and versioned, leading to GroupVersionKind (GVK)
  • Each GVK maps to a single Go type, while a Go type can map to multiple GVK's
  • Do not formally map to 1-1 HTTP paths
  • Many kinds have HTTP rest endpoints used to access objects of the given kind

    • some do not
  • by convention kinds use CamelCase

2. Resources

  • Grouped and versioned, leading to the term GroupVersionResource (GVR)
  • Each GVR corresponds to a base HTTP path, used to identify REST endpoints
  • By convention resources use lowercase

3. Rest Mapping

  • Mapping of a GVK to GVR

4. Scheme

  • Scheme connects Go with GVK, mapping of golang types to possible GVK's