-
Notifications
You must be signed in to change notification settings - Fork 880
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: undo referenced object for workloadRef rollout (#1275)
Signed-off-by: Hui Kang <[email protected]>
- Loading branch information
Showing
9 changed files
with
256 additions
and
5 deletions.
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
26 changes: 26 additions & 0 deletions
26
pkg/kubectl-argo-rollouts/info/testdata/canary/canary-ref-deploy.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,26 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: canary-demo-deploy | ||
namespace: jesse-test | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: canary-demo-deploy | ||
replicas: 0 | ||
template: | ||
metadata: | ||
labels: | ||
app: canary-demo-deploy | ||
spec: | ||
containers: | ||
- name: canary-demo-deploy | ||
image: argoproj/rollouts-demo:red | ||
ports: | ||
- name: http | ||
containerPort: 8080 | ||
protocol: TCP | ||
resources: | ||
requests: | ||
memory: 32Mi | ||
cpu: 5m |
68 changes: 68 additions & 0 deletions
68
pkg/kubectl-argo-rollouts/info/testdata/canary/canary-rollout2.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,68 @@ | ||
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 | ||
app.kubernetes.io/instance: jesse-test | ||
name: canary-demo-workloadRef | ||
namespace: jesse-test | ||
resourceVersion: "28253567" | ||
selfLink: /apis/argoproj.io/v1alpha1/namespaces/jesse-test/rollouts/canary-demo | ||
uid: b350ba76-f6ed-11e9-a15b-42010aa80033 | ||
spec: | ||
progressDeadlineSeconds: 30 | ||
replicas: 5 | ||
revisionHistoryLimit: 3 | ||
selector: | ||
matchLabels: | ||
app: canary-demo | ||
strategy: | ||
canary: | ||
canaryService: canary-demo-preview | ||
steps: | ||
- setWeight: 20 | ||
- pause: {} | ||
- setWeight: 40 | ||
- pause: | ||
duration: 10s | ||
- setWeight: 60 | ||
- pause: | ||
duration: 10s | ||
- setWeight: 80 | ||
- pause: | ||
duration: 10s | ||
workloadRef: | ||
apiVersion: apps/v1 | ||
kind: ReplicaSet | ||
name: canary-demo-65fb5ffc84 | ||
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 | ||
updatedReplicas: 1 |
68 changes: 68 additions & 0 deletions
68
pkg/kubectl-argo-rollouts/info/testdata/canary/canary-rollout3.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,68 @@ | ||
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 | ||
app.kubernetes.io/instance: jesse-test | ||
name: canary-demo-workloadRef-deploy | ||
namespace: jesse-test | ||
resourceVersion: "28253567" | ||
selfLink: /apis/argoproj.io/v1alpha1/namespaces/jesse-test/rollouts/canary-demo | ||
uid: b350ba76-f6ed-11e9-a15b-42010aa80033 | ||
spec: | ||
progressDeadlineSeconds: 30 | ||
replicas: 5 | ||
revisionHistoryLimit: 3 | ||
selector: | ||
matchLabels: | ||
app: canary-demo | ||
strategy: | ||
canary: | ||
canaryService: canary-demo-preview | ||
steps: | ||
- setWeight: 20 | ||
- pause: {} | ||
- setWeight: 40 | ||
- pause: | ||
duration: 10s | ||
- setWeight: 60 | ||
- pause: | ||
duration: 10s | ||
- setWeight: 80 | ||
- pause: | ||
duration: 10s | ||
workloadRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: canary-demo-deploy | ||
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 | ||
updatedReplicas: 1 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: extensions/v1beta1 | ||
apiVersion: apps/v1 | ||
kind: ReplicaSet | ||
metadata: | ||
annotations: | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: extensions/v1beta1 | ||
apiVersion: apps/v1 | ||
kind: ReplicaSet | ||
metadata: | ||
annotations: | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: extensions/v1beta1 | ||
apiVersion: apps/v1 | ||
kind: ReplicaSet | ||
metadata: | ||
annotations: | ||
|
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