Skip to content

Commit 13fc2c1

Browse files
authored
Merge pull request #277 from java-operator-sdk/controller-name-conflict
use full class name of the controller as name instead of simple name
2 parents c012114 + 130d0a4 commit 13fc2c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/ResourceController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ default String getName() {
5151
}
5252
}
5353

54-
// otherwise, use the lower-cased class name
55-
return clazz.getSimpleName().toLowerCase(Locale.ROOT);
54+
// otherwise, use the lower-cased full class name
55+
return clazz.getCanonicalName().toLowerCase(Locale.ROOT);
5656
}
5757
}

0 commit comments

Comments
 (0)