Skip to content

Commit 70038a6

Browse files
committed
fix: use namespaced constant to avoid potential conflicts
Signed-off-by: Chris Laprun <[email protected]>
1 parent 108cb82 commit 70038a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/ResourceIDMapper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ public interface ResourceIDMapper<R, ID> {
4646
* @param <R> secondary resource type
4747
*/
4848
static <R> ResourceIDMapper<R, String> singleResourceResourceIDMapper() {
49-
return r -> "id";
49+
return r -> "josdk:mapper:id";
5050
}
5151

52+
@SuppressWarnings({"rawtypes", "unchecked"})
5253
static <R, ID> ResourceIDMapper<R, ID> resourceIdProviderMapper() {
5354
return r -> {
5455
if (r instanceof ResourceIDProvider resourceIDProvider) {

0 commit comments

Comments
 (0)