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

📦 Discover injectors through entrypoints #50

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from

Conversation

webknjaz
Copy link
Member

This patch eliminates import-based injector discovery, switching to
distribution package-independent hosting of the respective callables.

@webknjaz
Copy link
Member Author

pre-commit.ci run

@webknjaz webknjaz force-pushed the features/inventory-entry-points branch from b314739 to bfabdd3 Compare October 23, 2024 01:00
Copy link

codecov bot commented Oct 23, 2024

❌ 3 Tests Failed:

Tests completed Failed Passed Skipped
3 3 0 0
View the top 3 failed tests by shortest run time
 tests.importable_test
Stack Traces | 0s run time
No failure message available
 tests.importable_test
Stack Traces | 0s run time
No failure message available
 tests.importable_test
Stack Traces | 0s run time
No failure message available

To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard

@webknjaz webknjaz force-pushed the features/inventory-entry-points branch from bfabdd3 to 6ffec3a Compare October 23, 2024 01:10
This patch eliminates import-based injector discovery, switching to
distribution package-indepdendent hosting of the respective callables.
@webknjaz webknjaz force-pushed the features/inventory-entry-points branch from 6ffec3a to ca70f64 Compare October 23, 2024 01:14
TODO: Revert this commit before merging!
@webknjaz webknjaz force-pushed the features/inventory-entry-points branch from ca70f64 to 3e25834 Compare October 23, 2024 13:55
@@ -84,6 +84,16 @@ thycotic_dsv = "awx_plugins.credentials.dsv:dsv_plugin"
thycotic_tss = "awx_plugins.credentials.tss:tss_plugin"
aws_secretsmanager_credential = "awx_plugins.credentials.aws_secretsmanager:aws_secretmanager_plugin"

[project.entry-points."awx_plugins.injector"]
aws = "awx_plugins.credential.injectors:aws"
azure_rm = "awx_plugins.credential.injectors:azure_rm"
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
azure_rm = "awx_plugins.credential.injectors:azure_rm"
azure-rm = "awx_plugins.credential.injectors:azure_rm"

azure_rm = "awx_plugins.credential.injectors:azure_rm"
ec2 = "awx_plugins.credential.injectors:aws"
gce = "awx_plugins.credential.injectors:gce"
kubernetes_bearer_token = "awx_plugins.credential.injectors:kubernetes_bearer_token"
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
kubernetes_bearer_token = "awx_plugins.credential.injectors:kubernetes_bearer_token"
kubernetes-bearer-token = "awx_plugins.credential.injectors:kubernetes_bearer_token"

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.

1 participant