diff --git a/internal/scaffold/crd_test.go b/internal/scaffold/crd_test.go index a992be0291b..6229fd160db 100644 --- a/internal/scaffold/crd_test.go +++ b/internal/scaffold/crd_test.go @@ -84,6 +84,7 @@ spec: metadata: type: object spec: + description: MemcachedSpec defines the desired state of Memcached properties: size: description: Size is the size of the memcached deployment @@ -93,6 +94,7 @@ spec: - size type: object status: + description: MemcachedStatus defines the observed state of Memcached properties: nodes: description: Nodes are the names of the memcached pods diff --git a/test/test-framework/pkg/apis/cache/v1alpha1/memcached_types.go b/test/test-framework/pkg/apis/cache/v1alpha1/memcached_types.go index 67933261bfe..51561c2b469 100644 --- a/test/test-framework/pkg/apis/cache/v1alpha1/memcached_types.go +++ b/test/test-framework/pkg/apis/cache/v1alpha1/memcached_types.go @@ -21,12 +21,18 @@ import ( // 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. +// MemcachedSpec defines the desired state of Memcached +// +k8s:openapi-gen=true type MemcachedSpec struct { // Size is the size of the memcached deployment Size int32 `json:"size"` } + +// MemcachedStatus defines the observed state of Memcached +// +k8s:openapi-gen=true type MemcachedStatus struct { // Nodes are the names of the memcached pods + // +listType=set Nodes []string `json:"nodes"` } diff --git a/test/test-framework/pkg/apis/cache/v1alpha1/memcachedrs_types.go b/test/test-framework/pkg/apis/cache/v1alpha1/memcachedrs_types.go index ac06b6dc670..2fafc0ae329 100644 --- a/test/test-framework/pkg/apis/cache/v1alpha1/memcachedrs_types.go +++ b/test/test-framework/pkg/apis/cache/v1alpha1/memcachedrs_types.go @@ -30,6 +30,7 @@ type MemcachedRSSpec struct { // MemcachedRSStatus defines the observed state of MemcachedRS // +k8s:openapi-gen=true type MemcachedRSStatus struct { + // +listType=set NodeList []string `json:"nodeList"` Test bool `json:"test"` }