Skip to content

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

Merged
P4T12ICK merged 2 commits intosplunk:developfrom
cichyx96:feat/proper_cloud_provider_abstraction
Feb 20, 2026
Merged

Feat/proper cloud provider polymorhism and dataclass for Backend params#1372
P4T12ICK merged 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)

@P4T12ICK P4T12ICK merged commit b1443c2 into splunk:develop Feb 20, 2026
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