Use JDK17 features to simplify code with multiline strings (#27495)
Closes #27494 Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
This commit is contained in:
parent
6851f14401
commit
bba701437f
2 changed files with 51 additions and 48 deletions
|
@ -17,9 +17,9 @@
|
||||||
<properties>
|
<properties>
|
||||||
<compiler-plugin.version>3.8.1</compiler-plugin.version>
|
<compiler-plugin.version>3.8.1</compiler-plugin.version>
|
||||||
<maven.compiler.parameters>true</maven.compiler.parameters>
|
<maven.compiler.parameters>true</maven.compiler.parameters>
|
||||||
<maven.compiler.release>11</maven.compiler.release>
|
<maven.compiler.release>17</maven.compiler.release>
|
||||||
<maven.compiler.source>11</maven.compiler.source>
|
<maven.compiler.source>17</maven.compiler.source>
|
||||||
<maven.compiler.target>11</maven.compiler.target>
|
<maven.compiler.target>17</maven.compiler.target>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
<quarkus.container-image.group>keycloak</quarkus.container-image.group>
|
<quarkus.container-image.group>keycloak</quarkus.container-image.group>
|
||||||
|
|
|
@ -77,43 +77,44 @@ import io.quarkiverse.operatorsdk.annotations.SharedCSVMetadata;
|
||||||
capabilities = "Deep Insights",
|
capabilities = "Deep Insights",
|
||||||
categories = "Security",
|
categories = "Security",
|
||||||
certified = false,
|
certified = false,
|
||||||
// language=JSON
|
|
||||||
almExamples =
|
almExamples =
|
||||||
"[\n" +
|
// language=JSON
|
||||||
" {\n" +
|
"""
|
||||||
" \"apiVersion\": \"k8s.keycloak.org/v2alpha1\",\n" +
|
[
|
||||||
" \"kind\": \"Keycloak\",\n" +
|
{
|
||||||
" \"metadata\": {\n" +
|
"apiVersion": "k8s.keycloak.org/v2alpha1",
|
||||||
" \"name\": \"example-keycloak\",\n" +
|
"kind": "Keycloak",
|
||||||
" \"labels\": {\n" +
|
"metadata": {
|
||||||
" \"app\": \"sso\"\n" +
|
"name": "example-keycloak",
|
||||||
" }\n" +
|
"labels": {
|
||||||
" },\n" +
|
"app": "sso"
|
||||||
" \"spec\": {\n" +
|
}
|
||||||
" \"instances\": 1,\n" +
|
},
|
||||||
" \"hostname\": {\n" +
|
"spec": {
|
||||||
" \"hostname\": \"example.org\"\n" +
|
"instances": 1,
|
||||||
" },\n" +
|
"hostname": {
|
||||||
" \"http\": {\n" +
|
"hostname": "example.org"
|
||||||
" \"tlsSecret\": \"my-tls-secret\"\n" +
|
},
|
||||||
" }\n" +
|
"http": {
|
||||||
" }\n" +
|
"tlsSecret": "my-tls-secret"
|
||||||
" },\n" +
|
}
|
||||||
" {\n" +
|
}
|
||||||
" \"apiVersion\": \"k8s.keycloak.org/v2alpha1\",\n" +
|
},
|
||||||
" \"kind\": \"KeycloakRealmImport\",\n" +
|
{
|
||||||
" \"metadata\": {\n" +
|
"apiVersion": "k8s.keycloak.org/v2alpha1",
|
||||||
" \"name\": \"example-keycloak-realm-import\",\n" +
|
"kind": "KeycloakRealmImport",
|
||||||
" \"labels\": {\n" +
|
"metadata": {
|
||||||
" \"app\": \"sso\"\n" +
|
"name": "example-keycloak-realm-import",
|
||||||
" }\n" +
|
"labels": {
|
||||||
" },\n" +
|
"app": "sso"
|
||||||
" \"spec\": {\n" +
|
}
|
||||||
" \"keycloakCRName\": \"example-keycloak\",\n" +
|
},
|
||||||
" \"realm\": {}\n" +
|
"spec": {
|
||||||
" }\n" +
|
"keycloakCRName": "example-keycloak",
|
||||||
" }\n" +
|
"realm": {}
|
||||||
"]",
|
}
|
||||||
|
}
|
||||||
|
]""",
|
||||||
others = {
|
others = {
|
||||||
@CSVMetadata.Annotations.Annotation(
|
@CSVMetadata.Annotations.Annotation(
|
||||||
name = "support",
|
name = "support",
|
||||||
|
@ -126,15 +127,17 @@ import io.quarkiverse.operatorsdk.annotations.SharedCSVMetadata;
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
description =
|
description =
|
||||||
"A Kubernetes Operator based on the Operator SDK for installing and managing Keycloak.\n" +
|
"""
|
||||||
"\n" +
|
A Kubernetes Operator based on the Operator SDK for installing and managing Keycloak.
|
||||||
"Keycloak lets you add authentication to applications and secure services with minimum fuss. No need to deal with storing users or authenticating users. It's all available out of the box.\n" +
|
|
||||||
"\n" +
|
Keycloak lets you add authentication to applications and secure services with minimum fuss. No need to deal with storing users or authenticating users. It's all available out of the box.
|
||||||
"The operator can deploy and manage Keycloak instances on Kubernetes and OpenShift.\n" +
|
|
||||||
"The following features are supported:\n" +
|
The operator can deploy and manage Keycloak instances on Kubernetes and OpenShift.
|
||||||
"\n" +
|
The following features are supported:
|
||||||
"* Install Keycloak to a namespace\n" +
|
|
||||||
"* Import Keycloak Realms\n",
|
* Install Keycloak to a namespace
|
||||||
|
* Import Keycloak Realms
|
||||||
|
""",
|
||||||
icon = @CSVMetadata.Icon(
|
icon = @CSVMetadata.Icon(
|
||||||
fileName = "KeycloakController.icon.png",
|
fileName = "KeycloakController.icon.png",
|
||||||
mediatype = "image/png"
|
mediatype = "image/png"
|
||||||
|
|
Loading…
Reference in a new issue