From 97e45fc9459cad78bac8a06f22567828f9c34d82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20M=C3=A9sz=C3=A1ros?= Date: Tue, 17 Dec 2024 15:25:01 +0100 Subject: [PATCH] docs: v5.0.0 related fixes from beta feedback (#2638) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Attila Mészáros --- docs/content/en/blog/releases/v5-release.md | 2 +- docs/content/en/docs/features/_index.md | 4 ++-- docs/content/en/docs/workflows/_index.md | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/content/en/blog/releases/v5-release.md b/docs/content/en/blog/releases/v5-release.md index 5177f0d5f9..aa41c38746 100644 --- a/docs/content/en/blog/releases/v5-release.md +++ b/docs/content/en/blog/releases/v5-release.md @@ -55,7 +55,7 @@ Such an informer behaves exactly as a regular one. Owner references won't work i specify a `SecondaryToPrimaryMapper` (probably based on labels or annotations). See related integration -test [here](https://github.com/operator-framework/java-operator-sdk/tree/1635c9ea338f8e89bacc547808d2b409de8734cf/operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/informerremotecluster) +test [here](https://github.com/operator-framework/java-operator-sdk/tree/main/operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/informerremotecluster) #### SecondaryToPrimaryMapper now checks resource types diff --git a/docs/content/en/docs/features/_index.md b/docs/content/en/docs/features/_index.md index c9201d5700..12528d3a7e 100644 --- a/docs/content/en/docs/features/_index.md +++ b/docs/content/en/docs/features/_index.md @@ -473,7 +473,7 @@ public class WebappReconciler @Override public Map prepareEventSources(EventSourceContext context) { InformerConfiguration configuration = - InformerConfiguration.from(Tomcat.class, context) + InformerEventSourceConfiguration.from(Tomcat.class, Tomcat.class) .withSecondaryToPrimaryMapper(webappsMatchingTomcatName) .withPrimaryToSecondaryMapper( (Webapp primary) -> Set.of(new ResourceID(primary.getSpec().getTomcat(), @@ -672,7 +672,7 @@ public class MyReconciler implements Reconciler { EventSourceContext context) { InformerEventSource configMapES = - new InformerEventSource<>(InformerConfiguration.from(ConfigMap.class) + new InformerEventSource<>(InformerEventSourceConfiguration.from(ConfigMap.class, TestCustomResource.class) .withNamespacesInheritedFromController(context) .build(), context); diff --git a/docs/content/en/docs/workflows/_index.md b/docs/content/en/docs/workflows/_index.md index 19b5fab104..620f8c5436 100644 --- a/docs/content/en/docs/workflows/_index.md +++ b/docs/content/en/docs/workflows/_index.md @@ -115,8 +115,8 @@ public class SampleWorkflowReconciler implements Reconciler