@@ -24,7 +24,7 @@ import (
2424// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
2525// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
2626
27- // SinkSpec defines the desired state of Sink
27+ // SinkSpec defines the desired state of Topic
2828type SinkSpec struct {
2929 // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
3030 // Important: Run "make" to regenerate code after modifying this file
@@ -36,27 +36,29 @@ type SinkSpec struct {
3636 SinkType string `json:"sinkType,omitempty"`
3737 Replicas * int32 `json:"replicas,omitempty"`
3838 MaxReplicas * int32 `json:"maxReplicas,omitempty"` // if provided, turn on autoscaling
39- Sources []string `json:"sources,omitempty"`
40- LogTopic string `json:"logTopic,omitempty"`
39+ Sources SourceConf `json:"sources,omitempty"`
4140 SinkConfig map [string ]string `json:"sinkConfig,omitempty"`
4241 Resources corev1.ResourceList `json:"resources,omitempty"`
4342 SecretsMap map [string ]SecretRef `json:"secretsMap,omitempty"`
4443
45- Timeout int32 `json:"timeout,omitempty"`
46- AutoAck * bool `json:"autoAck,omitempty"`
47- MaxMessageRetry int32 `json:"maxMessageRetry,omitempty"`
48- ProcessingGuarantee string `json:"processingGuarantee,omitempty"`
49- RetainOrdering bool `json:"retainOrdering,omitempty"`
50- RetainKeyOrdering bool `json:"retainKeyOrdering,omitempty"`
51- DeadLetterTopic string `json:"deadLetterTopic,omitempty"`
52- ForwardSourceMessageProperty * bool `json:"forwardSourceMessageProperty,omitempty"`
53- MaxPendingAsyncRequests * int32 `json:"maxPendingAsyncRequests,omitempty"`
44+ Timeout int32 `json:"timeout,omitempty"`
45+ NegativeAckRedeliveryDelayMs int32 `json:"negativeAckRedeliveryDelayMs,omitempty"`
46+ AutoAck * bool `json:"autoAck,omitempty"`
47+ MaxMessageRetry int32 `json:"maxMessageRetry,omitempty"`
48+ ProcessingGuarantee ProcessGuarantee `json:"processingGuarantee,omitempty"`
49+ RetainOrdering bool `json:"retainOrdering,omitempty"`
50+ DeadLetterTopic string `json:"deadLetterTopic,omitempty"`
51+
52+ RuntimeFlags string `json:"runtimeFlags,omitempty"`
53+ SubscriptionName string `json:"subscriptionName,omitempty"`
54+ CleanupSubscription bool `json:"cleanupSubscription,omitempty"`
55+ SubscriptionPosition SubscribePosition `json:"subscriptionPosition,omitempty"`
5456
5557 Messaging `json:",inline"`
5658 Runtime `json:",inline"`
5759}
5860
59- // SinkStatus defines the observed state of Sink
61+ // SinkStatus defines the observed state of Topic
6062type SinkStatus struct {
6163 // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
6264 // Important: Run "make" to regenerate code after modifying this file
@@ -69,7 +71,7 @@ type SinkStatus struct {
6971// +kubebuilder:subresource:status
7072//+kubebuilder:subresource:scale:specpath=.spec.replicas,statuspath=.status.replicas,selectorpath=.status.selector
7173
72- // Sink is the Schema for the sinks API
74+ // Topic is the Schema for the sinks API
7375type Sink struct {
7476 metav1.TypeMeta `json:",inline"`
7577 metav1.ObjectMeta `json:"metadata,omitempty"`
@@ -80,7 +82,7 @@ type Sink struct {
8082
8183// +kubebuilder:object:root=true
8284
83- // SinkList contains a list of Sink
85+ // SinkList contains a list of Topic
8486type SinkList struct {
8587 metav1.TypeMeta `json:",inline"`
8688 metav1.ListMeta `json:"metadata,omitempty"`
0 commit comments