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

Refactor Codebase to Simplicity #54

Merged
merged 9 commits into from
Dec 29, 2023
Merged

Refactor Codebase to Simplicity #54

merged 9 commits into from
Dec 29, 2023

Conversation

H0llyW00dzZ
Copy link
Owner

@H0llyW00dzZ H0llyW00dzZ commented Dec 29, 2023

Note

This Simplicity are powerful

- [+] feat(init_const.go): add ErrorParameterMustBestring constant to handle string parameter validation with additional error message
- [+] refactor(crew.go): refactor resolveConflict function to use getParamAsString helper function
- [+] fix(update_network_policy.go): fix error handling and use getParamAsString function for policyName and policySpec
- [+] refactor(update_network_policy.go): refactor extractNetworkPolicyParameters function
- [+] fix(update_image.go): refactor extractDeploymentParameters function to use getParamAsString function for parameter extraction and handle error cases properly
- [+] fix(labels_pods.go): fix typo in variable name 'labelKey' and 'labelValue'
- [+] refactor(labels_pods.go): extract common code into 'getParamAsString' function
- [+] refactor(labels_pods.go): improve error handling and error messages in 'extractLabelParameters' function
- [+] fix(worker/tasks_crew.go): fix typo in parameter names and error messages
- [+] refactor(worker/tasks_crew.go): use helper functions to get parameters as string and int
- [+] chore(init_const.go): add new error message for parameter not found
- [+] refactor(list_options.go): remove unused functions getParamAsString and getParamAsInt64
- [+] feat(worker): add helper functions to retrieve string and integer values from a map of parameters
- [+] - Added getParamAsString function to retrieve a string value from a map based on a key
- [+] - Added getParamAsInt64 function to retrieve an integer value from a map based on a key, handling both int and float64 data types
- [+] - Added getParamAsInt function to retrieve an integer value from a map of parameters, handling both float64 and int types
@H0llyW00dzZ H0llyW00dzZ marked this pull request as ready for review December 29, 2023 19:41
@H0llyW00dzZ H0llyW00dzZ merged commit 5183928 into master Dec 29, 2023
2 checks passed
@H0llyW00dzZ H0llyW00dzZ deleted the patch_patch branch December 29, 2023 19:46
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