Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,8 @@ default ExecutorServiceManager getExecutorServiceManager() {
*
* @return {@code true} if SSA should be used for dependent resources, {@code false} otherwise
* @since 4.4.0
*
* @return if SSA should be used for dependent resources
*/
default boolean ssaBasedCreateUpdateMatchForDependentResources() {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,13 @@ default Optional<R> getSecondaryResource(P primary) {
default Status getStatus() {
return Status.UNKNOWN;
}

default String name() {
return generateName(this);
}

static String generateName(EventSource eventSource) {
return eventSource.getClass().getName() + "@" + Integer.toHexString(eventSource.hashCode());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ public TestDependent(String name) {
super(ConfigMap.class, name);
}

@Override
protected Class<TestCustomResource> getPrimaryResourceType() {
return TestCustomResource.class;
}

@Override
public ReconcileResult<ConfigMap> reconcile(TestCustomResource primary,
Context<TestCustomResource> context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public ConfigMapDeleterBulkDependentResource() {
super(ConfigMap.class);
}

@Override
protected Class<BulkDependentTestCustomResource> getPrimaryResourceType() {
return BulkDependentTestCustomResource.class;
}

@Override
public Map<String, ConfigMap> desiredResources(BulkDependentTestCustomResource primary,
Context<BulkDependentTestCustomResource> context) {
Expand Down
Loading