File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
test/test-framework/pkg/apis/cache/v1alpha1 Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 84
84
metadata:
85
85
type: object
86
86
spec:
87
+ description: MemcachedSpec defines the desired state of Memcached
87
88
properties:
88
89
size:
89
90
description: Size is the size of the memcached deployment
93
94
- size
94
95
type: object
95
96
status:
97
+ description: MemcachedStatus defines the observed state of Memcached
96
98
properties:
97
99
nodes:
98
100
description: Nodes are the names of the memcached pods
Original file line number Diff line number Diff line change @@ -21,12 +21,18 @@ import (
21
21
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
22
22
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
23
23
24
+ // MemcachedSpec defines the desired state of Memcached
25
+ // +k8s:openapi-gen=true
24
26
type MemcachedSpec struct {
25
27
// Size is the size of the memcached deployment
26
28
Size int32 `json:"size"`
27
29
}
30
+
31
+ // MemcachedStatus defines the observed state of Memcached
32
+ // +k8s:openapi-gen=true
28
33
type MemcachedStatus struct {
29
34
// Nodes are the names of the memcached pods
35
+ // +listType=set
30
36
Nodes []string `json:"nodes"`
31
37
}
32
38
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ type MemcachedRSSpec struct {
30
30
// MemcachedRSStatus defines the observed state of MemcachedRS
31
31
// +k8s:openapi-gen=true
32
32
type MemcachedRSStatus struct {
33
+ // +listType=set
33
34
NodeList []string `json:"nodeList"`
34
35
Test bool `json:"test"`
35
36
}
You can’t perform that action at this time.
0 commit comments