Software development method, cloud development platform, computer equipment, readable storage medium and program product
By introducing a combination of private clusters and public clusters in the cloud integrated development environment, using technologies such as privatization authentication and container management modules, the problem of low data security in traditional cloud IDEs is solved, and data privacy protection and development of cloud software are realized. Improved safety.
Patent Information
- Application Number
- CN202411079672.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-11-08
AI Technical Summary
Traditional cloud integrated development environment (IDE) is deployed in public clusters, and its data security is low and cannot effectively meet users' concerns about data privacy.
Using a software development method combining private clusters and public clusters, private gateways and private cluster controllers are used to privatize and authenticate, container management modules and private proxy service work together to ensure that software development operations are carried out in private clusters and data access Path generation and use to isolate public clusters and improve data security.
It realizes software development in the cloud while meeting users' concerns about data privacy, improves data security, and ensures data privacy during development.
Smart Images

Figure CN118916030A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a software development method, a cloud development platform, a computer device, a readable storage medium, and a program product. Background Art
[0002] As an emerging software development model, cloud integrated development environment (IDE) has been adopted by more and more enterprises and developers. Traditional software development on local machines has many limitations, such as complex development environment configuration, poor cross-platform compatibility, and low collaboration efficiency. In contrast, cloud IDE can solve these problems well. Developers do not need to configure the development environment locally. They can connect to the cloud IDE through a browser. All code editing, building, debugging and other operations are completed in the cloud. However, traditional cloud IDE is deployed in public clusters, and data security is not high. Summary of the invention
[0003] Based on this, it is necessary to provide a software development method, cloud development platform, computer equipment, readable storage medium and program product that can improve data security in response to the above technical problems.
[0004] In a first aspect, the present application provides a software development method, which is applied to a private cluster, the private cluster belongs to a cloud development platform for a cloud integrated development environment IDE, the cloud development platform also includes a public cluster, and the cloud development platform also provides a user operation interface, the method comprising:
[0005] The private cluster receives a workspace startup request, where the workspace startup request is sent by the public cluster after the public cluster receives the workspace startup request from the user operation interface and determines that the target workspace corresponding to the workspace startup request is deployed in the private cluster;
[0006] The private cluster starts the target workspace and returns the target workspace status to the user operation interface through the public cluster for display;
[0007] The private cluster responds to software development operations, which are input by developers in the user operation interface based on the workspace status and forwarded to the private cluster through the public cluster.
[0008] In one embodiment, the private cluster further includes a private gateway and a private cluster controller; before the private cluster starts the target workspace, it also includes:
[0009] The private gateway performs privatization authentication on the workspace startup request; if the authentication is successful, the workspace startup request is sent to the private cluster controller; and the private cluster controller starts the target workspace.
[0010] In one embodiment, the private cluster further includes a container management module, the private cluster starts the target workspace, and returns the workspace status of the target workspace to the user operation interface for display through the public cluster, including:
[0011] The private cluster controller sends the workspace identifier carried in the workspace startup request to the container management module; the container management module searches for the target container corresponding to the workspace identifier and starts the target container; the private cluster controller returns the workspace status returned after the target container is started to the public cluster through the private gateway; the workspace status is returned to the user operation interface through the public cluster for display.
[0012] In one embodiment, the private cluster further includes a privatized proxy service, and the method further includes:
[0013] The container management module sends the container identifier of the target container to the privatized proxy service; the privatized proxy service searches for corresponding resource configuration information based on the container identifier, and generates a data access path for the target container-related data based on the resource configuration information.
[0014] In one embodiment, the private cluster includes a private cluster controller, a container management module, and a private gateway; the private cluster responds to the software development operation, including:
[0015] After receiving the software development operation, the private cluster controller sends the software development operation to the container management module; based on the software development operation, the container management module reads the corresponding data according to the data access path generated by the privatized proxy service; the container management module inputs the software development operation and the read data into the target container to obtain the execution result corresponding to the software development operation; the container management module returns the execution result to the user operation interface through the private cluster controller, private gateway and public cluster.
[0016] In the second aspect, the present application also provides a cloud development platform for cloud IDE, including: a public cluster and a private cluster. The cloud development platform also provides a user operation interface, wherein:
[0017] The public cluster is used to receive a workspace startup request sent by a user operation interface; when it is determined that a target workspace corresponding to the workspace startup request is deployed in a private cluster, the workspace startup request is sent to the private cluster;
[0018] The private cluster is used to start the target workspace and return the workspace status of the target workspace to the user operation interface for display through the public cluster;
[0019] The user operation interface is used to receive software development operations input by users based on the workspace status, and forward the software development operations to the private cluster through the public cluster;
[0020] Private clusters are also used to respond to software development operations.
[0021] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the method provided in the first aspect when executing the computer program.
[0022] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method provided in the first aspect is implemented.
[0023] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the method provided in the first aspect when executed by a processor.
[0024] In the software development method, cloud development platform, computer device, readable storage medium and program product, the public cluster receives a workspace startup request sent by the user operation interface; when it is determined that the target workspace corresponding to the workspace startup request is deployed in a private cluster, the workspace startup request is sent to the private cluster; the private cluster starts the target workspace and returns the workspace status of the target workspace to the user operation interface through the public cluster for display; the user operation interface receives the software development operation input by the developer based on the workspace status, and forwards the software development operation to the private cluster through the public cluster; the private cluster responds to the software development operation. This method of introducing a private cluster allows users to develop software on a private cluster and isolate it from the public cluster, which meets users' concerns about data privacy and improves data security. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0026] FIG1 is an application environment diagram of a software development method in one embodiment;
[0027] Figure 2A flowchart of a software development method in one embodiment;
[0028] Figure 3 A schematic diagram of a cloud development platform framework in one embodiment;
[0029] Figure 4 A schematic diagram of a cloud development platform framework in another embodiment;
[0030] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0032] The software development method provided in the embodiment of the present application can be applied in the application environment shown in FIG1. Among them, the terminal 102 communicates with the server 104 through the network. The server 104 is equipped with a cloud development platform for a cloud integrated development environment IDE, the cloud development platform includes a public cluster and a private cluster, and the cloud development platform also provides a user operation interface. The terminal 102 can display the user operation interface. The developer can trigger a workspace startup request in the user operation interface. The user operation interface will send the workspace startup request to the public cluster. When the public cluster determines that the target workspace corresponding to the workspace startup request is deployed in the private cluster, the workspace startup request will be sent to the private cluster; after the private cluster receives the workspace startup request, it starts the target workspace and returns the workspace status of the target workspace to the user operation interface through the public cluster for display. The developer can view the workspace status of the target workspace, and input the software development operation in the user operation interface based on the workspace status. The user operation interface forwards the software development operation input by the developer to the private cluster through the public cluster, and the private cluster responds to the software development operation. This method of introducing private clusters allows users to develop software on private clusters and isolate them from public clusters, satisfying users' concerns about data privacy and improving data security.
[0033] The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, etc. The server 104 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0034] In an exemplary embodiment, Figure 2As shown, a software development method is provided, and the method is applied to the private cluster in FIG1 as an example for explanation. The private cluster belongs to a cloud development platform for a cloud integrated development environment IDE, and the cloud development platform also includes a public cluster. The cloud development platform also provides a user operation interface. The software development method provided in the embodiment of the present application includes the following steps 202 to 206. Among them:
[0035] Step 202 , the private cluster receives a workspace startup request, which is sent by the public cluster after receiving the workspace startup request from the user operation interface and determining that the target workspace corresponding to the workspace startup request is deployed in the private cluster.
[0036] When an enterprise user has a need to deploy a private cluster, a private cluster can be deployed for it in the enterprise user's internal network. That is, developers can only access the private cluster by using the internal network, thereby ensuring the privacy of data.
[0037] Among them, the cloud development platform provides a user operation interface, and developers can use the user operation interface to use the various services provided by the cloud development platform. Developers can open the user operation interface by visiting the corresponding website, or open the user operation interface on the corresponding application of the cloud development platform.
[0038] Optionally, the public cluster may be configured with a docking function with a user operation interface, that is, the user operation interface sends the request and operation triggered by the developer to the public cluster first, and the public cluster makes subsequent judgments and processing.
[0039] In the case where a private cluster is deployed in the internal network of an enterprise user, developers within the enterprise can create a workspace in the private cluster, and each developer is allowed to create one or more workspaces.
[0040] Optionally, when a developer needs to enter development work, he or she can trigger a workspace startup request for the corresponding workspace in the user operation interface. For the convenience of explanation, the workspace is referred to as the target workspace in the embodiment of the present application, and the user operation interface can send the workspace startup request to the public cluster.
[0041] The workspace start request may carry the workspace identifier of the target workspace, the login user identifier of the user who sends the workspace start request, and the like.
[0042] When the public cluster determines that the target workspace corresponding to the workspace startup request is deployed in a private cluster, the public cluster sends the workspace startup request to the private cluster.
[0043] Optionally, after receiving the workspace startup request, the public cluster can parse the workspace startup request, obtain the network address of the computer device that sends the workspace startup request, and determine whether the network address is an address in the enterprise internal network where a private cluster is deployed. If so, it is determined that the target workspace corresponding to the workspace startup request is deployed in the private cluster, and the workspace startup request is sent to the corresponding private cluster.
[0044] Optionally, if the network address of the computer device that sends the workspace startup request is not an address in the enterprise internal network where the private cluster is deployed, the target workspace corresponding to the workspace startup request is searched and started in the public cluster.
[0045] Step 204 , the private cluster starts the target workspace and returns the workspace status of the target workspace to the user operation interface for display through the public cluster.
[0046] After receiving the workspace start request, the private cluster parses the workspace start request to obtain a workspace identifier, searches for and starts the target workspace based on the workspace identifier, and obtains the workspace status of the target workspace and returns it to the public cluster.
[0047] Optionally, each workspace in the private cluster corresponds to a container. The private cluster can search for a corresponding target container based on the workspace identifier, and start the target workspace by starting the target container.
[0048] Optionally, the workspace state of the target workspace may be a workspace state saved after the developer last used the target workspace for software development.
[0049] The public cluster may further return the workspace status of the target workspace to the user operation interface, and the user operation interface renders and displays the workspace status.
[0050] Step 206 , the private cluster responds to the software development operation, where the software development operation is input by the developer in the user operation interface based on the workspace status and forwarded to the private cluster through the public cluster.
[0051] Among them, the developer can view the workspace status on the user operation interface and continue the software development work based on the workspace status. Each time the developer inputs a software development operation, the user operation interface can send the software development operation to the public cluster. After receiving the software development operation, the public cluster forwards the software development operation to the private cluster, and the private cluster responds to the software development operation.
[0052] In the above embodiment, the public cluster receives a workspace startup request sent by the user operation interface; when it is determined that the target workspace corresponding to the workspace startup request is deployed in a private cluster, the workspace startup request is sent to the private cluster; the private cluster starts the target workspace, and returns the workspace status of the target workspace to the user operation interface through the public cluster for display; the user operation interface receives the software development operation input by the developer based on the workspace status, and forwards the software development operation to the private cluster through the public cluster; the private cluster responds to the software development operation. This method of introducing a private cluster allows users to develop software on a private cluster and isolate it from the public cluster, which meets users' concerns about data privacy and improves data security.
[0053] In some embodiments, the private cluster further includes a private gateway and a private cluster controller; before the private cluster starts the target workspace, it also includes:
[0054] The private gateway performs privatization authentication on the workspace startup request; if the authentication is successful, the workspace startup request is sent to the private cluster controller; and the private cluster controller starts the target workspace.
[0055] Among them, when the public cluster determines that the target workspace corresponding to the workspace startup request is deployed in a private cluster, the workspace startup request can be sent to the private gateway, and the private gateway will first perform privatization authentication on the workspace startup request; if the authentication is passed, the workspace startup request will be transferred to the private cluster controller, and the private cluster controller will further start the target workspace.
[0056] Optionally, the private gateway can parse the workspace startup request to obtain the network address, login user ID, etc. of the computer device that sends the workspace startup request. The private gateway can privatize and authenticate the workspace startup request by determining whether the network address belongs to the network domain corresponding to the private cluster and whether the login user ID is legal.
[0057] In the above embodiment, the private cluster also includes a private gateway and a private cluster controller; when the target workspace corresponding to the workspace startup request is deployed in the private cluster, the public cluster sends the workspace startup request to the private gateway, and when the private gateway authenticates the workspace startup request, the private cluster controller starts the target workspace. This private gateway authentication design further ensures that the data in the private cluster is not illegally accessed, thereby improving data security.
[0058] In some embodiments, the private cluster further includes a container management module. The private cluster starts the target workspace and returns the workspace status of the target workspace to the user operation interface for display through the public cluster, including:
[0059] The private cluster controller sends the workspace identifier carried in the workspace startup request to the container management module; the container management module searches for the target container corresponding to the workspace identifier and starts the target container; the private cluster controller returns the workspace status returned after the target container is started to the public cluster through the private gateway; the workspace status is returned to the user operation interface through the public cluster for display.
[0060] The container management module is used to manage the containers corresponding to the created workspaces. The management here includes, for example, starting and deleting the containers. The container management module stores the corresponding relationship between the workspace identifier and the container.
[0061] Optionally, if the private gateway authenticates the workspace startup request, it forwards the workspace startup request to the private cluster controller, which parses the workspace startup request, obtains the workspace identifier of the target workspace, and sends the workspace identifier to the container management module. The container management module searches for the container corresponding to the workspace identifier of the target workspace in the stored correspondence, uses the container as the target container, and starts the target container to start the target workspace.
[0062] During the startup of the target container, the workspace status saved by the developer after the last software development using the target workspace will be read, and the startup will be completed based on the read workspace status, so that the developer can see the latest workspace status after startup and continue to develop under the latest workspace status. After the target container is started, the read workspace status will be returned to the public cluster through the container management module, private cluster controller, and private gateway in sequence, and the public cluster will further return the workspace status to the user operation interface for display.
[0063] After receiving the workspace status returned by the public cluster, the user operation interface will render and display the workspace status.
[0064] In the above embodiment, the private cluster controller sends the workspace identifier of the target workspace to the container management module; the container management module searches for the target container corresponding to the workspace identifier and starts the target container, thereby starting the target workspace. After starting, the developer can see the workspace status saved after the last use of the target workspace for software development in the user operation interface, which improves the consistency of the development process.
[0065] In some embodiments, the private cluster includes a privatized proxy service, and the method further includes: the container management module sends the container identifier of the target container to the privatized proxy service; the privatized proxy service searches for corresponding resource configuration information based on the container identifier, and generates a data access path for the target container-related data based on the resource configuration information.
[0066] Optionally, the private cluster controller sends the workspace identifier of the target workspace to the container management module. After the container management module finds the container corresponding to the workspace identifier in the stored correspondence, it can also send the container identifier of the container to the privatized proxy service.
[0067] Among them, the workspace, container, and resource have a one-to-one correspondence. The resources here may include storage resources, cache resources, etc., which is not limited in the embodiment of the present application.
[0068] Among them, the privatized proxy service stores the correspondence between the container identifier and the resource configuration information. After receiving the container identifier sent by the container management module, the privatized proxy service can find the resource configuration information corresponding to the container identifier in the stored correspondence, and generate a data access path for the target container-related data based on the resource configuration information.
[0069] In the above embodiment, after the container management module finds the target container, it can send the container identifier of the target container to the privatized proxy service. The privatized proxy service finds the corresponding resource configuration information based on the container identifier, and generates a data access path for the target container-related data based on the resource configuration information. In the subsequent software development process, data can be read or stored according to the data access path. This method of introducing a private cluster achieves isolation from the public cluster, meets the user's concerns about data privacy, and improves data security.
[0070] In some embodiments, the private cluster responds to the software development operation, including: after receiving the software development operation, the private cluster controller sends the software development operation to the container management module; the container management module reads the corresponding data based on the software development operation according to the data access path generated by the privatized proxy service; the container management module inputs the software development operation and the read data into the target container to obtain the execution result corresponding to the software development operation; the container management module returns the execution result to the user operation interface through the private cluster controller, the private gateway and the public cluster.
[0071] As described above, after the user operation interface receives the workspace status returned by the public cluster, it will render and display the workspace status so that the developer can see the latest workspace status and continue to develop under the latest workspace status.
[0072] Optionally, the developer can input software development operations in the user operation interface based on the workspace status displayed on the user operation interface and the current development needs. The user operation interface sends the software development operations to the private cluster controller through the public cluster and the private gateway in turn. The private cluster controller transfers the software development operations to the container management module. The container management module reads the data access path generated by the privatized proxy service for the target workspace from the Proxy service, reads the data used for the software development operation according to the data access path, inputs the software development operation and the read data into the target container, and the target container runs based on the operations and data input therein to obtain the execution results corresponding to the software development operations. The execution results are returned to the user operation interface through the private cluster controller, the private gateway and the public cluster for display, so that the developer can see the response results of the operations he input.
[0073] In the above embodiment, after receiving the software development operation, the private cluster controller sends the software development operation to the container management module; the container management module reads the corresponding data based on the software development operation according to the data access path generated by the privatized proxy service; the container management module inputs the software development operation and the read data into the target container to obtain the execution result corresponding to the software development operation; the container management module returns the execution result to the user operation interface through the private cluster controller, the private gateway and the public cluster for display, thereby achieving isolation from the public cluster, satisfying the user's concerns about data privacy, and improving data security.
[0074] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0075] In some embodiments, see Figure 3As shown, a cloud development platform for cloud IDE is provided, which includes: a public cluster and a private cluster. The cloud development platform also provides a user operation interface, wherein: the public cluster is used to receive a workspace startup request sent by the user operation interface; when it is determined that the target workspace corresponding to the workspace startup request is deployed in the private cluster, the workspace startup request is sent to the private cluster; the private cluster is used to start the target workspace, and return the workspace status of the target workspace to the user operation interface through the public cluster for display; the user operation interface is used to receive software development operations input by the user based on the workspace status, and forward the software development operations to the private cluster through the public cluster; the private cluster is also used to respond to the software development operations.
[0076] Among them, the private cluster is a cluster deployed for enterprise users in the internal network when they have private cluster deployment requirements. Developers can only access the private cluster by using the internal network, thus ensuring the privacy of data.
[0077] Among them, the cloud development platform provides a user operation interface, and the developer can open the user operation interface by accessing the corresponding website, or open the user operation interface on the corresponding application of the cloud development platform. The developer can trigger a workspace startup request in the user operation interface, and the user operation interface will send the workspace startup request to the public cluster. When the public cluster determines that the target workspace corresponding to the workspace startup request is deployed in a private cluster, the workspace startup request will be sent to the private cluster; after the private cluster receives the workspace startup request, it will start the target workspace and return the workspace status of the target workspace to the user operation interface through the public cluster for display. The developer can view the workspace status of the target workspace, and input the software development operation in the user operation interface based on the workspace status. The user operation interface forwards the software development operation input by the developer to the private cluster through the public cluster, and the private cluster responds to the software development operation. For the detailed implementation process, please refer to the description of the aforementioned method embodiment, which will not be repeated here.
[0078] In the above embodiment, the cloud development platform for cloud IDE includes a public cluster and a private cluster, and the cloud development platform also provides a user operation interface, wherein: the public cluster is used to receive a workspace startup request sent by the user operation interface; when it is determined that the target workspace corresponding to the workspace startup request is deployed in a private cluster, the workspace startup request is sent to the private cluster; the private cluster is used to start the target workspace, and return the workspace status of the target workspace to the user operation interface through the public cluster for display; the user operation interface is used to receive the software development operation input by the user based on the workspace status, and forward the software development operation to the private cluster through the public cluster; the private cluster is also used to respond to the software development operation. This method of introducing a private cluster allows users to develop software on a private cluster and isolate it from the public cluster, which meets the user's concerns about data privacy and improves data security.
[0079] In some embodiments, the public cluster includes: a workspace management service; the private cluster includes: a private gateway, a private cluster controller, a container management module, and a privatized proxy service, wherein: the workspace management service is used to receive a workspace startup request sent by a user operation interface; when it is determined that the target workspace corresponding to the workspace startup request is deployed in the private cluster, the workspace startup request is sent to the private gateway; the private gateway is used to perform privatization authentication on the workspace startup request; when the authentication is passed, the workspace startup request is sent to the private cluster controller; the private cluster controller is used to send the workspace identifier carried in the workspace startup request to the container management module; the container management module is used to find the target container corresponding to the workspace identifier and start the target container; it is also used to send the container identifier of the target container to the privatized proxy service; the privatized proxy service is used to find the corresponding resource configuration information based on the container identifier, and generate a data access path for the target container-related data based on the resource configuration information; the private cluster controller is also used to return the workspace status returned after the target container is started to the public cluster through the private gateway; the workspace status is returned to the user operation interface through the public cluster for display.
[0080] As described above, the public cluster can be configured with a docking function with the user operation interface, which can be a workspace management service. The user operation interface can send the workspace startup request triggered by the developer in the user operation interface to the workspace management service. When the workspace management service determines that the target workspace corresponding to the workspace startup request is deployed in the private cluster, the workspace startup request is sent to the private gateway.
[0081] Among them, the implementation process of privatization authentication, starting the target container, generating the data access path, and returning the workspace status can be referred to the introduction of the aforementioned embodiment, and will not be repeated here.
[0082] Among them, the developer can input the software development operation in the user operation interface based on the workspace status displayed in the user operation interface and the current development needs. The user operation interface sends the software development operation to the private cluster controller through the public cluster and the private gateway in turn. The private cluster controller is also used to send the software development operation to the container management module after receiving the software development operation; the container management module is also used to read the corresponding data according to the data access path generated by the privatized proxy service based on the software development operation; it is also used to input the software development operation and the read data into the target container to obtain the execution result corresponding to the software development operation; it is also used to return the execution result to the user operation interface through the private cluster controller, the private gateway and the public cluster. This allows developers to see the response results of the operations they input.
[0083] For example, see Figure 4 As shown, the cloud development platform for cloud IDE includes a public cluster and a private cluster. The public cluster includes a public cluster A and a public cluster B. The functions of public cluster A and public cluster B are different. Public cluster A includes public components, a plug-in market, a Websocket service, a workspace management service ide-severden, etc.; wherein, public components include modules such as relational databases, configuration centers, and distributed caches, which provide public service support such as data storage, caching, and logging for public clusters. The plug-in market includes modules such as the server and plug-in management. The Websocket service includes modules such as the server, channel management, and message management. The workspace management service ide-sever includes modules such as workspace management, external interface management, and scheduled task management. In the embodiment of the present application, the workspace management module can be used to interact with the user operation interface and the private gateway. Public cluster B includes a container management component, which includes a Docker management service module. Public cluster B also includes multiple workspace containers. Figure 4There are 3 diagrams in it, and each workspace container includes a corresponding container and a disk. In the embodiment of the present application, when public cluster A determines that the target workspace corresponding to the workspace startup request is deployed in a public cluster, it will send the workspace startup request to public cluster B for response. The private cluster includes components such as a private gateway, a private cluster controller ide-controller, a k8s container management, an agent, and a file system. Among them, the k8s container management component includes a k8s api management module, the agent component includes a proxy service, and the file system component includes a storage module. The k8s api management module is the container management module in the above embodiment. The proxy service is the privatized proxy service in the above embodiment. The private cluster also includes a workspace instance, Figure 4 There are three examples in the figure, and each workspace instance includes two types: workspace front end and workspace back end.
[0084] Each module in the cloud development platform for cloud IDE can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0085] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 5 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store workspace-related data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a software development method is implemented.
[0086] Those skilled in the art will understand that Figure 5The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0087] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0088] The private cluster receives a workspace startup request, where the workspace startup request is sent by the public cluster after the public cluster receives the workspace startup request from the user operation interface and determines that the target workspace corresponding to the workspace startup request is deployed in the private cluster;
[0089] The private cluster starts the target workspace and returns the target workspace status to the user operation interface through the public cluster for display;
[0090] The private cluster responds to software development operations, which are input by developers in the user operation interface based on the workspace status and forwarded to the private cluster through the public cluster.
[0091] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0092] The private gateway performs privatization authentication for the workspace startup request;
[0093] When the authentication is successful, the workspace startup request is sent to the private cluster controller; the private cluster controller starts the target workspace.
[0094] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0095] The private cluster controller sends the workspace identifier carried in the workspace startup request to the container management module;
[0096] The container management module searches for a target container corresponding to the workspace identifier and starts the target container;
[0097] The private cluster controller returns the workspace status returned after the target container is started to the public cluster through the private gateway; and returns the workspace status to the user operation interface through the public cluster for display.
[0098] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0099] The container management module sends the container identifier of the target container to the privatized proxy service;
[0100] The privatized proxy service searches for the corresponding resource configuration information based on the container identifier, and generates a data access path for the target container-related data based on the resource configuration information.
[0101] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0102] After receiving the software development operation, the private cluster controller sends the software development operation to the container management module;
[0103] The container management module reads the corresponding data according to the data access path generated by the privatized proxy service based on software development operations;
[0104] The container management module inputs the software development operation and the read data into the target container to obtain the execution result corresponding to the software development operation;
[0105] The container management module returns the execution results to the user operation interface through the private cluster controller, private gateway and public cluster.
[0106] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0107] The private cluster receives a workspace startup request, where the workspace startup request is sent by the public cluster after the public cluster receives the workspace startup request from the user operation interface and determines that the target workspace corresponding to the workspace startup request is deployed in the private cluster;
[0108] The private cluster starts the target workspace and returns the target workspace status to the user operation interface through the public cluster for display;
[0109] The private cluster responds to software development operations, which are input by developers in the user operation interface based on the workspace status and forwarded to the private cluster through the public cluster.
[0110] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0111] The private gateway performs privatization authentication for the workspace startup request;
[0112] When the authentication is successful, the workspace startup request is sent to the private cluster controller; the private cluster controller starts the target workspace.
[0113] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0114] The private cluster controller sends the workspace identifier carried in the workspace startup request to the container management module;
[0115] The container management module searches for a target container corresponding to the workspace identifier and starts the target container;
[0116] The private cluster controller returns the workspace status returned after the target container is started to the public cluster through the private gateway; and returns the workspace status to the user operation interface through the public cluster for display.
[0117] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0118] The container management module sends the container identifier of the target container to the privatized proxy service;
[0119] The privatized proxy service searches for the corresponding resource configuration information based on the container identifier, and generates a data access path for the target container-related data based on the resource configuration information.
[0120] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0121] After receiving the software development operation, the private cluster controller sends the software development operation to the container management module;
[0122] The container management module reads the corresponding data according to the data access path generated by the privatized proxy service based on software development operations;
[0123] The container management module inputs the software development operation and the read data into the target container to obtain the execution result corresponding to the software development operation;
[0124] The container management module returns the execution results to the user operation interface through the private cluster controller, private gateway and public cluster.
[0125] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0126] The private cluster receives a workspace startup request, where the workspace startup request is sent by the public cluster after the public cluster receives the workspace startup request from the user operation interface and determines that the target workspace corresponding to the workspace startup request is deployed in the private cluster;
[0127] The private cluster starts the target workspace and returns the target workspace status to the user operation interface through the public cluster for display;
[0128] The private cluster responds to software development operations, which are input by developers in the user operation interface based on the workspace status and forwarded to the private cluster through the public cluster.
[0129] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0130] The private gateway performs privatization authentication for the workspace startup request;
[0131] When the authentication is successful, the workspace startup request is sent to the private cluster controller; the private cluster controller starts the target workspace.
[0132] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0133] The private cluster controller sends the workspace identifier carried in the workspace startup request to the container management module;
[0134] The container management module searches for a target container corresponding to the workspace identifier and starts the target container;
[0135] The private cluster controller returns the workspace status returned after the target container is started to the public cluster through the private gateway; and returns the workspace status to the user operation interface through the public cluster for display.
[0136] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0137] The container management module sends the container identifier of the target container to the privatized proxy service;
[0138] The privatized proxy service searches for the corresponding resource configuration information based on the container identifier, and generates a data access path for the target container-related data based on the resource configuration information.
[0139] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0140] After receiving the software development operation, the private cluster controller sends the software development operation to the container management module;
[0141] The container management module reads the corresponding data according to the data access path generated by the privatized proxy service based on software development operations;
[0142] The container management module inputs the software development operation and the read data into the target container to obtain the execution result corresponding to the software development operation;
[0143] The container management module returns the execution results to the user operation interface through the private cluster controller, private gateway and public cluster.
[0144] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0145] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0146] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A software development method, characterized in that: Applied to a private cluster, the private cluster belongs to a cloud development platform for a cloud integrated development environment IDE, the cloud development platform also includes a public cluster, and the cloud development platform also provides a user operation interface, the method includes: The private cluster receives a workspace startup request, where the workspace startup request is sent by the public cluster after the public cluster receives the workspace startup request from the user operation interface and determines that a target workspace corresponding to the workspace startup request is deployed in the private cluster; The private cluster starts the target workspace, and returns the workspace status of the target workspace to the user operation interface for display through the public cluster; The private cluster responds to a software development operation, where the software development operation is input by a developer in the user operation interface based on the workspace state and forwarded to the private cluster through the public cluster.
2. The method according to claim 1, characterized in that The private cluster further includes a private gateway and a private cluster controller; before the private cluster starts the target workspace, it also includes: The private gateway performs privatization authentication on the workspace startup request; When the authentication is successful, the workspace startup request is sent to the private cluster controller; and the target workspace is started by the private cluster controller.
3. The method according to claim 2, characterized in that The private cluster further includes a container management module. The private cluster starts the target workspace and returns the workspace state of the target workspace to the user operation interface for display through the public cluster, including: The private cluster controller sends the workspace identifier carried in the workspace startup request to the container management module; The container management module searches for a target container corresponding to the workspace identifier and starts the target container; The private cluster controller returns the workspace status returned after the target container is started to the public cluster through the private gateway; and returns the workspace status to the user operation interface through the public cluster for display.
4. The method according to claim 3, characterized in that The private cluster also includes a privatized proxy service, and the method further includes: The container management module sends the container identifier of the target container to the privatized proxy service; The privatized proxy service searches for corresponding resource configuration information based on the container identifier, and generates a data access path for target container-related data based on the resource configuration information.
5. The method according to any one of claims 1 to 4, characterized in that: The private cluster includes a private cluster controller, a container management module and a private gateway; the private cluster responds to the software development operation, including: After receiving the software development operation, the private cluster controller sends the software development operation to the container management module; The container management module reads corresponding data according to the data access path generated by the privatized proxy service based on the software development operation; The container management module inputs the software development operation and the read data into the target container to obtain an execution result corresponding to the software development operation; The container management module returns the execution result to the user operation interface through the private cluster controller, the private gateway and the public cluster.
6. A cloud development platform for cloud IDE, characterized in that: Including public clusters and private clusters, the cloud development platform also provides a user operation interface, including: The public cluster is used to receive a workspace startup request sent by the user operation interface; if it is determined that the target workspace corresponding to the workspace startup request is deployed in the private cluster, the workspace startup request is sent to the private cluster; The private cluster is used to start the target workspace, and return the workspace state of the target workspace to the user operation interface for display through the public cluster; The user operation interface is used to receive a software development operation input by a user based on the workspace state, and forward the software development operation to the private cluster through the public cluster; The private cluster is also used to respond to the software development operation.
7. The cloud development platform according to claim 6, characterized in that: The public cluster includes: workspace management service; the private cluster includes: private gateway, private cluster controller, container management module, privatized proxy service, wherein: The workspace management service is configured to receive a workspace startup request sent by the user operation interface; and when it is determined that a target workspace corresponding to the workspace startup request is deployed in the private cluster, send the workspace startup request to the private gateway; The private gateway is used to perform privatization authentication on the workspace startup request; if the authentication is passed, the workspace startup request is sent to the private cluster controller; The private cluster controller is used to send the workspace identifier carried in the workspace startup request to the container management module; The container management module is used to find the target container corresponding to the workspace identifier and start the target container; it is also used to send the container identifier of the target container to the privatization proxy service; The privatized proxy service is used to find the corresponding resource configuration information based on the container identifier, and generate a data access path for the target container-related data based on the resource configuration information; The private cluster controller is further used to return the workspace status returned after the target container is started to the public cluster through the private gateway; and return the workspace status to the user operation interface through the public cluster for display.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
