mirror of
https://github.com/keycloak/keycloak.git
synced 2026-10-23 19:29:23 +03:00
* fix: renaming the helm chart and adding a release note closes: #52089 Signed-off-by: Steve Hawkins <shawkins@redhat.com> * Refactor helm chart post-processing script Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Steven Hawkins <shawkins@redhat.com> --------- Signed-off-by: Steve Hawkins <shawkins@redhat.com> Signed-off-by: Steven Hawkins <shawkins@redhat.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
460 lines
18 KiB
XML
460 lines
18 KiB
XML
<?xml version="1.0"?>
|
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<artifactId>keycloak-parent</artifactId>
|
|
<groupId>org.keycloak</groupId>
|
|
<version>999.0.0-SNAPSHOT</version>
|
|
<relativePath>../pom.xml</relativePath>
|
|
</parent>
|
|
|
|
<name>Keycloak Operator</name>
|
|
<description>Keycloak Operator</description>
|
|
<artifactId>keycloak-operator</artifactId>
|
|
|
|
<properties>
|
|
<maven.compiler.parameters>true</maven.compiler.parameters>
|
|
<kc.quarkus.tests.groups>!invalid</kc.quarkus.tests.groups>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
<quarkus.container-image.group>keycloak</quarkus.container-image.group>
|
|
<quarkus.docker.build-args.KEYCLOAK_VERSION>${project.version}</quarkus.docker.build-args.KEYCLOAK_VERSION>
|
|
<quarkus.operator-sdk.generate-with-watched-namespaces>JOSDK_WATCH_CURRENT</quarkus.operator-sdk.generate-with-watched-namespaces>
|
|
<kustomize.namespace>keycloak</kustomize.namespace>
|
|
</properties>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>io.quarkus.platform</groupId>
|
|
<artifactId>quarkus-operator-sdk-bom</artifactId>
|
|
<version>${quarkus.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
|
|
<dependencies>
|
|
<!-- Sundrio -->
|
|
<dependency>
|
|
<groupId>io.sundr</groupId>
|
|
<artifactId>builder-annotations</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- Fabric8 -->
|
|
<dependency>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>crd-generator-api-v2</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>generator-annotations</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>kubernetes-junit-jupiter</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>openshift-model-monitoring</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- Helm chart generation -->
|
|
<dependency>
|
|
<groupId>io.quarkiverse.helm</groupId>
|
|
<artifactId>quarkus-helm</artifactId>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
|
|
<!-- Quarkus -->
|
|
<dependency>
|
|
<groupId>io.quarkiverse.operatorsdk</groupId>
|
|
<artifactId>quarkus-operator-sdk</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>io.vertx</groupId>
|
|
<artifactId>vertx-uri-template</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.quarkiverse.operatorsdk</groupId>
|
|
<artifactId>quarkus-operator-sdk-bundle-generator</artifactId>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-kubernetes-client</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>io.vertx</groupId>
|
|
<artifactId>vertx-uri-template</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>com.aayushatharva.brotli4j</groupId>
|
|
<artifactId>*</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-compress</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-openshift-client</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-container-image-docker</artifactId>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
|
|
<!-- Keycloak -->
|
|
<dependency>
|
|
<groupId>org.keycloak</groupId>
|
|
<artifactId>keycloak-core</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.keycloak</groupId>
|
|
<artifactId>keycloak-admin-client-internal</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.logging</groupId>
|
|
<artifactId>commons-logging-jboss-logging</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.keycloak</groupId>
|
|
<artifactId>keycloak-admin-v2-api</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Test -->
|
|
<dependency>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>kube-api-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>kube-api-test-client-inject</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-test-common</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-junit</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-junit-mockito</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-junit-component</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.assertj</groupId>
|
|
<artifactId>assertj-core</artifactId>
|
|
<version>${assertj-core.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.awaitility</groupId>
|
|
<artifactId>awaitility</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.rest-assured</groupId>
|
|
<artifactId>rest-assured</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-core</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-maven-plugin</artifactId>
|
|
<version>${quarkus.build.version}</version>
|
|
<extensions>true</extensions>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
<version>${version.enforcer.plugin}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>enforce-duplicate-classes</id>
|
|
<goals>
|
|
<goal>enforce</goal>
|
|
</goals>
|
|
<configuration>
|
|
<rules>
|
|
<!-- ensure that runtime isn't pulling in older common / core classes via
|
|
the admin client -->
|
|
<banDuplicateClasses>
|
|
<findAllDuplicates>false</findAllDuplicates>
|
|
<ignoreWhenIdentical>true</ignoreWhenIdentical>
|
|
<ignoredScopes>test</ignoredScopes>
|
|
<ignoreClasses>
|
|
<ignoreClass>module-info</ignoreClass>
|
|
</ignoreClasses>
|
|
</banDuplicateClasses>
|
|
</rules>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>extra-enforcer-rules</artifactId>
|
|
<version>${extra.enforcer.rules.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-maven-plugin</artifactId>
|
|
<extensions>true</extensions>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>build</goal>
|
|
</goals>
|
|
<configuration>
|
|
<properties>
|
|
<quarkus.package.jar.filter-optional-dependencies>true</quarkus.package.jar.filter-optional-dependencies>
|
|
</properties>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>list-crds</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<target>
|
|
<pathconvert pathsep="${line.separator} - " property="crds">
|
|
<map from="${project.basedir}/target/kubernetes/" to=""/>
|
|
<sort>
|
|
<fileset dir="${project.basedir}/target/kubernetes">
|
|
<include name="*k8s.keycloak.org-v1.yml"/>
|
|
</fileset>
|
|
</sort>
|
|
</pathconvert>
|
|
</target>
|
|
<exportAntProperties>true</exportAntProperties>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-resources</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${basedir}/target</outputDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main</directory>
|
|
<filtering>true</filtering>
|
|
<excludes>
|
|
<exclude>kubernetes/kubernetes.yml</exclude>
|
|
</excludes>
|
|
<includes>
|
|
<include>kubernetes/**</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>copy-ubi-null</id>
|
|
<phase>validate</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>${basedir}/../quarkus/container/</directory>
|
|
<includes>
|
|
<include>**/ubi-null.sh</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>add-source</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sources>
|
|
<source>${basedir}/target/generated-sources/java</source>
|
|
</sources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<configuration>
|
|
<compilerArgs>
|
|
<arg>-proc:full</arg> <!-- adding sundrio to annotationProcessorPaths doesn't play well with Fabric8 -->
|
|
</compilerArgs>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<executions>
|
|
<!--
|
|
need to run at "verify" to support testing with images (which are built at "package")
|
|
using surefire instead of failsafe to align with rest of the KC project
|
|
-->
|
|
<execution>
|
|
<id>default-test</id>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>test</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<systemPropertyVariables>
|
|
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
|
|
<!-- Used in KeycloakDeploymentTest#testPreconfiguredPodLabels -->
|
|
<OPERATOR_TEST_LABEL_EXPRESSION>my-value</OPERATOR_TEST_LABEL_EXPRESSION>
|
|
</systemPropertyVariables>
|
|
<groups>${kc.quarkus.tests.groups}</groups>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<executions>
|
|
<!-- Post-process the chart emitted by quarkus-helm: wrap the
|
|
generated CRDs in a {{ if .Values.crds.enabled }} guard. -->
|
|
<execution>
|
|
<id>post-process-helm-chart</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>${basedir}/scripts/post-process-helm-chart.sh</executable>
|
|
<arguments>
|
|
<argument>${project.build.directory}/helm/kubernetes/keycloak-operator-helm</argument>
|
|
</arguments>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>assemble-quarkus</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>assembly.xml</descriptor>
|
|
</descriptors>
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
<workDirectory>${project.build.directory}/assembly/work</workDirectory>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>assemble-bundle</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>olm-assembly.xml</descriptor>
|
|
</descriptors>
|
|
<appendAssemblyId>true</appendAssemblyId>
|
|
<workDirectory>${project.build.directory}/bundle-assembly/work</workDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>operator-prod</id>
|
|
<properties>
|
|
<quarkus.profile>rhbk</quarkus.profile>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>cluster-wide</id>
|
|
<properties>
|
|
<kustomize.namespace>keycloak-operator</kustomize.namespace>
|
|
<quarkus.operator-sdk.generate-with-watched-namespaces>JOSDK_ALL_NAMESPACES</quarkus.operator-sdk.generate-with-watched-namespaces>
|
|
</properties>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|