aws_eks: no matches for kind "CronJob" in v ersion "batch/v1beta1"\n' #25027
Labels
@aws-cdk/aws-eks
Related to Amazon Elastic Kubernetes Service
bug
This issue is a bug.
duplicate
This issue is a duplicate.
Describe the bug
On deploying karpenter using cdk-eks-karpenter
it is failing.
Expected Behavior
It should work as expected.
Current Behavior
Failure -
Received response status [FAILED] from custom resource. Message returned: Error: b'configmap/aws-auth configured\nerror: error retrieving RESTMappings to prune: invalid resource batch/v1beta1, Kind=CronJob, Namespaced=true: no matches for kind "CronJob" in version "batch/v1beta1"\n' Logs: /aws/lambda/MyEksBlueprintStack-awscdkawseksKu-Handler886CB40B-ni5iL3nrGKLh at invokeUserFunction (/var/task/framework.js:2:6) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async onEvent (/var/task/framework.js:1:369) at async Runtime.handler (/var/task/cfn-response.js:1:1573) (RequestId: 3e005095-b49f-4135-9dac-d561dd7d1528)
Reproduction Steps
Possible Solution
Remove CronJob from v1.25 since it is deprecated
Additional Information/Context
https://kubernetes.io/docs/reference/using-api/deprecation-guide/#cronjob-v125
CDK CLI Version
2.73.0
Framework Version
No response
Node.js Version
19.7.0
OS
macOS
Language
Python
Language Version
3.11.1
Other information
Kubernetes v1.25
cdk-eks-karpenter>=0.0.27
aws-cdk-lib==2.73.0
The text was updated successfully, but these errors were encountered: