Traffic split annotations - canary deployment

This commit is contained in:
Vidya Reddy
2022-07-18 16:20:06 +05:30
parent 9f25026d56
commit 0e57c19ffe
5 changed files with 13 additions and 8 deletions
+3 -2
View File
@@ -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',