{"record":{"id":"b2dc78a6b417ee60","repo":"quarkusio/quarkus","slug":"could-not-find-deploymentresourcekind-for","errorCode":null,"errorMessage":"Could not find DeploymentResourceKind for ","messagePattern":"Could not find DeploymentResourceKind for ","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/DeploymentResourceKind.java","lineNumber":59,"sourceCode":"        this(kind, group, version, Set.of(requiredTargets));\n    }\n\n    DeploymentResourceKind(String kind, String group, String version, Set<String> requiredTargets) {\n        this.kind = kind;\n        this.group = group;\n        this.version = version;\n        this.requiredTargets = requiredTargets;\n    }\n\n    public static DeploymentResourceKind find(String apiGroup, String apiVersion, String kind) {\n        for (DeploymentResourceKind deploymentResourceKind : DeploymentResourceKind.values()) {\n            if (deploymentResourceKind.kind.equals(kind) && deploymentResourceKind.group.equals(apiGroup)\n                    && deploymentResourceKind.version.equals(apiVersion)) {\n                return deploymentResourceKind;\n            }\n        }\n        String apiGroupVersion = Strings.isNullOrEmpty(apiGroup) ? apiVersion : apiGroup + \"/\" + apiVersion;\n        throw new IllegalArgumentException(\"Could not find DeploymentResourceKind for \" + apiGroupVersion + \" \" + kind);\n    }\n\n    public boolean isAvailalbleOn(String target) {\n        return requiredTargets.isEmpty() || requiredTargets.contains(target);\n    }\n\n    public boolean matches(HasMetadata resource) {\n        String resourceKind = HasMetadata.getKind(resource.getClass());\n        String resourceVersion = HasMetadata.getApiVersion(resource.getClass());\n        return resourceKind.equals(getKind()) && resourceVersion.equals(getApiVersion());\n    }\n\n    public String getKind() {\n        return kind;\n    }\n\n    public String getGroup() {\n        return group;","sourceCodeStart":41,"sourceCodeEnd":77,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/DeploymentResourceKind.java#L41-L77","documentation":"DeploymentResourceKind.find maps an (apiGroup, apiVersion, kind) triple to a known enum constant for Kubernetes deployment resources (Deployment, StatefulSet, etc.). If no constant matches the requested group/version/kind, it throws IllegalArgumentException including the apiGroupVersion and kind.","triggerScenarios":"Requesting a deployment resource kind via quarkus.kubernetes.deployment.kind (or config in KubernetesConfig) whose group/version/kind is not one of the supported DeploymentResourceKind values.","commonSituations":"Typo in deployment.kind; targeting a resource kind not supported (e.g. 'ArgoCD' or 'Rollout'); version mismatch such as apps/v1beta1 instead of apps/v1.","solutions":["Set quarkus.kubernetes.deployment.kind to a supported value: Deployment, StatefulSet, DaemonSet, or Job","Fix typos and use the correct API version, e.g. apps/v1","Check DeploymentResourceKind's supported values in the Quarkus version you are using — newer kinds require newer Quarkus"],"exampleFix":"// before\nquarkus.kubernetes.deployment.kind=DeploymentEXT\n// after\nquarkus.kubernetes.deployment.kind=Deployment","handlingStrategy":"validation","validationCode":"Set<String> allowed = Set.of(\"Deployment\",\"StatefulSet\",\"DaemonSet\",\"Job\");\nif (!allowed.contains(configKind)) throw new IllegalArgumentException(\"unsupported kind: \" + configKind);","typeGuard":"static boolean isSupportedKind(String kind) {\n    for (DeploymentResourceKind k : DeploymentResourceKind.values()) {\n        if (k.name().equalsIgnoreCase(kind)) return true;\n    }\n    return false;\n}","tryCatchPattern":null,"preventionTips":["Only use kinds documented for quarkus.kubernetes.deployment.kind","Prefer apps/v1 group/version","Check DeploymentResourceKind values in your Quarkus version before configuring custom kinds"],"tags":["kubernetes","config","deployment-kind"],"backgroundTag":"unsupported-resource-kind","analyzedSha":"e1c734241f34c7919086ceb4c9262b4a58f6de44","analyzedAt":"2026-09-05T17:01:29.979Z","contentChangedAt":"2026-09-05T17:01:29.979Z","schemaVersion":2},"datasetVersion":"2026-09-12T22:17:10.623Z"}