-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1399 from sgratch/merge-main-to-2-7-branch
Merge main to 2 7 branch
- Loading branch information
Showing
218 changed files
with
14,805 additions
and
33,221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,12 +18,12 @@ Forklift console plugin is managed by Migration Toolkit for Virtualization opera | |
|
||
## Installation | ||
|
||
To get started, clone the repo to your development workstation and install the required dependencies locally with NPM. | ||
To get started, clone the repo to your development workstation and install the required dependencies locally with yarn. | ||
|
||
``` bash | ||
git clone https://github.com/kubev2v/forklift-console-plugin.git | ||
cd forklift-console-plugin | ||
npm install | ||
yarn install | ||
``` | ||
|
||
## Quick start | ||
|
@@ -38,33 +38,46 @@ With a user logged in to existing Kubernetes or Openshift environment with Forkl | |
# for example: | ||
# export INVENTORY_SERVER_HOST=https://virt-konveyor-forklift.apps.example.com | ||
# - To close the console server run: | ||
# npm run console:stop | ||
# yarn console:stop | ||
|
||
# Setting the console image and forklift setvice URLs as enviorment variables: | ||
# Setting the console image and forklift service URLs as environment variables: | ||
# | ||
# Note: default values works with the local development cluster, you can create using the CI. | ||
# set this variables if you use a different cluster. | ||
export INVENTORY_SERVER_HOST=https://virt-konveyor-forklift.apps.<your caluster address> | ||
export SERVICES_API_SERVER_HOST=https://virt-konveyor-forklift.apps.<your caluster address> | ||
export CONSOLE_IMAGE=quay.io/openshift/origin-console:4.15 | ||
export INVENTORY_SERVER_HOST=https://virt-konveyor-forklift.apps.<your cluster address> | ||
export SERVICES_API_SERVER_HOST=https://virt-konveyor-forklift.apps.<your cluster address> | ||
export CONSOLE_IMAGE=quay.io/openshift/origin-console:4.18 | ||
|
||
# Run the web console locally (uses the enviorment variables we defined above) | ||
npm run console | ||
yarn console | ||
|
||
# If this is the first time running, npm run build will build the required dependencies | ||
npm run build | ||
# If this is the first time running, yarn build will build the required dependencies | ||
yarn build | ||
|
||
# Start the plugin in development mode | ||
npm run start | ||
yarn start | ||
``` | ||
|
||
#### How to find the cluster address | ||
|
||
The cluster address will be the part of the address after the `apps.` or `api.` in the cluster services or API service address. | ||
|
||
For example, if your cluter API address is `api.example.com:6443`, the cluster address will be `example.com`, and | ||
the inventory service address will be: | ||
|
||
``` bash | ||
export INVENTORY_SERVER_HOST=https://virt-konveyor-forklift.apps.example.com | ||
``` | ||
|
||
Note: use this method to find the inventory and services address when using an Openshift cluster, when using K8s use the inventory service address. | ||
|
||
## Setup a local cluster for development | ||
|
||
Forklift console plugin requires the user to be logged into an openshift or kubernetes cluster, if you do not have access to one, you can setup your own using [Openshift local]( https://developers.redhat.com/products/openshift-local/overview) or use the CI script to build a local [KinD](https://sigs.k8s.io/kind) cluster. | ||
|
||
``` bash | ||
# Setup a kind cluster with Forklift operator and an OKD web console | ||
npm run cluster:up | ||
yarn cluster:up | ||
|
||
# Example: setup a local KinD cluster with ovirt mock provider | ||
# [ options: --with-all-providers --with-ovirt-provider, --with-vmware-provider, --with-openstack-provider] | ||
|
@@ -73,10 +86,10 @@ npm run cluster:up | |
# Note II: mock providers requires NFS server running, look at forkliftci documentation for more details. | ||
# See: forkliftci/cluster/providers/utils/install_nfs.sh | ||
git clone [email protected]:kubev2v/forkliftci.git ./ci/forkliftci | ||
npm run cluster:up -- --with-ovirt-provider | ||
yarn cluster:up -- --with-ovirt-provider | ||
|
||
# run cleanup to stop and delete the cluster. | ||
npm run cluster:delete | ||
yarn cluster:delete | ||
``` | ||
|
||
## Learn more | ||
|
@@ -88,6 +101,6 @@ More documentation is available in the [docs](./docs) directory. | |
| [Forklift](https://github.com/kubev2v/forklift/) | Migration toolkit for virtualization | | ||
| [Openshift web console](https://github.com/openshift/console) | Openshift web console is a web based user interface for Openshift. | | ||
| [OpenShift Dynamic Plugin SDK](https://github.com/openshift/dynamic-plugin-sdk) | Dynamic plugin SDK for Openshift user interfaces. | | ||
| [Forklift documentation](https://github.com/kubev2v/forklift-documentation) | Usage documentation for the migration toolkit for viertualization. | | ||
| [Forklict CI](https://github.com/kubev2v/forkliftci) | Collection of scripts and tools used in forklict development. | | ||
| [Forklift documentation](https://github.com/kubev2v/forklift-documentation) | Usage documentation for the migration toolkit for virtualization. | | ||
| [Forklift CI](https://github.com/kubev2v/forkliftci) | Collection of scripts and tools used in forklift development. | | ||
| [Patternfly](https://www.patternfly.org/) | Open source design system used for Openshift user interfaces development. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Local NFS server for forklift CI tasks | ||
|
||
Some forklift CI tasks require an NFS server running on the localhost exporting the directory /home/nfsshare, | ||
to set up this NFS server on fedora, see the bash example below: | ||
|
||
``` bash | ||
sudo dnf install nfs-utils -y | ||
|
||
sudo mkdir -p /home/nfsshare | ||
sudo chown -R nobody:nobody /home/nfsshare | ||
sudo chmod 777 /home/nfsshare | ||
sudo bash -c 'echo "/home/nfsshare *(insecure,rw,no_root_squash)" >>/etc/exports' | ||
sudo exportfs -a | ||
|
||
sudo systemctl restart nfs-server | ||
``` |
Oops, something went wrong.