Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: regenerated missing field in event model #5027

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
13 changes: 8 additions & 5 deletions api/v1/testkube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5341,10 +5341,10 @@ components:
type: string
format: date-time
description: Timestamp of log
example: "2018-03-20T09:12:28Z"
example: "2018-03-20T09:12:28Z"
content:
type: string
description: Message/event data passed from executor (like log lines etc)
description: Message/event data passed from executor (like log lines etc)
type:
type: string
description: One of possible log types
Expand All @@ -5358,7 +5358,7 @@ components:
- job-executor
error:
type: boolean
description: indicates a log error
description: indicates a log error
version:
type: string
description: One of possible log versions
Expand All @@ -5375,7 +5375,7 @@ components:
v1:
$ref: "#/components/schemas/LogV1"
description: Old output - for backwards compatibility - will be removed for non-structured logs

LogV1:
description: Log format version 1
type: object
Expand Down Expand Up @@ -5505,6 +5505,9 @@ components:
description: UUID of event
resource:
$ref: "#/components/schemas/EventResource"
streamTopic:
type: string
description: custom stream topic for event
resourceId:
type: string
description: ID of resource
Expand Down Expand Up @@ -5668,7 +5671,7 @@ components:
properties:
logsV2:
type: boolean
description: Log processing version 2
description: Log processing version 2

TestTrigger:
type: object
Expand Down
7 changes: 4 additions & 3 deletions pkg/api/v1/testkube/model_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ package testkube
// Event data
type Event struct {
// UUID of event
Id string `json:"id"`
StreamTopic string `json:"topic"`
Resource *EventResource `json:"resource"`
Id string `json:"id"`
Resource *EventResource `json:"resource"`
// custom stream topic for event
StreamTopic string `json:"streamTopic,omitempty"`
// ID of resource
ResourceId string `json:"resourceId"`
Type_ *EventType `json:"type"`
Expand Down
Loading