Skip to content

chore(RHTAPWATCH-1094): Add predicates to controller#3

Merged
avi-biton merged 2 commits intokonflux-ci:mainfrom
avi-biton:predicates
Jul 8, 2024
Merged

chore(RHTAPWATCH-1094): Add predicates to controller#3
avi-biton merged 2 commits intokonflux-ci:mainfrom
avi-biton:predicates

Conversation

@avi-biton
Copy link
Copy Markdown
Member

@avi-biton avi-biton commented Jul 1, 2024

Add predicates to the controller to handle only created and successfully ended push pipelineruns
Updating parameters in pipelinerun_helper.go to Object instead of pipelineRun so it will be possible to use them in predicate events.
Fix some static checks warnings

@avi-biton avi-biton requested review from gbenhaim and yftacherzog July 1, 2024 12:38
Comment thread internal/controller/predicates.go Outdated
Comment thread config/rbac/role.yaml
Comment thread internal/controller/pipelinerun_helper.go
Comment thread internal/controller/notificationservice_controller.go
Comment thread internal/controller/notificationservice_controller.go
Add predicates to the controller to handle:
Created push pipeline
Finished push pipeline with no notification annotation
Finished push pipeline with finalizer

Signed-off-by: Avi Biton <abiton@redhat.com>
When the roles were updated in the reconciler, a `make generate` command
updated the role.yaml file

Signed-off-by: Avi Biton <abiton@redhat.com>
@avi-biton
Copy link
Copy Markdown
Member Author

@gbenhaim I think I covered all scenarios, PTAL

@avi-biton avi-biton merged commit 071a75f into konflux-ci:main Jul 8, 2024
@avi-biton avi-biton deleted the predicates branch July 8, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants