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

add Kamelets- schema generated forms & yaml/form switching #7344

Merged
merged 1 commit into from Dec 3, 2020

Conversation

vikram-raj
Copy link
Member

@vikram-raj vikram-raj commented Nov 27, 2020

Fixes:
https://issues.redhat.com/browse/ODC-5063

Description:
when creating an source for kamelets, I should be presented with a form/yaml view and ability to switch between two

Screen shots / Gifs for design review:
kamelet-1
kamelet-2

Test setup:

  1. Install Serverless operator and create CR for KnativeServing, KnativeEventing
  2. Install Red Hat Integration - Camel K 1.2.0 provided by Red Hat, If installed globally create CR for IntegrationPlatform in your namespace, where you can see the kamelets.

@openshift-ci-robot openshift-ci-robot added component/knative Related to knative-plugin component/shared Related to console-shared labels Nov 27, 2020
@vikram-raj
Copy link
Member Author

/cc @invincibleJai

<EventSourceSection
namespace={namespace}
kameletSource={kameletSource}
catalogFlow
Copy link
Member

Choose a reason for hiding this comment

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

we may not need to pass catalogFlow , as there will be just one flow now. I'll work on it to get this cleaned across

@@ -167,6 +177,7 @@ export const EventSource: React.FC<Props> = ({
namespace={namespace}
eventSourceStatus={eventSourceStatus}
eventSourceMetaDescription={eventSourceMetaDescription}
kameletSource={kameletSource}
Copy link
Member

Choose a reason for hiding this comment

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

do we need to pass as prop or shall we set formSchema in initial values if it's kamelet

Copy link
Member Author

Choose a reason for hiding this comment

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

We need this. We can not set it in the initial value as it has been not used in the form.

frontend/packages/knative-plugin/src/models.ts Outdated Show resolved Hide resolved
@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 1, 2020
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 1, 2020
@invincibleJai
Copy link
Member

/lgtm

Verified all 6 kamelets[0] , works as expected

[0]https://github.com/openshift-integration/kamelet-catalog

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 1, 2020
@invincibleJai
Copy link
Member

/lgtm

verified the changes !!

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 2, 2020
@invincibleJai
Copy link
Member

/assign @rohitkrai03

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Dec 3, 2020
@vikram-raj
Copy link
Member Author

/test analyze

Copy link
Contributor

@rohitkrai03 rohitkrai03 left a comment

Choose a reason for hiding this comment

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

/approve

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 3, 2020
@invincibleJai
Copy link
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 3, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: invincibleJai, rohitkrai03, vikram-raj

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-merge-robot openshift-merge-robot merged commit 30607b3 into openshift:master Dec 3, 2020
@spadgett spadgett added this to the v4.7 milestone Dec 9, 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. component/dev-console Related to dev-console component/knative Related to knative-plugin component/shared Related to console-shared lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants