Skip to content

Commit 9b2dcf2

Browse files
openshift-cherrypick-robotGerry-Fordelinfraze
authored
[main] RHIDP-5605 - Plugin installation documentation improvement for adding 'forceDownload' field (redhat-developer#996)
* RHIDP-5605 - Plugin installation documentation improvement for adding 'forceDownload' field * Update modules/dynamic-plugins/con-dynamic-plugins-cache.adoc Co-authored-by: Lindsey Frazier <[email protected]> * Update modules/dynamic-plugins/con-dynamic-plugins-cache.adoc Co-authored-by: Lindsey Frazier <[email protected]> * Update modules/dynamic-plugins/con-dynamic-plugins-cache.adoc Co-authored-by: Lindsey Frazier <[email protected]> * Update modules/dynamic-plugins/con-dynamic-plugins-cache.adoc Co-authored-by: Lindsey Frazier <[email protected]> * RHIDP-5605 - Plugin installation documentation improvement for adding 'forceDownload' field --------- Co-authored-by: Gerry-Forde <[email protected]> Co-authored-by: Gerry-Forde <[email protected]> Co-authored-by: Lindsey Frazier <[email protected]>
1 parent 79f1ead commit 9b2dcf2

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

modules/dynamic-plugins/con-dynamic-plugins-cache.adoc

+13-3
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,24 @@ Future versions of the {product-very-short} operator are planned to automaticall
5555
====
5656

5757
== Configuring the dynamic plugins cache
58-
You can set the following optional dynamic plugin cache parameters:
58+
You can set the following optional dynamic plugin cache parameters in your `dynamic-plugins.yaml` file:
5959

60-
* `forceDownload`: Set to `true` to force a reinstall of the plugin, bypassing the cache. Default is `false`. For example, modify your `dynamic-plugins.yaml` file as follows:
60+
* `forceDownload`: Set the value to `true` to force a reinstall of the plugin, bypassing the cache. The default value is `false`.
61+
62+
* `pullPolicy`: Similar to the `forceDownload` parameter and is consistent with other image container platforms. You can use one of the following values for this key:
63+
64+
** `Always`: This value compares the image digest in the remote registry and downloads the artifact if it has changed, even if the plugin was previously downloaded.
65+
** `IfNotPresent`: This value downloads the artifact if it is not already present in the dynamic-plugins-root folder, without checking image digests.
6166
+
67+
[NOTE]
68+
The `pullPolicy` setting is also applied to the NPM downloading method, although `Always` will download the remote artifact without a digest check. The existing `forceDownload` option remains functional, however, the `pullPolicy` option takes precedence. The `forceDownload` option may be deprecated in a future {product-short} release.
69+
70+
.Example `dynamic-plugins.yaml` file configuration to download the remote artifact without a digest check:
71+
6272
[source,yaml]
6373
----
6474
plugins:
6575
- disabled: false
66-
forceDownload: true
76+
pullPolicy: Always
6777
package: 'oci://quay.io/example-org/example-plugin:v1.0.0!internal-backstage-plugin-example'
6878
----

modules/dynamic-plugins/con-install-dynamic-plugin-helm.adoc

+15-5
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,25 @@
77
[id="con-install-dynamic-plugin-helm_{context}"]
88
= Installing dynamic plugins using the Helm chart
99

10-
You can deploy a {product-short} instance using a Helm chart, which is a flexible installation method. With the Helm chart, you can sideload dynamic plugins into your {product-short} instance without having to recompile your code or rebuild the container.
10+
You can deploy a {product-short} instance by using a Helm chart, which is a flexible installation method. With the Helm chart, you can sideload dynamic plugins into your {product-short} instance without having to recompile your code or rebuild the container.
1111

1212
To install dynamic plugins in {product-short} using Helm, add the following `global.dynamic` parameters in your Helm chart:
1313

14-
* `plugins`: the dynamic plugins list intended for installation. By default, the list is empty. You can populate the plugins list with the following fields:
15-
** `package`: a package specification for the dynamic plugin package that you want to install. You can use a package for either a local or an external dynamic plugin installation. For a local installation, use a path to the local folder containing the dynamic plugin. For an external installation, use a package specification from a public NPM repository.
16-
** `integrity` (required for external packages): an integrity checksum in the form of `<alg>-<digest>` specific to the package. Supported algorithms include `sha256`, `sha384` and `sha512`.
17-
** `pluginConfig`: an optional plugin-specific `app-config` YAML fragment. See plugin configuration for more information.
14+
* `plugins`: The dynamic plugins list intended for installation. By default, the list is empty. You can populate the plugins list with the following fields:
15+
** `package`: A package specification for the dynamic plugin package that you want to install. You can use a package for either a local or an external dynamic plugin installation. For a local installation, use a path to the local folder containing the dynamic plugin. For an external installation, use a package specification from a public NPM repository.
16+
** `integrity` (required for external packages): An integrity checksum in the form of `<alg>-<digest>` specific to the package. Supported algorithms include `sha256`, `sha384` and `sha512`.
17+
** `pluginConfig`: An optional plugin-specific `app-config` YAML fragment. See plugin configuration for more information.
1818
** `disabled`: disables the dynamic plugin if set to `true`. Default: `false`.
19+
** `forceDownload`: Set the value to `true` to force a reinstall of the plugin, bypassing the cache. The default value is `false`.
20+
21+
** `pullPolicy`: Similar to the `forceDownload` parameter and is consistent with other image container platforms. You can use one of the following values for this key:
22+
23+
*** `Always`: This value compares the image digest in the remote registry and downloads the artifact if it has changed, even if the plugin was previously downloaded.
24+
*** `IfNotPresent`: This value downloads the artifact if it is not already present in the dynamic-plugins-root folder, without checking image digests.
25+
+
26+
[NOTE]
27+
The `pullPolicy` setting is also applied to the NPM downloading method, although `Always` will download the remote artifact without a digest check. The existing `forceDownload` option remains functional, however, the `pullPolicy` option takes precedence. The `forceDownload` option may be deprecated in a future {product-short} release.
28+
1929
* `includes`: a list of YAML files utilizing the same syntax.
2030
2131
[NOTE]

0 commit comments

Comments
 (0)