-
Notifications
You must be signed in to change notification settings - Fork 5
/
podset_types.go
43 lines (33 loc) · 1.12 KB
/
podset_types.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
33
34
35
36
37
38
39
40
41
42
43
package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
// PodSetSpec defines the desired state of PodSet
type PodSetSpec struct {
Replicas int32 `json:"replicas"`
}
// PodSetStatus defines the observed state of PodSet
type PodSetStatus struct {
PodNames []string `json:"podNames"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PodSet is the Schema for the podsets API
// +k8s:openapi-gen=true
type PodSet struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec PodSetSpec `json:"spec,omitempty"`
Status PodSetStatus `json:"status,omitempty"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PodSetList contains a list of PodSet
type PodSetList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []PodSet `json:"items"`
}
func init() {
SchemeBuilder.Register(&PodSet{}, &PodSetList{})
}