Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@ go 1.24.5
require (
github.com/DataDog/datadog-api-client-go/v2 v2.50.0
github.com/DataDog/datadog-go/v5 v5.8.1
github.com/google/uuid v1.6.0
github.com/samber/slog-datadog/v2 v2.10.2
github.com/samber/slog-multi v1.6.0
github.com/spf13/viper v1.21.0
github.com/stretchr/testify v1.11.1
go.uber.org/mock v0.6.0
golang.org/x/time v0.9.0
k8s.io/api v0.34.3
k8s.io/apimachinery v0.34.3
Expand All @@ -35,6 +32,7 @@ require (
github.com/gogo/protobuf v1.3.2 // indirect
github.com/google/gnostic-models v0.7.0 // indirect
github.com/google/go-cmp v0.7.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y=
go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU=
go.yaml.in/yaml/v2 v2.4.2 h1:DzmwEr2rDGHl7lsFgAHxmNz/1NlQ7xLIrlN2h5d1eGI=
go.yaml.in/yaml/v2 v2.4.2/go.mod h1:081UH+NErpNdqlCXm3TtEran0rJZGxAYx9hb/ELlsPU=
go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc=
Expand Down
40 changes: 40 additions & 0 deletions pkg/apis/streaming/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,43 @@ type StreamingJobTemplateList struct {
metav1.ListMeta `json:"metadata,omitempty"`
Items []StreamingJobTemplate `json:"items"`
}

// BackfillRequestSpec defines the desired state of a backfill request
type BackfillRequestSpec struct {
// StreamClass is the name of the stream class to backfill
StreamClass string `json:"streamClass"`

// StreamId is the ID of the stream to backfill
StreamId string `json:"streamId"`
}

// BackfillRequestStatus defines the observed state of a backfill request
type BackfillRequestStatus struct {
// Phase represents the current phase of the backfill request
Phase Phase `json:"phase,omitempty"`

// Conditions represent the latest available observations
Conditions []metav1.Condition `json:"conditions,omitempty"`
}

// BackfillRequest is the Schema for the backfill request API
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Namespaced,shortName=bfr
// +kubebuilder:object:root=true
type BackfillRequest struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

Spec BackfillRequestSpec `json:"spec,omitempty"`
Status BackfillRequestStatus `json:"status,omitempty"`
}

// BackfillRequestList contains a list of BackfillRequest resources
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type BackfillRequestList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []BackfillRequest `json:"items"`
}
100 changes: 100 additions & 0 deletions pkg/apis/streaming/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading