-
Notifications
You must be signed in to change notification settings - Fork 7
feat: send evaluation finished events to PGI level #822
Conversation
Signed-off-by: Joerg Poecher <[email protected]>
adjusts config tests accordingly Signed-off-by: Joerg Poecher <[email protected]>
Signed-off-by: Joerg Poecher <[email protected]>
Signed-off-by: Joerg Poecher <[email protected]>
Signed-off-by: Joerg Poecher <[email protected]>
Signed-off-by: Joerg Poecher <[email protected]>
Signed-off-by: Joerg Poecher <[email protected]>
Signed-off-by: Joerg Poecher <[email protected]>
this is then used in any concerned event handler Signed-off-by: Joerg Poecher <[email protected]>
Signed-off-by: Joerg Poecher <[email protected]>
@@ -39,3 +46,92 @@ func getValueFromLabels(a adapter.EventContentAdapter, key string, defaultValue | |||
} | |||
return defaultValue | |||
} | |||
|
|||
type KeptnContext interface { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint] reported by reviewdog 🐶
exported type KeptnContext should have comment or be unexported
} | ||
} | ||
|
||
type TimeframeFunc func() (*common.Timeframe, error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint] reported by reviewdog 🐶
exported type TimeframeFunc should have comment or be unexported
@@ -78,3 +81,39 @@ func (ec *EntitiesClient) GetKeptnManagedServices(ctx context.Context) ([]Entity | |||
} | |||
return entities, nil | |||
} | |||
|
|||
type PGIQueryConfig struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint] reported by reviewdog 🐶
exported type PGIQueryConfig should have comment or be unexported
"testing" | ||
) | ||
|
||
type FileBasedURLHandlerWithSink struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint] reported by reviewdog 🐶
exported type FileBasedURLHandlerWithSink should have comment or be unexported
sink map[string][]byte | ||
} | ||
|
||
func NewFileBasedURLHandlerWithSink(t *testing.T) *FileBasedURLHandlerWithSink { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint] reported by reviewdog 🐶
exported function NewFileBasedURLHandlerWithSink should have comment or be unexported
} | ||
} | ||
|
||
func (h *FileBasedURLHandlerWithSink) GetStoredPayloadForURL(url string, container interface{}) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint] reported by reviewdog 🐶
exported method FileBasedURLHandlerWithSink.GetStoredPayloadForURL should have comment or be unexported
@@ -11,6 +11,10 @@ func (iat ImageAndTag) Tag() string { | |||
return iat.tag | |||
} | |||
|
|||
func (iat ImageAndTag) HasTag() bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint] reported by reviewdog 🐶
exported method ImageAndTag.HasTag should have comment or be unexported
Signed-off-by: Joerg Poecher <[email protected]>
b9b0692
to
04276e2
Compare
Signed-off-by: Joerg Poecher <[email protected]>
Kudos, SonarCloud Quality Gate passed!
|
The following Docker Images have been built: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
closes #240
evaluation finished events will now be sent to PGIs that belong to a certain
SERVICE
tagged withkeptn_project
,keptn_stage
andkeptn_service
and have a certainversion
.