Skip to content
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

Added ODO_S2I_CONVERTED_DEVFILE env variable #70

Merged

Conversation

adisky
Copy link
Contributor

@adisky adisky commented Jul 23, 2020

To enable easy migration from s2i components to devfile, ODO_S2I_CONVERTED_DEVFILE environment variable is inserted to component while odo utils convert-to-devfile. There are some changes in script if this flag is enabled.

# This is a dumb way to restart as supervisord does not have a restart function
${ODO_UTILS_DIR}/bin/supervisord ctl stop run; ${ODO_UTILS_DIR}/bin/supervisord ctl start run
# following script need not to run for s2i components converted to devfile
# for converted components devfile push code assures the following steps
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little confused by the comment. First line says that the below script should not run for components converted to devfile. Second line says that devfile push code assures below steps for converted components. Sounds opposite to me. Do you think we can reword it?

Copy link
Contributor Author

@adisky adisky Jul 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for components converted to devfile, we don't need to run following steps. As this steps already run by devifile push code
is this sound ok to you?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep it does. Earlier one made me think like - "these steps don't get executed, but these steps get executed". Maybe my bad. But above sounds perfect. 👍

Some changes needs to be done in scripts for
components converted from s2i to devfile
@dharmit
Copy link
Member

dharmit commented Jul 23, 2020

/approve
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 23, 2020
@amitkrout
Copy link
Contributor

ping approvers - @kadel

@kadel
Copy link
Member

kadel commented Jul 28, 2020

/approve

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dharmit, kadel

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 28, 2020
@openshift-merge-robot openshift-merge-robot merged commit 8eb4071 into redhat-developer:master Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants