-
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
Modifies the usage of service create, link and unlink by using separate files for Kubernetes resources #5031
Modifies the usage of service create, link and unlink by using separate files for Kubernetes resources #5031
Conversation
c2e759b
to
0a33e93
Compare
/retest |
/retest |
0a33e93
to
44ae37f
Compare
44ae37f
to
76060ea
Compare
76060ea
to
98a9254
Compare
83bc177
to
75112fa
Compare
5f1d3ed
to
24ed8af
Compare
…te files for Kubernetes resources
24ed8af
to
d5897ba
Compare
pkg/service/service.go
Outdated
K8sLikeComponent: devfile.K8sLikeComponent{ | ||
BaseComponent: devfile.BaseComponent{}, | ||
K8sLikeComponentLocation: devfile.K8sLikeComponentLocation{ | ||
Uri: filepath.Join(name + ".yaml"), |
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.
I would expect to have the uriPath contained in this Uri field
@mik-dass Could you please delete the files in kubernetes when running odo delete --all ? |
✔️ Deploy Preview for odo-docusaurus-preview ready! 🔨 Explore the source changes: ccb3823 🔍 Inspect the deploy log: https://app.netlify.com/sites/odo-docusaurus-preview/deploys/6144418c6635f0000837def9 😎 Browse the preview: https://deploy-preview-5031--odo-docusaurus-preview.netlify.app |
continue | ||
} | ||
|
||
completePath := filepath.Join(componentContext, uri) |
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.
You should test that the URI is a relative path, and not an http[s]:// URI
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.
Fixed
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: feloy 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 |
/hold |
… the delete command
Kudos, SonarCloud Quality Gate passed! |
/test psi-kubernetes-integration-e2e |
/retest |
/lgtm |
/refresh |
@mik-dass: 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. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
What type of PR is this?
/kind feature
What does this PR do / why we need it:
It modifies the usage of service create, link and unlink by using separate files for Kubernetes resources.
Which issue(s) this PR fixes:
Fixes #4886
PR acceptance criteria:
Unit test
Integration test
Documentation
I have read the test guidelines
How to test changes / Special notes to the reviewer: