You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOTE: If you have a Mac with Apple silicon, you will need to add the flag
219
-
`--platform=linux/amd64` when building the image to target the correct platform
220
-
to run in-cluster.
221
-
222
-
## Deployment on cluster
223
-
224
-
A [Helm](https://helm.sh) chart is available to deploy the plugin to an OpenShift environment.
225
-
226
-
The following Helm parameters are required:
227
-
228
-
`plugin.image`: The location of the image containing the plugin that was previously pushed
229
-
230
-
Additional parameters can be specified if desired. Consult the chart [values](charts/openshift-console-plugin/values.yaml) file for the full set of supported parameters.
231
-
232
-
### Installing the Helm Chart
233
-
234
-
Install the chart using the name of the plugin as the Helm release name into a new namespace or an existing namespace as specified by the `plugin_console-plugin-template` parameter and providing the location of the image within the `plugin.image` parameter by using the following command:
NOTE: When deploying on OpenShift 4.10, it is recommended to add the parameter `--set plugin.securityContext.enabled=false` which will omit configurations related to Pod Security.
241
-
242
-
NOTE: When defining i18n namespace, adhere `plugin__<name-of-the-plugin>` format. The name of the plugin should be extracted from the `consolePlugin` declaration within the [package.json](package.json) file.
243
-
244
-
## i18n
245
-
246
-
The plugin template demonstrates how you can translate messages in with [react-i18next](https://react.i18next.com/). The i18n namespace must match
247
-
the name of the `ConsolePlugin` resource with the `plugin__` prefix to avoid
248
-
naming conflicts. For example, the plugin template uses the
249
-
`plugin__cryostat-plugin` namespace. You can use the `useTranslation` hook
250
-
with this namespace as follows:
251
-
252
-
```tsx
253
-
consterHeader: React.FC= () => {
254
-
const { t } =useTranslation('plugin__cryostat-plugin');
255
-
return <h1>{t('Hello, World!')}</h1>;
256
-
};
257
-
```
258
-
259
-
For labels in `console-extensions.json`, you can use the format
260
-
`%plugin__cryostat-plugin~My Label%`. Console will replace the value with
261
-
the message for the current language from the `plugin__cryostat-plugin`
0 commit comments