Skip to content

Commit 2daf974

Browse files
committed
add toLowerCase to plural name
This is added to avoid an exception within the fabric8 code which will reject names with upper case characters.
1 parent f4d4fcd commit 2daf974

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/io/radanalytics/operator/common/crd/CrdDeployer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ public static CustomResourceDefinition initCrds(KubernetesClient client,
6868
}
6969

7070
private static CustomResourceDefinitionFluent.SpecNested<CustomResourceDefinitionBuilder> getCRDBuilder(String prefix, String entityName) {
71-
final String plural = entityName + "s";
71+
// plural name must be all lowercase otherwise fabric8 will barf
72+
final String plural = (entityName + "s").toLowerCase();
7273
return new CustomResourceDefinitionBuilder()
7374
.withApiVersion("apiextensions.k8s.io/v1beta1")
7475
.withNewMetadata().withName(plural + "." + prefix)

0 commit comments

Comments
 (0)