odo
                                
                                 odo copied to clipboard
                                
                                    odo copied to clipboard
                            
                            
                            
                        odo list: add odo version used to create a component to the output
What type of PR is this: /kind feature
What does this PR do / why we need it:
This PR adds the component manager version to odo list output.
Which issue(s) this PR fixes:
Fixes #5962
PR acceptance criteria:
- 
[x] Unit test 
- 
[x] Integration test 
- 
[ ] Documentation 
How to test changes / Special notes to the reviewer:
mkdir /tmp/101; cd /tmp/101
odo init --devfile nodejs --name my-node-app --starter nodejs-starter
odo dev
odo list
$ odo list
 ✓  Listing components from namespace 'myproject' [3s]                                                                                            
 NAME               PROJECT TYPE  RUNNING IN  MANAGED                                                                                             
 my-node-app        nodejs        Dev         odo (v3.0.0-beta3)                                                                                  
 code-with-quarkus  Unknown       None        odc
odo list -o json
$ odo list -o json                                                                                                    
{                                                                                                                                                 
        "components": [                                                                                                                           
                {                                                                                                                                 
                        "name": "my-node-app",                                                                                                    
                        "managedBy": "odo",                                                                                                       
                        "managedByVersion": "v3.0.0-beta3",                                                                                       
                        "runningIn": [                                                                                                            
                                "Dev"                                                                                                             
                        ],                                                                                                                        
                        "projectType": "nodejs"                                                                                                   
                },                                                                                                                                
                {                                                                                                                                 
                        "name": "code-with-quarkus",                                                                                              
                        "managedBy": "odc",                                                                                                       
                        "managedByVersion": "",                                                                                                   
                        "runningIn": null,                                                                                                        
                        "projectType": "Unknown"                                                                                                  
                }                                                                                                                                 
        ]                                                                                                                                         
}
Deploy Preview for odo-docusaurus-preview canceled.
| Name | Link | 
|---|---|
| Latest commit | 496f8ce9630427e944493f15f0dfefae6bd0d8b0 | 
| Latest deploy log | https://app.netlify.com/sites/odo-docusaurus-preview/deploys/62fcd9338e3d1500086b2ac8 | 
Unit Tests on commit b22b1256cd40061b3f8f87581b8bce935fbb5326 finished successfully. View logs: TXT HTML
Validate Tests on commit b22b1256cd40061b3f8f87581b8bce935fbb5326 finished successfully. View logs: TXT HTML
OpenShift Tests on commit b22b1256cd40061b3f8f87581b8bce935fbb5326 finished successfully. View logs: TXT HTML
Kubernetes Tests on commit b22b1256cd40061b3f8f87581b8bce935fbb5326 finished successfully. View logs: TXT HTML
Windows Tests (OCP) on commit b22b1256cd40061b3f8f87581b8bce935fbb5326 finished with errors. View logs: TXT HTML
Kudos, SonarCloud Quality Gate passed!    
 
  0 Bugs
 0 Bugs
 
  0 Vulnerabilities
 0 Vulnerabilities
 
  0 Security Hotspots
 0 Security Hotspots
 
  4 Code Smells
 4 Code Smells
 No Coverage information
 No Coverage information
 0.4% Duplication
 0.4% Duplication
/approve Works well and code looks good! Thanks @valaparthvi
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: cdrage
The full list of commands accepted by this bot can be found here.
The pull request process is described here
- ~~OWNERS~~ [cdrage]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
/override windows-integration-test/Windows-test
@feloy: Overrode contexts on behalf of feloy: windows-integration-test/Windows-test
In response to this:
/override windows-integration-test/Windows-test
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.