mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-24 21:50:00 +08:00
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:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user