mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-04-14 18:42:20 +08:00
traffic split - canary deployment
This commit is contained in:
parent
b595866809
commit
9f25026d56
@ -288,7 +288,8 @@ async function getTrafficSplitObject(
|
|||||||
name: string,
|
name: string,
|
||||||
stableWeight: number,
|
stableWeight: number,
|
||||||
baselineWeight: number,
|
baselineWeight: number,
|
||||||
canaryWeight: number
|
canaryWeight: number,
|
||||||
|
annotations: {[key: string]: string} = {}
|
||||||
): Promise<string> {
|
): Promise<string> {
|
||||||
// cached version
|
// cached version
|
||||||
if (!trafficSplitAPIVersion) {
|
if (!trafficSplitAPIVersion) {
|
||||||
@ -301,7 +302,8 @@ async function getTrafficSplitObject(
|
|||||||
apiVersion: trafficSplitAPIVersion,
|
apiVersion: trafficSplitAPIVersion,
|
||||||
kind: 'TrafficSplit',
|
kind: 'TrafficSplit',
|
||||||
metadata: {
|
metadata: {
|
||||||
name: getTrafficSplitResourceName(name)
|
name: getTrafficSplitResourceName(name),
|
||||||
|
annotations: annotations
|
||||||
},
|
},
|
||||||
spec: {
|
spec: {
|
||||||
backends: [
|
backends: [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user