Application program version delivery method and device, medium and program product

By building independent test and production environment configuration libraries in the application management platform, generating modified fields and synchronizing differential configuration information, the security management and control issues of application version delivery in the financial industry are solved, version consistency and data isolation are achieved, and the security needs of the financial industry are met.

CN120704728APending Publication Date: 2025-09-26INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510793739.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-13
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

Existing technologies cannot meet the financial industry's security control requirements for application version delivery. The production environment and test environment cannot be isolated, and the unclear responsibilities of developers and environment maintenance personnel lead to data overwriting each other.

Method used

By building independent test environment and production environment configuration libraries in the application management platform, generating modified fields and synchronizing differential configuration information, we ensure version consistency and data isolation, and achieve separation of responsibilities between developers and environment maintainers.

Benefits of technology

It achieves consistency in application version delivery results, ensures data isolation between the test environment and the production environment, meets the security management and control requirements of the financial industry, reduces manual intervention costs, and improves version delivery efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120704728A_ABST
    Figure CN120704728A_ABST
Patent Text Reader

Abstract

The invention discloses an application program version delivery method and device, a medium and a program product, and the method comprises the steps: generating a modification field in a test environment configuration library according to the version information of an application program after detecting that the code of the application program is modified; after it is detected that a user triggers a version delivery request for the application program, a modification field in the test environment configuration library is synchronized to a production environment configuration library; environment difference configuration information in the test environment configuration library and the production environment configuration library is copied to environment libraries of the test environment and the production environment respectively; and performing resource merging on the environment difference configuration information in each environment library and the basic configuration information in each configuration library, and deploying a merging result on a container arrangement platform cluster. According to the technical scheme, data isolation between the test environment and the production environment can be achieved, responsibility separation of developers and environment maintenance personnel is achieved, and the safety management and control requirements of the financial industry are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of distributed technology, is applicable to financial software scenarios, and in particular to an application version delivery method, device, medium, and program product. Background Art

[0002] In recent years, with the large-scale application of cloud-native technologies, the scale of containerized application nodes has continued to grow rapidly. Application management technology manages applications using distributed version control systems as the only true source of facts.

[0003] In the prior art, in the version delivery scenario in the application management platform, a deployment method is usually to make the production environment and the test environment reuse the same distributed version control system repository to achieve consistent versions of the production environment and the test environment.

[0004] However, the existing application version delivery method cannot meet the requirements of the financial industry. For example, the financial industry has stricter security control requirements for sensitive data and network access, and the production environment and test environment cannot reuse the same distributed version control system repository for version installation. Secondly, the environment manager has separate maintenance responsibilities for the test environment and the production environment, and data cannot be isolated from each other in emergency modification scenarios. Finally, there are conflicts when the environment manager and developers modify the contents of the distributed version control system repository at the same time. Summary of the Invention

[0005] The present invention provides an application version delivery method, device, medium and program product, which can ensure the consistency of application version delivery results, achieve data isolation between test environment and production environment, and separate the responsibilities of developers and environment maintenance personnel, thereby meeting the security management and control requirements of the financial industry.

[0006] According to one aspect of the present invention, a method for delivering an application version is provided, which is executed by an application management platform. The method includes:

[0007] After detecting that the application code has been modified, a modification field is generated in the test environment configuration library according to the version information of the application;

[0008] After detecting that the user has triggered a version delivery request for the application, synchronizing the modified fields in the test environment configuration library to the production environment configuration library;

[0009] The configuration library includes basic configuration information of all sub-environments in the corresponding environment, as well as differential configuration information between different sub-environments;

[0010] Copy the environment difference configuration information in the test environment configuration library and the production environment configuration library to the environment libraries of the test environment and the production environment respectively;

[0011] The environment difference configuration information in each of the environment libraries and the basic configuration information in each of the configuration libraries are merged, and the merged result is deployed on the container orchestration platform cluster.

[0012] According to another aspect of the present invention, there is provided an application version delivery device deployed on an application management platform, the device comprising:

[0013] A modified field generation module is used to generate a modified field in a test environment configuration library according to version information of the application after detecting that the application code has been modified;

[0014] A modified field synchronization module is configured to synchronize the modified fields in the test environment configuration library to the production environment configuration library after detecting that a user has triggered a version delivery request for the application;

[0015] The configuration library includes basic configuration information of all sub-environments in the corresponding environment, as well as differential configuration information between different sub-environments;

[0016] A difference information copying module is used to copy the environment difference configuration information in the test environment configuration library and the production environment configuration library to the environment libraries of the test environment and the production environment respectively;

[0017] The resource merging module is used to merge the environment difference configuration information in each of the environment libraries and the basic configuration information in each of the configuration libraries, and deploy the merged results on the container orchestration platform cluster.

[0018] According to another aspect of the present invention, an electronic device is provided, comprising:

[0019] at least one processor; and

[0020] a memory communicatively connected to the at least one processor; wherein,

[0021] The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to execute the application version delivery method described in any embodiment of the present invention.

[0022] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the application version delivery method described in any embodiment of the present invention when executed.

[0023] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the computer program implements the application version delivery method according to any embodiment of the present invention.

[0024] The technical solution provided by the embodiment of the present invention, after detecting that the code of the application has been modified through the application management platform, generates a modified field in the test environment configuration library according to the version information of the application, and after detecting that the user has triggered a version delivery request for the application, synchronizes the modified field in the test environment configuration library to the production environment configuration library, and copies the environment difference configuration information in the test environment configuration library and the production environment configuration library to the environment library of the test environment and the production environment respectively, merges the environment difference configuration information in each environment library and the basic configuration information in each configuration library, and deploys the merged result on the container orchestration platform cluster. This technical means can ensure the consistency of the application version delivery results, realize data isolation between the test environment and the production environment, realize the separation of responsibilities between developers and environment maintenance personnel, and meet the security management and control requirements of the financial industry.

[0025] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0027] Figure 1 is a flowchart of an application version delivery method provided according to an embodiment of the present invention;

[0028] Figure 2 is a flowchart of another application version delivery method provided according to an embodiment of the present invention;

[0029] Figure 3 1 is a schematic diagram of the structure of an application version delivery device provided according to an embodiment of the present invention;

[0030] Figure 4 It is a structural diagram of an electronic device that implements the application version delivery method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0032] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0033] Figure 1 This is a flowchart of an application version delivery method provided by an embodiment of the present invention. This embodiment is applicable to the case where an application management platform delivers an application version. The method can be executed by an application version delivery device, which can be implemented in the form of hardware and / or software and configured in the application management platform of an electronic device. Figure 1 As shown, the method includes:

[0034] Step 110: After detecting that the application code has been modified, a modification field is generated in the test environment configuration library according to the version information of the application.

[0035] In this embodiment, the test environment and production environment of the application correspond to independent configuration libraries (i.e., the test environment configuration library and the production environment configuration library), respectively. The configuration libraries are used to store configuration information during the application version development process. Different configuration libraries correspond to different access users and permissions to ensure the isolation of permissions between personnel in the production environment and personnel in the test environment.

[0036] In addition, the test environment and production environment each have a corresponding independent environment library for storing the configuration information of the application version to be deployed. Only the environment manager has the authority to operate the environment library, thus ensuring the isolation of the authority of developers and environment managers.

[0037] In a specific embodiment, the configuration library may include basic configuration information of all sub-environments in a corresponding environment, as well as differential configuration information between different sub-environments.

[0038] For example, taking the production environment as an example, the subordinate sub-environments may include private cloud environment, disaster recovery cloud environment, financial cloud environment, etc. For the current version of the application, the production environment configuration library may include the basic configuration information of the current version of the application in the private cloud environment, disaster recovery cloud environment and financial cloud environment, as well as the difference configuration information between the current version of the application in the private cloud environment, disaster recovery cloud environment and financial cloud environment.

[0039] Taking the test environment as an example, its subordinate sub-environments may include test environment 1, test environment 2, test environment 3, etc. For the current version of the application, the test environment configuration library may include the basic configuration information of the current version of the application in test environment 1, test environment 2, test environment 3, etc., as well as the difference configuration information between the current version of the application in test environment 1, test environment 2, and test environment 3.

[0040] In this step, after the application management platform detects that the application code has been modified, it can automatically trigger the continuous integration pipeline to generate a revision field in the test environment configuration library based on the current version information of the application through the continuous integration pipeline. The revision field is used to identify the only submission record of the current version of the application.

[0041] Step 120: After detecting that the user has triggered a version delivery request for the application, the modified fields in the test environment configuration library are synchronized to the production environment configuration library.

[0042] In this embodiment, the user can trigger a version delivery request for the application through the application management platform. Specifically, the version delivery request may include version information of the application, such as version number, version release time, etc. This embodiment does not limit this.

[0043] In this step, after detecting that the user has triggered a version delivery request for the application, the modified fields can be obtained in the test environment configuration library based on the version information, and the modified fields can be synchronized to the production environment configuration library.

[0044] Step 130: Copy the environment difference configuration information in the test environment configuration library and the production environment configuration library to the environment libraries of the test environment and the production environment, respectively.

[0045] In this step, optionally, if there is environment difference configuration information (including modified fields) in the test environment configuration library, the environment difference configuration information in the test environment configuration library is copied to the environment library of the test environment; if there is environment difference configuration information (including modified fields) in the production environment configuration library, the environment difference configuration information in the production environment configuration library is copied to the environment library of the production environment.

[0046] Step 140: Merge the environment difference configuration information in each of the environment repositories and the basic configuration information in each of the configuration repositories, and deploy the merged result on the container orchestration platform cluster.

[0047] In this embodiment, the latest submission record can be used as the deployment uniqueness in the environment library of the test environment and the environment library of the production environment to obtain the environment difference configuration information corresponding to the current version of the application and the basic configuration information in the configuration library. Then, the resource merging tool is used to merge the environment difference configuration information with the basic configuration information to obtain a complete container orchestration platform resource file.

[0048] The technical solution provided by the embodiment of the present invention is to generate a modified field in the test environment configuration library according to the version information of the application after detecting that the code of the application has been modified through the application management platform, and synchronize the modified field in the test environment configuration library to the production environment configuration library after detecting that the user has triggered a version delivery request for the application, and copy the environment difference configuration information in the test environment configuration library and the production environment configuration library to the environment library of the test environment and the production environment respectively, merge the environment difference configuration information in each environment library and the basic configuration information in each configuration library, and deploy the merged result on the container orchestration platform cluster, providing a technical means for integrating application version information, basic configuration information, deployment process, different environments The difference configuration information of the environments is stored in the distributed version control system warehouse in a pre-declared manner in the form of code files, which can achieve consistency in the multi-environment application deployment process, support inheritance, reuse and traceability between multiple versions, and reduce the cost of manual intervention through automation; secondly, by making the configuration libraries of the production environment and the test environment run independently of each other, and synchronizing data from the test environment to the production environment in the version delivery process, data isolation can be achieved while ensuring version consistency, meeting the security management requirements of the financial industry; finally, since the environment library and the configuration library are independent warehouses, developers can only apply for the configuration library, and environment maintenance personnel can only apply for the environment library, which can solve the problem of data overwriting caused by unclear permissions between developers and environment personnel.

[0049] Figure 2 A flowchart of another application version delivery method provided by an embodiment of the present invention is shown in FIG. Figure 2As shown, the method includes:

[0050] Step 210: Build configuration libraries corresponding to the test environment and the production environment respectively; the configuration library includes multiple branch configuration libraries, and different branch configuration libraries correspond to different application versions.

[0051] In this embodiment, since multiple versions of an application may be developed simultaneously, the application management platform can build a branch configuration library corresponding to each version according to the launch date corresponding to different versions.

[0052] The advantage of this setting is that by storing the configuration information corresponding to different versions separately, it is easy to distinguish multiple versions of the application, saving the time spent on obtaining configuration information during the application version delivery process, and improving the efficiency of application version delivery.

[0053] In a specific embodiment, developers can configure the application through the application management platform or by pulling the configuration library to the local device. The configuration library may include a base directory and an overlay directory. The base directory may include basic configuration information for all sub-environments in the corresponding environment (i.e., the same or default configuration values ​​for all sub-environments), such as deployment, configmap, service and other resource configuration information. The overlay directory defines the configuration information specific to each sub-environment, such as template soft and hard limits, tags, variable values, etc.

[0054] Optionally, when building the configuration library, if the configuration values ​​of different sub-environments are different, a new directory named after the sub-environment is added to the overlay directory, and new differential configuration information is added under this directory based on the basic configuration information. For example, the number of copies of the deployment in the basic directory is 1, and the number of copies of the deployment of sub-environment 1 in the overlay directory is 5.

[0055] Step 220: After detecting that the code of the application has been modified, an application image of the application is generated, and the application image is pushed to the image repository of the test environment.

[0056] In this embodiment, after detecting that the code of the application has been modified, the continuous integration pipeline can be automatically triggered to generate an application image of the application through the continuous integration pipeline and push it to the image repository of the test environment.

[0057] Optionally, corresponding steps can be pre-written in the continuous integration pipeline to generate an application image, such as pulling code, compiling code, packaging into an image, and other operations.

[0058] Step 230: Update the tag of the application image to the deployment field in the test environment configuration library according to the version information of the application program, and generate a modification field in the test environment configuration library.

[0059] In this embodiment, after generating the application image, you can query the branch configuration library that matches the current version of the application in the test environment configuration library, then update the label of the application image to the image field of the deployment of the branch configuration library, and generate a modified field in the branch configuration library.

[0060] The advantage of this setting is that by updating the label of the application image to the deployment field in the test environment configuration library, the application management platform can quickly obtain the code corresponding to the application image according to the deployment field in the configuration library, so as to establish an association relationship between the configuration library and the application code library, thereby improving the efficiency of subsequent application version delivery.

[0061] Step 240: After detecting that the user has triggered a version delivery request for the application, the modified fields in the test environment configuration library are synchronized to the production environment configuration library.

[0062] In this step, specifically, you can first establish a corresponding branch configuration library in the production environment configuration library based on the branch configuration library corresponding to the current version of the application in the test environment configuration library, and then synchronize the modified fields in the test environment branch configuration library to the production environment branch configuration library.

[0063] The advantage of this setting is that the configuration library data of the test environment can be accurately synchronized to the configuration library of the production environment in real time according to the branch dimension, ensuring the consistency of version data.

[0064] Step 250: Obtain the application image of the application program according to the modification field and the deployment field in the test environment configuration library, and push the application image to the image repository of the production environment.

[0065] In this step, the application management platform can automatically scan the image name under the modification field in the test environment configuration library and the image tag in the deployment field, and then obtain the application image based on the image name and image tag, and push the application image to the image repository of the production environment.

[0066] The advantage of this setting is that by modifying the fields and deploying the fields in the test environment configuration library, you can quickly push the application image in the test environment to the production environment, thereby improving the efficiency of application image delivery.

[0067] Step 260: Based on the name of the branch configuration library corresponding to the current application version, a branch environment library corresponding to the current application version is constructed in the environment library of the production environment.

[0068] The advantage of this setting is that the configuration library data can be synchronized to the environment library according to the branch dimension, ensuring the consistency of version data and realizing the separation of responsibilities between developers and environment maintainers.

[0069] Step 270: Copy the environment difference configuration information in the test environment configuration library and the production environment configuration library to the environment libraries of the test environment and the production environment, respectively.

[0070] In this step, you can copy the overlay directory of the configuration repository to the overlay directory of the corresponding environment repository to deliver the environment configuration information. For example, copy the environment difference configuration information in the release_20250501 directory of the production environment branch configuration repository to the release_20250501 directory of the production environment branch environment repository.

[0071] Step 280: Merge the environment difference configuration information in each of the environment repositories and the basic configuration information in each of the configuration repositories, and deploy the merged result on the container orchestration platform cluster.

[0072] In one implementation of this embodiment, the environment difference configuration information in each of the environment libraries and the basic configuration information in each of the configuration libraries are merged as resources, including: writing the test environment configuration library address, the production environment configuration library address and the modification field into the target file in the corresponding environment library; obtaining the environment difference configuration information in each of the environment libraries, and obtaining the basic configuration information in each of the configuration libraries based on the target file; and merging the environment difference configuration information and the basic configuration information as resources.

[0073] In a specific embodiment, the test environment configuration library address and modified fields can be written into the version.yaml file of the test environment environment library, and the production environment configuration library address and modified fields can be written into the version.yaml file of the production environment environment library. The test environment environment library and the production environment environment library are submitted, and then the environment difference configuration information in each environment library is obtained. The basic configuration information in the test environment configuration library and the production environment configuration library is obtained according to the version.yaml file, and finally the environment difference configuration information and the basic configuration information are merged.

[0074] The advantage of this setting is that the configuration information to be delivered can be obtained through the environment library, thereby realizing a developer-centric delivery model and solving the problem of data overwriting caused by unclear permissions between developers and environment personnel.

[0075] In one implementation of this embodiment, deploying the merged result on the container orchestration platform cluster includes: comparing the merged result with the resource files running in the container orchestration platform cluster through the deployment component in the application management platform, and deploying the changed resource files based on the comparison results.

[0076] In a specific embodiment, the deployment component in the application management platform can compare the merge result with the resource files running in the container orchestration platform cluster based on the latest submission record of the environment library, and deploy the changed resource files based on the comparison result.

[0077] The advantage of this setting is that it can improve the traceability of the delivery process while ensuring the efficiency of application version delivery.

[0078] The technical solution provided by an embodiment of the present invention constructs configuration repositories corresponding to the test environment and the production environment, respectively; upon detecting that the application code has been modified, generates an application image of the application, pushes the application image to the image repository of the test environment, updates the application image tag to the deployment field in the test environment configuration repository based on the application version information, and generates a modification field in the test environment configuration repository; upon detecting that a user has triggered a version delivery request, synchronizes the modification field in the test environment configuration repository with the production environment configuration repository; obtains the application image based on the modification field and deployment field in the test environment configuration repository; pushes the application image to the image repository of the production environment; constructs a branch environment repository in the environment repository of the production environment based on the name of the branch configuration repository corresponding to the current application version; copies the environment difference configuration information in the test environment configuration repository and the production environment configuration repository to the environment repository of the test environment and the production environment, respectively; merges the environment difference configuration information in each environment repository and the basic configuration information in each configuration repository; and deploys the merged result on a container orchestration platform cluster. This technical solution can ensure the consistency of application version delivery results, achieve data isolation between the test environment and the production environment, and realize the separation of responsibilities between developers and environment maintenance personnel, thereby meeting the security management and control requirements of the financial industry.

[0079] Figure 3 This is a schematic diagram of the structure of an application version delivery device provided by an embodiment of the present invention, wherein the device is applied to an application management platform of an electronic device, such as Figure 3 As shown, the device includes: a modified field generation module 310, a modified field synchronization module 320, a difference information replication module 330 and a resource merging module 340.

[0080] A modified field generation module 310 is configured to generate a modified field in a test environment configuration library based on version information of the application program after detecting that the application program code has been modified.

[0081] A modified field synchronization module 320 is configured to synchronize the modified fields in the test environment configuration repository to the production environment configuration repository upon detecting that a user has triggered a version delivery request for the application;

[0082] The configuration library includes basic configuration information of all sub-environments in the corresponding environment, as well as differential configuration information between different sub-environments;

[0083] The difference information copy module 330 is used to copy the environment difference configuration information in the test environment configuration library and the production environment configuration library to the environment libraries of the test environment and the production environment respectively;

[0084] The resource merging module 340 is used to merge the environment difference configuration information in each of the environment libraries and the basic configuration information in each of the configuration libraries, and deploy the merged result on the container orchestration platform cluster.

[0085] The technical solution provided by the embodiment of the present invention, after detecting that the code of the application has been modified through the application management platform, generates a modified field in the test environment configuration library according to the version information of the application, and after detecting that the user has triggered a version delivery request for the application, synchronizes the modified field in the test environment configuration library to the production environment configuration library, and copies the environment difference configuration information in the test environment configuration library and the production environment configuration library to the environment library of the test environment and the production environment respectively, merges the environment difference configuration information in each environment library and the basic configuration information in each configuration library, and deploys the merged result on the container orchestration platform cluster. This technical means can ensure the consistency of the application version delivery results, realize data isolation between the test environment and the production environment, realize the separation of responsibilities between developers and environment maintenance personnel, and meet the security management and control requirements of the financial industry.

[0086] Based on the above embodiment, the device further includes:

[0087] A configuration library construction module is used to construct configuration libraries corresponding to the test environment and the production environment respectively; the configuration library includes multiple branch configuration libraries, and different branch configuration libraries correspond to different application versions;

[0088] An image generation module is used to generate an application image of the application program, push the application image to the image repository of the test environment, and update the tag of the application image to the deployment field in the test environment configuration library;

[0089] An image acquisition module is used to acquire the application image of the application according to the modification fields and deployment fields in the test environment configuration library, and push the application image to the image warehouse of the production environment;

[0090] The environment library construction module is used to build the branch environment library corresponding to the current application version in the environment library of the production environment according to the branch configuration library name corresponding to the current application version.

[0091] The resource merging module 340 includes:

[0092] The file writing unit is used to write the test environment configuration library address, the production environment configuration library address and the modified fields into the target file in the corresponding environment library;

[0093] A configuration information acquisition unit, configured to acquire environment difference configuration information in each of the environment libraries, and acquire basic configuration information in each of the configuration libraries according to the target file;

[0094] An information processing unit, configured to merge the environment difference configuration information with the basic configuration information;

[0095] The resource deployment unit is used to compare the merge result with the resource files running in the container orchestration platform cluster through the deployment component in the application management platform, and deploy the changed resource files according to the comparison result.

[0096] The above device can execute the methods provided by all the above embodiments of the present invention, and has the corresponding functional modules and beneficial effects of executing the above methods. For technical details not fully described in the embodiments of the present invention, please refer to the methods provided by all the above embodiments of the present invention.

[0097] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0098] like Figure 4As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0099] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0100] Processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. Processor 11 executes the various methods and processes described above, such as the application version delivery method.

[0101] In some embodiments, the application version delivery method can be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the application version delivery method described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the application version delivery method in any other suitable manner (e.g., via firmware).

[0102] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0103] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0104] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0105] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0106] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0107] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.

[0108] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0109] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A method for delivering an application version, characterized in that: Executed by an application management platform, the method includes: After detecting that the application code has been modified, a modification field is generated in the test environment configuration library according to the version information of the application; After detecting that the user has triggered a version delivery request for the application, synchronizing the modified fields in the test environment configuration library to the production environment configuration library; The configuration library includes basic configuration information of all sub-environments in the corresponding environment, as well as differential configuration information between different sub-environments; Copy the environment difference configuration information in the test environment configuration library and the production environment configuration library to the environment libraries of the test environment and the production environment respectively; The environment difference configuration information in each of the environment libraries and the basic configuration information in each of the configuration libraries are merged, and the merged result is deployed on the container orchestration platform cluster.

2. The method according to claim 1, characterized in that After detecting that the application code has been modified, and before generating the modified field in the test environment configuration library based on the version information of the application, the following steps are further included: Build configuration libraries corresponding to the test environment and production environment respectively; The configuration library includes multiple branch configuration libraries, and different branch configuration libraries correspond to different application versions.

3. The method according to claim 2, characterized in that After detecting that the application code has been modified, it also includes: Generate an application image of the application program, and push the application image to the image repository of the test environment; Update the tag of the application image to the deployment field in the test environment configuration library.

4. The method according to claim 3, characterized in that After synchronizing the modified fields in the test environment configuration library to the production environment configuration library, the following steps are also included: According to the modification fields and deployment fields in the test environment configuration library, an application image of the application program is obtained, and the application image is pushed to the image repository of the production environment.

5. The method according to claim 4, characterized in that After pushing the application image to the image repository of the production environment, the following steps are also included: Based on the name of the branch configuration library corresponding to the current application version, build the branch environment library corresponding to the current application version in the environment library of the production environment.

6. The method according to claim 1, characterized in that Merging the environment difference configuration information in each environment library and the basic configuration information in each configuration library includes: Write the test environment configuration library address, production environment configuration library address and modified fields into the target file in the corresponding environment library; Obtaining the environment difference configuration information in each of the environment libraries, and obtaining the basic configuration information in each of the configuration libraries according to the target file; The environment difference configuration information and the basic configuration information are merged.

7. The method according to claim 1, characterized in that Deploying the merged results on the container orchestration platform cluster includes: The merging result is compared with the resource files running in the container orchestration platform cluster through the deployment component in the application management platform, and the changed resource files are deployed according to the comparison result.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the application version delivery method according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the application version delivery method according to any one of claims 1 to 7 when executed.

10. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed by a processor, implements the application version delivery method according to any one of claims 1 to 7.