vscode-openshift-tools
vscode-openshift-tools copied to clipboard
Create a deployment using a BuildConfig
NOTE This will only work on OpenShift, since BuildConfigs are specific to OpenShift
In the OpenShift Developer console, when you open the "Add to project > Import from Git" context menu, it detects the language of the git project and creates a BuildConfig to build it.
The wizard:
The created BuildConfig:
I think we should add a new context menu item "Create deployment using BuildConfig" in the same context menu as the "Create deployment from image" context menu item that supports this workflow.
The main benefit of the BuildConfig is that it builds the container image for the deployment on the cluster and can create a new container image and deploy it when the app's source code is updated in the Git repo.
The main thing that we'll need to figure out for this workflow is how they are getting the container image to use. Is it the same process as with odo? i.e. use alizer to select a devfile then use the devfile's container image in the build config? Or is something more complex going on? We should review the source code of the Developer Console to learn more.