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

Modifies the usage of service create, link and unlink by using separate files for Kubernetes resources #5031

Merged

Conversation

mik-dass
Copy link
Contributor

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:

How to test changes / Special notes to the reviewer:

  • TBA

@mik-dass mik-dass added do not review kind/feature Categorizes issue as a feature request. For PRs, that means that the PR is the implementation labels Aug 31, 2021
@mik-dass mik-dass force-pushed the inlined_service_links branch from c2e759b to 0a33e93 Compare September 1, 2021 06:16
@mik-dass
Copy link
Contributor Author

mik-dass commented Sep 2, 2021

✗  Failed to start component with name "opggji". Error: Failed to create the component: error while waiting for deployment rollout: timeout while waiting for opggji-app deployment roll out

/retest

@mik-dass
Copy link
Contributor Author

mik-dass commented Sep 3, 2021

✗  Failed to start component with name "smspfj". Error: Failed to create the component: error while waiting for deployment rollout: timeout while waiting for smspfj-app deployment roll out

/retest

@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Sep 3, 2021
@mik-dass mik-dass force-pushed the inlined_service_links branch from 0a33e93 to 44ae37f Compare September 3, 2021 07:48
@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Sep 3, 2021
@mik-dass mik-dass force-pushed the inlined_service_links branch from 44ae37f to 76060ea Compare September 3, 2021 09:47
@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Sep 9, 2021
@mik-dass mik-dass force-pushed the inlined_service_links branch from 76060ea to 98a9254 Compare September 13, 2021 07:18
@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Sep 13, 2021
@mik-dass mik-dass force-pushed the inlined_service_links branch 2 times, most recently from 83bc177 to 75112fa Compare September 13, 2021 11:41
@mik-dass mik-dass changed the title [WIP] Modifies the usage of service create, link and unlink by using separate files for Kubernetes resources Modifies the usage of service create, link and unlink by using separate files for Kubernetes resources Sep 13, 2021
@mik-dass mik-dass force-pushed the inlined_service_links branch 2 times, most recently from 5f1d3ed to 24ed8af Compare September 14, 2021 06:25
K8sLikeComponent: devfile.K8sLikeComponent{
BaseComponent: devfile.BaseComponent{},
K8sLikeComponentLocation: devfile.K8sLikeComponentLocation{
Uri: filepath.Join(name + ".yaml"),
Copy link
Contributor

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

@feloy
Copy link
Contributor

feloy commented Sep 15, 2021

@mik-dass Could you please delete the files in kubernetes when running odo delete --all ?

@netlify
Copy link

netlify bot commented Sep 17, 2021

✔️ 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)
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@mik-dass
Copy link
Contributor Author

[ssh:Fedora-32-minikube] [odo] I0917 08:12:59.182670  607482 schema.go:46] validated devfile schema
[ssh:Fedora-32-minikube] [odo] I0917 08:12:59.182938  607482 validate.go:45] Successfully validated devfile sections
[ssh:Fedora-32-minikube] [odo]  ✗  open kubernetes: no such file or directory

/retest

@feloy
Copy link
Contributor

feloy commented Sep 17, 2021

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Sep 17, 2021
@openshift-ci
Copy link

openshift-ci bot commented Sep 17, 2021

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. label Sep 17, 2021
@mik-dass
Copy link
Contributor Author

[odo] I0917 12:01:01.266849 70473 validate.go:45] Successfully validated devfile sections
[odo] ✗ open /tmp/698150647/kubernetes: no such file or directory

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. Required by Prow. label Sep 17, 2021
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Sep 17, 2021
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 22 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@feloy
Copy link
Contributor

feloy commented Sep 17, 2021

/test psi-kubernetes-integration-e2e
/test psi-unit-test-windows

@mik-dass
Copy link
Contributor Author

 Registry DefaultDevfileRegistry is not set up properly with error: Get "https://registry.stage.devfile.io/index": connection error: PROTOCOL_ERROR, please check the registry URL and credential (refer `odo registry update --help`)
[ssh:Fedora-32-minikube] [odo] 
[ssh:Fedora-32-minikube] [odo] I0917 14:28:16.256517 1853624 util.go:483] path devfile.yaml doesn't exist, skipping it
[ssh:Fedora-32-minikube] [odo] Devfile Object Validation
[ssh:Fedora-32-minikube] [odo]  •  Checking devfile existence  ...
[ssh:Fedora-32-minikube] [odo]  ✗  Checking devfile existence [27741ns]
[ssh:Fedora-32-minikube] [odo]  ⚠  Devfile component type nodejs is not suppo

/retest

@mik-dass mik-dass removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. Required by Prow. label Sep 20, 2021
@feloy
Copy link
Contributor

feloy commented Sep 20, 2021

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Sep 20, 2021
@mohammedzee1000
Copy link
Contributor

/refresh

@openshift-ci
Copy link

openshift-ci bot commented Sep 20, 2021

@mik-dass: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/psi-k8s-ibmc-integration-e2e b20ee06 link true /test psi-k8s-ibmc-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.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 639084d into redhat-developer:main Sep 20, 2021
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. kind/feature Categorizes issue as a feature request. For PRs, that means that the PR is the implementation 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.

Use a separate files for Kubernetes resources
5 participants