mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-04-16 03:22:18 +08:00
Added Traffic split annotations
This commit is contained in:
parent
19d66d6bdb
commit
00f71d4310
@ -127,7 +127,8 @@ let trafficSplitAPIVersion = ''
|
|||||||
async function createTrafficSplitObject(
|
async function createTrafficSplitObject(
|
||||||
kubectl: Kubectl,
|
kubectl: Kubectl,
|
||||||
name: string,
|
name: string,
|
||||||
nextLabel: string
|
nextLabel: string,
|
||||||
|
annotations: {[key: string]: string} = {}
|
||||||
): Promise<any> {
|
): Promise<any> {
|
||||||
// cache traffic split api version
|
// cache traffic split api version
|
||||||
if (!trafficSplitAPIVersion)
|
if (!trafficSplitAPIVersion)
|
||||||
@ -145,7 +146,8 @@ async function createTrafficSplitObject(
|
|||||||
apiVersion: trafficSplitAPIVersion,
|
apiVersion: trafficSplitAPIVersion,
|
||||||
kind: 'TrafficSplit',
|
kind: 'TrafficSplit',
|
||||||
metadata: {
|
metadata: {
|
||||||
name: getBlueGreenResourceName(name, TRAFFIC_SPLIT_OBJECT_NAME_SUFFIX)
|
name: getBlueGreenResourceName(name, TRAFFIC_SPLIT_OBJECT_NAME_SUFFIX),
|
||||||
|
annotations: annotations
|
||||||
},
|
},
|
||||||
spec: {
|
spec: {
|
||||||
service: name,
|
service: name,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user