-
Notifications
You must be signed in to change notification settings - Fork 60
Create a deployment using a BuildConfig #4151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If our existing "Create Component" UI can somehow be re-used that would be ideal. |
Hello @datho7561,
How we can manage this kind of URL on our extension, as the mentioned URL Please let me know if you have any idea to manage these kind of URLs |
I think the repo you mentioned illustrates something Tim mentioned: The steps to create a container of an app are different for each app. Even knowing the language or framework that the app uses isn't enough to create a deployment of the app. I don't think there's anything we can do in that case. I think the developer console behaviour is good. i.e. we detect that none of the configurations will work properly and let the user pick for themselves. |
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.
The text was updated successfully, but these errors were encountered: