-
Notifications
You must be signed in to change notification settings - Fork 404
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
Get active events #3765
Merged
Merged
Get active events #3765
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
8d63698
Query updated
Maladie cb3d842
URL for active events added
Maladie 66db316
Dependencies updated
Maladie 82141e4
Dependencies updated
Maladie 17625db
Dependencies updated (again)
Maladie 3a169d2
Necessary comments added
Maladie 49d61e8
Necessary comments added
Maladie 0ba9cd2
go fmt
Maladie 6a06b47
Application chart updated
Maladie a7a1947
Path changed to PathPrefix
Maladie c8bab65
Small bug fixed
Maladie 2daf8a0
Added serviceaccount for EventService
Maladie 1f63825
Formatting
Maladie 970f469
Empty slice instead of nil
Maladie 594b370
RBAC to event service tests added
Maladie 7789f4c
Api file added
Maladie 912de0c
Applications added to path
Maladie 9c09c03
Acceptance test for active events added
Maladie cfc8e39
Merge branch 'master' into get-active-events
Maladie 6119ae9
dep updated
Maladie 7310c2b
Merge remote-tracking branch 'origin/get-active-events' into get-acti…
Maladie 65558e0
dep updated
Maladie 76d9a1b
Role changed to ClusterRole
Maladie 0e4ad5c
Test subscription name fixed
Maladie 7a9f399
Array creation changed to make()
Maladie 2baa44b
Docs for Event service activeevents endpoint
Maladie 4608e7b
Endpoint activeevents changed to events/subscribed
Maladie 003f8cc
Removing duplicated events
Maladie 5fbb72f
Update docs/application-connector/docs/09-03-event-service.md
crabtree 62778e8
Update docs/application-connector/docs/assets/eventsapi.yaml
crabtree 1419168
Update docs/application-connector/docs/09-03-event-service.md
crabtree 2440fd4
Update components/event-service/internal/externalapi/healthcheckhandl…
crabtree 5ba74be
Update components/event-service/docs/api/api.yaml
crabtree 744057b
Merge branch 'master' into get-active-events
Maladie beac9cf
Test service
Maladie 784a646
Merge remote-tracking branch 'origin/get-active-events' into get-acti…
Maladie aa1dfa1
Test fixed
Maladie 12bd620
Update docs/application-connector/docs/09-03-event-service.md
b8bb294
Update docs/application-connector/docs/09-03-event-service.md
ccaf375
Update docs/application-connector/docs/09-03-event-service.md
d1ad01f
Update docs/application-connector/docs/09-03-event-service.md
05bdff9
Update docs/application-connector/docs/09-03-event-service.md
cf08cbc
Update docs/application-connector/docs/09-03-event-service.md
7642e6f
Unit tests added
Maladie c9d8de4
Merge remote-tracking branch 'origin/get-active-events' into get-acti…
Maladie 7e94063
Unit tests rewritten
Maladie f6cab60
Use Subscription getter - require finisheing
Szymongib ef947ef
Unnecessary stub removed
Maladie 6d754a9
Comment fixed
Maladie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...nts/application-operator/charts/application/templates/tests/rbac-events-service-test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ .Release.Name }}-event-service-acceptance | ||
namespace: {{ .Values.global.namespace }} | ||
labels: | ||
app: {{ .Release.Name }}-event-service-acceptance | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ .Release.Name }}-event-service-acceptance | ||
labels: | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
rules: | ||
- apiGroups: ["*"] | ||
resources: ["subscriptions"] | ||
verbs: ["create", "delete"] | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ .Release.Name }}-event-service-acceptance | ||
labels: | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: {{ .Release.Name }}-event-service-acceptance | ||
subjects: | ||
- apiGroup: rbac.authorization.k8s.io | ||
kind: User | ||
name: system:serviceaccount:{{ .Release.Namespace }}:{{ .Release.Name }}-event-service-acceptance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
please consider not naming it
subscribed
. As discussed previously with @akgalwas, there could be scenarios where there is no Kyma Subscription but still the event needs to be consumed e.g. for data events which will be consumed by a data event processing framework.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.
After discussion with team and PO, we decided to stay with
subscribed
. It is general term in case of events, not necessarily pointing to Kyma Subscriptions.