Add support for ScaledJob (#436)

* Added ScaledJob support

* Fixed getReplicaCount error

* Fixed file length error in fileUtils.test.ts

* Adjust scaledJob spec path

* Made updateImagesInK8sObj more concise
This commit is contained in:
benjamin
2025-07-17 13:21:46 -04:00
committed by GitHub
parent 7a954ab84c
commit 4755eabeba
8 changed files with 256 additions and 104 deletions
+3 -1
View File
@@ -21,6 +21,7 @@ describe('Kubernetes types', () => {
expect(KubernetesWorkload.DAEMON_SET).toBe('DaemonSet')
expect(KubernetesWorkload.JOB).toBe('job')
expect(KubernetesWorkload.CRON_JOB).toBe('cronjob')
expect(KubernetesWorkload.SCALED_JOB).toBe('scaledjob')
})
it('contains discovery and load balancer resources', () => {
@@ -53,7 +54,8 @@ describe('Kubernetes types', () => {
'pod',
'statefulset',
'job',
'cronjob'
'cronjob',
'scaledjob'
]
expect(expected.every((val) => WORKLOAD_TYPES.includes(val))).toBe(true)
})