Skip to content

Feat/proper cloud provider polymorhism and dataclass for Backend params#1372

Open
cichyx96 wants to merge 2 commits intosplunk:developfrom
cichyx96:feat/proper_cloud_provider_abstraction
Open

Feat/proper cloud provider polymorhism and dataclass for Backend params#1372
cichyx96 wants to merge 2 commits intosplunk:developfrom
cichyx96:feat/proper_cloud_provider_abstraction

Conversation

@cichyx96
Copy link

@cichyx96 cichyx96 commented Feb 13, 2026

Exisiting code used polymorhism forcing classes AWSProvider, AzureProvider and GCPProvider to implement set of functions like create_backend and delete_backend, however I noticed those functions were not used in code, instead backend_manager did all logic. I have refactored this to reduce lines of code and utilize existing logic.

Also I have added new dataclass BackendParams. This allows to easily understand what backend configuration consist of and avoid errors like 'KeyError'.

60 lines of code less to maintain :)

[x] Test passed
[x] Successfully provisioned splunk_minimal_aws after changes (in AWS)

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