Develop #120
Reference in New Issue
Block a user
No description provided.
Delete Branch "develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request introduces several updates to the
katenaryproject, including enhancements to the Makefile, code refactoring for improved maintainability, and dependency updates. Key changes involve adding UPX compression to the build process, renaming fields for consistency, introducing utility functions, and updating dependencies. Below is a categorized summary of the most important changes:Build Process Enhancements:
Makefile, enabling binary size reduction for multiple target platforms. This includes the addition of theupxtarget and its integration into thedisttarget. (Makefile, [1] [2] [3]Code Refactoring and Consistency:
ApiVersionfield toAPIVersionin theHelmChartstruct and updated all references to ensure consistency with Go naming conventions. (generator/chart.go, [1] [2]maps.Copyutility for better readability and performance. (generator/chart.go, generator/chart.goL139-R141)utils.GetContainerByNameto useservice.ContainerNameinstead ofservice.Namefor more accurate container identification. (generator/chart.go, [1] [2];generator/deployment.go, [3] [4] [5] [6];generator/generator.go, [7] [8]New Utility Functions:
fixContainerNamesto ensure container names are unique and properly formatted, and integrated it into the project generation process. (generator/generator.go, generator/generator.goR421-R432)strings.Splitwithstrings.SplitSeqfor improved string splitting in thefixPortsfunction. (generator/utils.go, generator/utils.goL56-R57)Dependency Updates:
go.mod, includingk8s.io/api,k8s.io/apimachinery, andsigs.k8s.io/yaml, to their latest versions for compatibility and security improvements. (go.mod, [1] [2]Documentation Improvements:
generator/doc.go,parser/main.go,utils/doc.go, and others. (generator/doc.go, [1];parser/main.go, [2];utils/doc.go, [3]These changes collectively enhance the project's functionality, maintainability, and performance while ensuring adherence to best practices.