-
Notifications
You must be signed in to change notification settings - Fork 244
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
Do not save component name in env.yaml #5852
Do not save component name in env.yaml #5852
Conversation
✅ Deploy Preview for odo-docusaurus-preview canceled.
|
/retest |
d9c44d6
to
1174ff3
Compare
I think you will have to make the change on deploy command also (pkg/odo/cli/deploy/deploy.go) |
1174ff3
to
116fdd2
Compare
Renaming the PR because of #5663 |
116fdd2
to
9fbd6c1
Compare
184b1b0
to
5cb7c50
Compare
Thanks @valaparthvi I'll cover a test. The problem is that I am going on PTO shortly so I won't be able to get back to this for another week. I'm also running into this issue: #5927 which is not helping with regards to diagnosing what integration test is failing. So I've been working on that so I can test these changes locally. Unfortunately the IBM test cloud isn't showing the logging (see K8s slack) for which test is failing as the log (I presume) is too large to show. I'll let you know what progress I get with this, but this is my current update! |
5cb7c50
to
df24674
Compare
@cdrage: PR needs rebase. 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. |
df24674
to
67e495e
Compare
7e1e631
to
60e8f49
Compare
010b0a1
to
fb14d31
Compare
Please retry analysis of this Pull-Request directly on SonarCloud. |
fb14d31
to
8940174
Compare
Rebasing and re-pushing, but up for another review! 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM feature-wise, but would it be possible to clean up the code by removing both Name
and AppName
fields from the ComponentSettings
struct?
I guess this will require cleaning up further things, like removing the GetApplication
and GetName
methods from the LocalConfigProvider
interface as well..
Maybe I've missed something, but I think that this way, we would be sure no one can use that information (I've tested this PR against an existing project that already has component and app names in its env.yaml
files, but then from the code perspective, there is currently nothing in this PR preventing from loading and using such information).
Let's leave this for now for a future refactor as that'd have to include a lot of changes to LocalConfigProvider and ComponentSEttings. |
<!-- Thank you for opening a PR! Here are some things you need to know before submitting: 1. Please read our developer guideline: https://github.com/redhat-developer/odo/wiki/Dev:-odo-Dev-Guidelines 2. Label this PR accordingly with the '/kind' line 3. Ensure you have written and ran the appropriate tests: https://github.com/redhat-developer/odo/wiki/Dev:-Writing-and-running-tests 4. Read how we approve and LGTM each PR: https://github.com/redhat-developer/odo/wiki/Pull-Requests:-Review-guideline Documentation: If you are pushing a change to documentation, please read: https://github.com/redhat-developer/odo/wiki/Documentation:-Contributing --> **What type of PR is this:** <!-- Add one of the following kinds: /kind feature /kind cleanup /kind tests /kind documentation Feel free to use other [labels](https://github.com/redhat-developer/odo/labels) as needed. However one of the above labels must be present or the PR will not be reviewed. This instruction is for reviewers as well. --> /kind bug **What does this PR do / why we need it:** By default we should be saving the namespace / project name, not the app name / component name. **Which issue(s) this PR fixes:** <!-- Specifying the issue will automatically close it when this PR is merged --> Fixes redhat-developer#5780 Fixes redhat-developer#5886 **PR acceptance criteria:** - [X] Unit test - [X] Integration test - [X] Documentation **How to test changes / Special notes to the reviewer:** Signed-off-by: Charlie Drage <charlie@charliedrage.com>
8940174
to
1ee8de7
Compare
New changes are detected. LGTM label has been removed. |
Kudos, SonarCloud Quality Gate passed!
|
@cdrage: The following test failed, say
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. |
Alright - let's track this in a separate issue then. /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rm3l 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 |
/override ci/prow/v4.10-integration-e2e |
@valaparthvi: Overrode contexts on behalf of valaparthvi: ci/prow/v4.10-integration-e2e In response to this:
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. |
Re-added LGTM due to rebase |
<!-- Thank you for opening a PR! Here are some things you need to know before submitting: 1. Please read our developer guideline: https://github.com/redhat-developer/odo/wiki/Dev:-odo-Dev-Guidelines 2. Label this PR accordingly with the '/kind' line 3. Ensure you have written and ran the appropriate tests: https://github.com/redhat-developer/odo/wiki/Dev:-Writing-and-running-tests 4. Read how we approve and LGTM each PR: https://github.com/redhat-developer/odo/wiki/Pull-Requests:-Review-guideline Documentation: If you are pushing a change to documentation, please read: https://github.com/redhat-developer/odo/wiki/Documentation:-Contributing --> **What type of PR is this:** <!-- Add one of the following kinds: /kind feature /kind cleanup /kind tests /kind documentation Feel free to use other [labels](https://github.com/redhat-developer/odo/labels) as needed. However one of the above labels must be present or the PR will not be reviewed. This instruction is for reviewers as well. --> /kind bug **What does this PR do / why we need it:** By default we should be saving the namespace / project name, not the app name / component name. **Which issue(s) this PR fixes:** <!-- Specifying the issue will automatically close it when this PR is merged --> Fixes redhat-developer#5780 Fixes redhat-developer#5886 **PR acceptance criteria:** - [X] Unit test - [X] Integration test - [X] Documentation **How to test changes / Special notes to the reviewer:** Signed-off-by: Charlie Drage <charlie@charliedrage.com>
What type of PR is this:
/kind bug
What does this PR do / why we need it:
By default we should be saving the namespace / project name, not the app name /
component name.
Which issue(s) this PR fixes:
Fixes #5780
Fixes #5886
PR acceptance criteria:
Unit test
Integration test
Documentation
How to test changes / Special notes to the reviewer:
Signed-off-by: Charlie Drage charlie@charliedrage.com