This plugin for Openshift installs a tab in Projects -> < project name > to create and manage a Skupper Site.
- Openshift >= 4.15
- Skupper CRDs (from V2) installed
To install the dynamic plugin, follow these steps:
-
Authenticate with your cluster:, then run the following command in the directory containing your
manifest.yaml
file.kubectl apply -f manifest.yaml
-
Enable the plugin:
kubectl patch consoles.operator.openshift.io cluster --patch '{ "spec": { "plugins": ["openshift-site-plugin"] } }' --type=merge
Alternatively you can view the list of the enabled plugins by navigating from Administration → Cluster Settings → Configuration → Console operator.openshift.io → Console plugins or on the Overview page.
-
Install the necessary modules:
yarn install
-
Start the development server: Open a terminal and run:
yarn start
-
Launch the console development environment: Open another terminal window and execute:
yarn start-console
-
Access the plugin: Open your browser and go to localhost:9000. You will find the plugin tab under "Project" -> 'name of your Project'.
This plugin allows you to customize the tab name and all references to "Skupper" within the plugin. This is achieved using the SKUPPER_NAME
environment variable.
How to Customize:
-
Set the
SKUPPER_NAME
environment variable:To modify the name, prefix your
yarn start
or image build command withSKUPPER_NAME=<desired name>
The manifest.yaml
file references a Docker image that contains the plugin. To build and push your own customized Docker image, use the following command:
SKUPPER_NAME=<desired tab name> ./build-image.sh
Environment Variables Used by build-image.sh
:
The build-image.sh
script leverages several environment variables to configure the image build. Here's a breakdown of each variable:
-
PREFER_PODMAN
: Specifies whether to preferpodman
overdocker
for building the image.- Default:
0
(usesdocker
if available). Set to1
to force the script to usepodman
if it's installed.
- Default:
-
PUSH
: Determines whether to automatically push the built image to the container registry.- Default:
0
(does not push the image). Set to1
to push the image after building.
- Default:
-
TAG
: Defines the tag to apply to the Docker image.- Default:
latest
. You can use this to specify a version number (e.g.,1.0.0
).
- Default:
-
REGISTRY_ORG
: Specifies the organization or username in the container registry where the image will be pushed (ifPUSH
is set to1
).- Default:
skupper
. Change this to your own registry organization.
- Default:
-
SKUPPER_NAME
: Sets the name of the tab within the plugin and updates all references to "Skupper" in the code. See the "Customizing the Tab Name and Skupper References" section for more details.- Default:
""
(Empty String). If not provided, "Skupper" will be used as the default.
- Default: