@@ -22,8 +22,9 @@ import (
22
22
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
23
23
)
24
24
25
- // EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
26
- // NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
25
+ const (
26
+ AgentConditionTypeAccepted = "Accepted"
27
+ )
27
28
28
29
// AgentSpec defines the desired state of Agent.
29
30
type AgentSpec struct {
@@ -36,6 +37,8 @@ type AgentSpec struct {
36
37
37
38
type Tool struct {
38
39
Provider string `json:"provider,omitempty"`
40
+ // Description is a brief description of the tool.
41
+ Description string `json:"description,omitempty"`
39
42
// note: this implementation is due to the kubebuilder limitation https://github.com/kubernetes-sigs/controller-tools/issues/636
40
43
// +kubebuilder:pruning:PreserveUnknownFields
41
44
// +kubebuilder:validation:Schemaless
@@ -47,7 +50,10 @@ type AnyType struct {
47
50
}
48
51
49
52
// AgentStatus defines the observed state of Agent.
50
- type AgentStatus struct {}
53
+ type AgentStatus struct {
54
+ ObservedGeneration int64 `json:"observedGeneration,omitempty"`
55
+ Conditions []metav1.Condition `json:"conditions,omitempty"`
56
+ }
51
57
52
58
// +kubebuilder:object:root=true
53
59
// +kubebuilder:subresource:status
0 commit comments