forked from kubernetes/kops
-
Notifications
You must be signed in to change notification settings - Fork 1
/
channel.go
32 lines (23 loc) · 778 Bytes
/
channel.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package api
import (
k8sapi "k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/unversioned"
)
type Addons struct {
unversioned.TypeMeta `json:",inline"`
k8sapi.ObjectMeta `json:"metadata,omitempty"`
Spec AddonsSpec `json:"spec,omitempty"`
}
type AddonsSpec struct {
Addons []*AddonSpec `json:"addons,omitempty"`
}
type AddonSpec struct {
Name *string `json:"name,omitempty"`
Namespace *string `json:"namespace,omitempty"`
// Selector is a label query over pods that should match the Replicas count.
Selector map[string]string `json:"selector"`
// Version is a semver version
Version *string `json:"version,omitempty"`
// Manifest is a strings containing the URL to the manifest that should be applied
Manifest *string `json:"manifest,omitempty"`
}