forked from argoproj/argo-rollouts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use actual weight from status field on rollout object (argoproj#…
…1937) fix: Use actual weight from status field on rollout object (argoproj#1937) Signed-off-by: zachaller <[email protected]> Signed-off-by: Juan Enciso <[email protected]>
- Loading branch information
Showing
4 changed files
with
213 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96 changes: 96 additions & 0 deletions
96
pkg/kubectl-argo-rollouts/info/testdata/canary/canary-rollout5.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Rollout | ||
metadata: | ||
annotations: | ||
rollout.argoproj.io/revision: "31" | ||
creationTimestamp: "2019-10-25T06:07:18Z" | ||
generation: 429 | ||
labels: | ||
app: canary-demo-weights | ||
app.kubernetes.io/instance: jesse-test | ||
name: canary-demo-weights | ||
namespace: jesse-test | ||
resourceVersion: "28253567" | ||
selfLink: /apis/argoproj.io/v1alpha1/namespaces/jesse-test/rollouts/canary-demo-weights | ||
uid: b350ba76-f6ed-11e9-a15b-42010aa80033 | ||
spec: | ||
progressDeadlineSeconds: 30 | ||
replicas: 5 | ||
revisionHistoryLimit: 3 | ||
selector: | ||
matchLabels: | ||
app: canary-demo-weights | ||
strategy: | ||
canary: | ||
canaryService: canary-demo-preview | ||
stableService: canary-demo-stable | ||
trafficRouting: | ||
smi: | ||
rootService: root-svc # optional | ||
trafficSplitName: rollout-example-traffic-split # optional | ||
steps: | ||
- setWeight: 20 | ||
- pause: {} | ||
- setWeight: 40 | ||
- pause: | ||
duration: 10s | ||
- setWeight: 60 | ||
- pause: | ||
duration: 10s | ||
- setWeight: 80 | ||
- pause: | ||
duration: 10s | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app: canary-demo-weights | ||
spec: | ||
containers: | ||
- image: argoproj/rollouts-demo:does-not-exist | ||
imagePullPolicy: Always | ||
name: canary-demo | ||
ports: | ||
- containerPort: 8080 | ||
name: http | ||
protocol: TCP | ||
resources: | ||
requests: | ||
cpu: 5m | ||
memory: 32Mi | ||
status: | ||
HPAReplicas: 6 | ||
availableReplicas: 5 | ||
blueGreen: {} | ||
canary: | ||
weights: | ||
canary: | ||
podTemplateHash: 868d98998a | ||
serviceName: canary-demo | ||
weight: 20 | ||
stable: | ||
podTemplateHash: 877894d5b | ||
serviceName: canary-demo | ||
weight: 60 | ||
stableRS: 877894d5b | ||
conditions: | ||
- lastTransitionTime: "2019-10-25T06:07:29Z" | ||
lastUpdateTime: "2019-10-25T06:07:29Z" | ||
message: Rollout has minimum availability | ||
reason: AvailableReason | ||
status: "True" | ||
type: Available | ||
- lastTransitionTime: "2019-10-28T04:52:55Z" | ||
lastUpdateTime: "2019-10-28T04:52:55Z" | ||
message: ReplicaSet "canary-demo-65fb5ffc84" has timed out progressing. | ||
reason: ProgressDeadlineExceeded | ||
status: "False" | ||
type: Progressing | ||
currentPodHash: 65fb5ffc84 | ||
currentStepHash: f64cdc9d | ||
currentStepIndex: 0 | ||
observedGeneration: "429" | ||
readyReplicas: 5 | ||
replicas: 6 | ||
selector: app=canary-demo-weights | ||
updatedReplicas: 1 |
87 changes: 87 additions & 0 deletions
87
pkg/kubectl-argo-rollouts/info/testdata/canary/canary-rollout6.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Rollout | ||
metadata: | ||
annotations: | ||
rollout.argoproj.io/revision: "31" | ||
creationTimestamp: "2019-10-25T06:07:18Z" | ||
generation: 429 | ||
labels: | ||
app: canary-demo-weights-na | ||
app.kubernetes.io/instance: jesse-test | ||
name: canary-demo-weights-na | ||
namespace: jesse-test | ||
resourceVersion: "28253567" | ||
selfLink: /apis/argoproj.io/v1alpha1/namespaces/jesse-test/rollouts/canary-demo-weights-na | ||
uid: b350ba76-f6ed-11e9-a15b-42010aa80033 | ||
spec: | ||
progressDeadlineSeconds: 30 | ||
replicas: 5 | ||
revisionHistoryLimit: 3 | ||
selector: | ||
matchLabels: | ||
app: canary-demo-weights-na | ||
strategy: | ||
canary: | ||
canaryService: canary-demo-preview | ||
stableService: canary-demo-stable | ||
trafficRouting: | ||
smi: | ||
rootService: root-svc # optional | ||
trafficSplitName: rollout-example-traffic-split # optional | ||
steps: | ||
- setWeight: 20 | ||
- pause: {} | ||
- setWeight: 40 | ||
- pause: | ||
duration: 10s | ||
- setWeight: 60 | ||
- pause: | ||
duration: 10s | ||
- setWeight: 80 | ||
- pause: | ||
duration: 10s | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app: canary-demo-weights-na | ||
spec: | ||
containers: | ||
- image: argoproj/rollouts-demo:does-not-exist | ||
imagePullPolicy: Always | ||
name: canary-demo | ||
ports: | ||
- containerPort: 8080 | ||
name: http | ||
protocol: TCP | ||
resources: | ||
requests: | ||
cpu: 5m | ||
memory: 32Mi | ||
status: | ||
HPAReplicas: 6 | ||
availableReplicas: 5 | ||
blueGreen: {} | ||
canary: {} | ||
stableRS: 877894d5b | ||
conditions: | ||
- lastTransitionTime: "2019-10-25T06:07:29Z" | ||
lastUpdateTime: "2019-10-25T06:07:29Z" | ||
message: Rollout has minimum availability | ||
reason: AvailableReason | ||
status: "True" | ||
type: Available | ||
- lastTransitionTime: "2019-10-28T04:52:55Z" | ||
lastUpdateTime: "2019-10-28T04:52:55Z" | ||
message: ReplicaSet "canary-demo-65fb5ffc84" has timed out progressing. | ||
reason: ProgressDeadlineExceeded | ||
status: "False" | ||
type: Progressing | ||
currentPodHash: 65fb5ffc84 | ||
currentStepHash: f64cdc9d | ||
currentStepIndex: 0 | ||
observedGeneration: "429" | ||
readyReplicas: 5 | ||
replicas: 6 | ||
selector: app=canary-demo-weights-na | ||
updatedReplicas: 1 |