Skip to content

EIM decomposition - provide scenario specific API#780

Merged
jkossak merged 23 commits intomainfrom
test-api-dec
Jan 28, 2026
Merged

EIM decomposition - provide scenario specific API#780
jkossak merged 23 commits intomainfrom
test-api-dec

Conversation

@jkossak
Copy link
Contributor

@jkossak jkossak commented Jan 14, 2026

Description

This PR adds ability to expose api endpoint per scenario requirement by enabling/disabling related grpc clients/services inside apiv2 - based on scenario manifests included in the repo.

Related PRs:

Fixes # (issue)

Any Newly Introduced Dependencies

Please describe any newly introduced 3rd party dependencies in this change. List their name, license information and how they are used in the project.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

  • I agree to use the APACHE-2.0 license for my code changes
  • I have not introduced any 3rd party dependency changes
  • I have performed a self-review of my code

@sys-emf sys-emf added the apiv2 label Jan 14, 2026
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

Copy link
Contributor

@niket-intc niket-intc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need a separate code to generate a go file (allowedlist_gen.go) file.
Why cant we manually create the file and keep it. And Edit it with more scenarios when needed.

Or directly take the services name from the Helm chart values files from user. This way its more maintainable.

@jkossak
Copy link
Contributor Author

jkossak commented Jan 23, 2026

Why do we need a separate code to generate a go file (allowedlist_gen.go) file. Why cant we manually create the file and keep it. And Edit it with more scenarios when needed.

Or directly take the services name from the Helm chart values files from user. This way its more maintainable.

We don't strictly need it. We could manually create the go file. However, having the list of services per scenario in the yaml file makes it easier to locate and modify by someone not familiar with the code. Scenario definitions are closer to configuration rather than the application logic. Plus, now the tool validates the names of the services in the manifests against the implemented gRPC services names (just added). If the manifest contains not implemented services - the code generation fails early rather than at runtime.

@niket-intc niket-intc self-requested a review January 28, 2026 10:31
@jkossak jkossak enabled auto-merge (squash) January 28, 2026 10:48
@jkossak jkossak merged commit 1c8cc7e into main Jan 28, 2026
22 checks passed
@jkossak jkossak deleted the test-api-dec branch January 28, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants