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

Implement PVC for odo source volume #4316

Merged
merged 7 commits into from
Dec 24, 2020

Conversation

adisky
Copy link
Contributor

@adisky adisky commented Dec 17, 2020

What type of PR is this?

/kind feature

What does does this PR do / why we need it:
This PR proposes to create a PVC for odo source code volume, Uptil now we were using emptyDir to store source code.
It makes PVC as a default option to store source code, If user wants to use emptyDir as source code, it can use
odo preference set ephemeral true

Which issue(s) this PR fixes:

Fixes #3775

PR acceptance criteria:

How to test changes / Special notes to the reviewer:

  • odo create nodejs --starter
  • odo push
  • check if it has created source pvc using oc get pvc or kubectl get pvc

Aditi Sharma added 2 commits December 17, 2020 15:48
add label for source pvc, to filter out from storage list
@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. label Dec 17, 2020
@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adisky

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. Required by Prow. label Dec 17, 2020
@openshift-merge-robot
Copy link
Collaborator

@adisky: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/v4.6-integration-e2e cbed088 link /test v4.6-integration-e2e

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@adisky
Copy link
Contributor Author

adisky commented Dec 21, 2020

not able to reproduce the failure locally

 Should ensure that files are correctly synced on pod redeploy, without force push specified [It]
    /go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_push_test.go:715
    Expected
      
        <[]string | len:15, cap:16>: [
            "config",
            "devfile.yaml",
            "pom.xml",
            "src",
            "src/main",
            "src/main/java",
            "src/main/java/application",
            "src/main/java/application/Info.java",
            "src/main/java/application/SBApplication.java",
            "src/main/java/application/rest",
            "src/main/java/application/rest/v1",
            "src/main/java/application/rest/v1/Example.java",
            "src/main/resources",
            "src/main/resources/application-local.properties",
            "src/main/resources/application.properties",
        ]
    to equal
        <[]string | len:16, cap:16>: [
            "config",
            "devfile.yaml",
            "lost+found",
            "pom.xml",
            "src",
            "src/main",
            "src/main/java",
            "src/main/java/application",
            "src/main/java/application/Info.java",
            "src/main/java/application/SBApplication.java",
            "src/main/java/application/rest",
            "src/main/java/application/rest/v1",
            "src/main/java/application/rest/v1/Example.java",
            "src/main/resources",
            "src/main/resources/application-local.properties",
            "src/main/resources/application.properties",
        ]

don't know from where this directory lost+found coming up

/retest

@adisky adisky changed the title [WIP] [Test] Implement PVC for odo source volume Implement PVC for odo source volume Dec 23, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. label Dec 23, 2020
pkg/preference/preference.go Outdated Show resolved Hide resolved
Copy link
Member

@dharmit dharmit left a comment

Choose a reason for hiding this comment

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

Overall the code does what it's meant for, but I'm facing some issues with setting and unsetting the value of Ephemeral in ~/.odo/preference.yaml using odo preference commands. Opening a separate issue to address that.

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Dec 24, 2020
@dharmit
Copy link
Member

dharmit commented Dec 24, 2020

Opening a separate issue to address that.

#4327

@adisky
Copy link
Contributor Author

adisky commented Dec 24, 2020

/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. Required by Prow. label Dec 24, 2020
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Dec 24, 2020
Copy link
Member

@dharmit dharmit left a comment

Choose a reason for hiding this comment

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

Thanks for fixing odo preference related points. 👍

/hold cancel
/lgtm

@openshift-ci-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. Required by Prow. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. Required by Prow. labels Dec 24, 2020
@openshift-merge-robot openshift-merge-robot merged commit 20d67e2 into redhat-developer:master Dec 24, 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. Required by Prow. lgtm Indicates that a PR is ready to be merged. Required by Prow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow users to toggle between ephemeral and persistent volumes for devfiles
4 participants