Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
27
plugins/inputs/kubernetes/kubernetes_pods.go
Normal file
27
plugins/inputs/kubernetes/kubernetes_pods.go
Normal file
|
@ -0,0 +1,27 @@
|
|||
package kubernetes
|
||||
|
||||
type pods struct {
|
||||
Kind string `json:"kind"`
|
||||
APIVersion string `json:"apiVersion"`
|
||||
Items []item `json:"items"`
|
||||
}
|
||||
|
||||
type item struct {
|
||||
Metadata metadata `json:"metadata"`
|
||||
Spec spec `json:"spec"`
|
||||
}
|
||||
|
||||
type metadata struct {
|
||||
Name string `json:"name"`
|
||||
Namespace string `json:"namespace"`
|
||||
Labels map[string]string `json:"labels"`
|
||||
}
|
||||
|
||||
type spec struct {
|
||||
Containers []container `json:"containers"`
|
||||
}
|
||||
|
||||
type container struct {
|
||||
Name string `json:"name"`
|
||||
Image string `json:"image"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue