forked from tigera/operator
/
intrusiondetection_types.go
52 lines (41 loc) · 1.73 KB
/
intrusiondetection_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
44
45
46
47
48
49
50
51
52
package v1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
const (
IntrusionDetectionStatusReady = "Ready"
)
// IntrusionDetectionSpec defines the desired state of IntrusionDetection
// +k8s:openapi-gen=true
type IntrusionDetectionSpec struct {
// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
}
// IntrusionDetectionStatus defines the observed state of IntrusionDetection
// +k8s:openapi-gen=true
type IntrusionDetectionStatus struct {
// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
// State indicates the state of the deployment by the IntrusionDetection controller
State string `json:"state,omitempty"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// IntrusionDetection is the Schema for the intrusiondetections API
// +k8s:openapi-gen=true
// +kubebuilder:subresource:status
type IntrusionDetection struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec IntrusionDetectionSpec `json:"spec,omitempty"`
Status IntrusionDetectionStatus `json:"status,omitempty"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// IntrusionDetectionList contains a list of IntrusionDetection
type IntrusionDetectionList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []IntrusionDetection `json:"items"`
}
func init() {
SchemeBuilder.Register(&IntrusionDetection{}, &IntrusionDetectionList{})
}