Skip to content

Commit 97e45fc

Browse files
authored
docs: v5.0.0 related fixes from beta feedback (#2638)
Signed-off-by: Attila Mészáros <[email protected]>
1 parent af31764 commit 97e45fc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/content/en/blog/releases/v5-release.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Such an informer behaves exactly as a regular one. Owner references won't work i
5555
specify a `SecondaryToPrimaryMapper` (probably based on labels or annotations).
5656

5757
See related integration
58-
test [here](https://github.com/operator-framework/java-operator-sdk/tree/1635c9ea338f8e89bacc547808d2b409de8734cf/operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/informerremotecluster)
58+
test [here](https://github.com/operator-framework/java-operator-sdk/tree/main/operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/informerremotecluster)
5959

6060
#### SecondaryToPrimaryMapper now checks resource types
6161

docs/content/en/docs/features/_index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ public class WebappReconciler
473473
@Override
474474
public Map<String, EventSource> prepareEventSources(EventSourceContext<Webapp> context) {
475475
InformerConfiguration<Tomcat> configuration =
476-
InformerConfiguration.from(Tomcat.class, context)
476+
InformerEventSourceConfiguration.from(Tomcat.class, Tomcat.class)
477477
.withSecondaryToPrimaryMapper(webappsMatchingTomcatName)
478478
.withPrimaryToSecondaryMapper(
479479
(Webapp primary) -> Set.of(new ResourceID(primary.getSpec().getTomcat(),
@@ -672,7 +672,7 @@ public class MyReconciler implements Reconciler<TestCustomResource> {
672672
EventSourceContext<ChangeNamespaceTestCustomResource> context) {
673673

674674
InformerEventSource<ConfigMap, TestCustomResource> configMapES =
675-
new InformerEventSource<>(InformerConfiguration.from(ConfigMap.class)
675+
new InformerEventSource<>(InformerEventSourceConfiguration.from(ConfigMap.class, TestCustomResource.class)
676676
.withNamespacesInheritedFromController(context)
677677
.build(), context);
678678

docs/content/en/docs/workflows/_index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ public class SampleWorkflowReconciler implements Reconciler<WorkflowAllFeatureCu
115115

116116
resource.getStatus()
117117
.setReady(
118-
context.managedDependentResourceContext() // accessing workflow reconciliation results
119-
.getWorkflowReconcileResult().orElseThrow()
118+
context.managedWorkflowAndDependentResourceContext() // accessing workflow reconciliation results
119+
.getWorkflowReconcileResult()
120120
.allDependentResourcesReady());
121121
return UpdateControl.patchStatus(resource);
122122
}

0 commit comments

Comments
 (0)