mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-25 14:09:27 +08:00
Traffic split annotations - canary deployment
This commit is contained in:
@@ -289,12 +289,13 @@ describe('Kubectl class', () => {
|
||||
it('gets resource', async () => {
|
||||
const resourceType = 'type'
|
||||
const name = 'name'
|
||||
expect(await kubectl.getResource(resourceType, name)).toBe(execReturn)
|
||||
const annotations: {[key: string] : string} = {}
|
||||
expect(await kubectl.getResource(resourceType, name, annotations)).toBe(execReturn)
|
||||
expect(exec.getExecOutput).toBeCalledWith(
|
||||
kubectlPath,
|
||||
[
|
||||
'get',
|
||||
`${resourceType}/${name}`,
|
||||
`${resourceType}/${name}/${annotations}`,
|
||||
'-o',
|
||||
'json',
|
||||
'--namespace',
|
||||
|
||||
Reference in New Issue
Block a user