keycloak-scim/server_installation/topics/operator/extensions.adoc
2020-06-02 11:22:18 +02:00

41 lines
1.1 KiB
Text

[[_operator-extensions]]
=== Installing extensions and themes
You can use the operator to install extensions and themes that you need for your company or organization. The extension or theme can be anything that {project_name} can consume. For example, you can add a metrics extension. You add the extension or theme to the Keycloak custom resource.
.Example YAML file for a Keycloak custom resource
```yaml
apiVersion: keycloak.org/v1alpha1
kind: Keycloak
metadata:
name: example-keycloak
labels:
app: sso
spec:
instances: 1
extensions:
- <url_for_extension_or_theme>
externalAccess:
enabled: True
```
.Prerequisites
* You have a YAML file for the Keycloak custom resource.
* You have cluster-admin permission or an equivalent level of permissions granted by an administrator.
.Procedure
. Edit the YAML file for the Keycloak custom resource: `{create_cmd_brief} edit <cr-name>`
. Add a line called `extensions:` after the `instances` line.
. Add a URL to a JAR file for your custom extension or theme.
. Save the file.
The Operator downloads the extension or theme and installs it.