-
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.
Show running jobs as part of analysis runs. Fix degraded check to con…
…sider experiment/analysis steps (#278)
- Loading branch information
1 parent
574db3d
commit 5fe4777
Showing
23 changed files
with
1,244 additions
and
8 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
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
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
81 changes: 81 additions & 0 deletions
81
pkg/kubectl-argo-rollouts/info/testdata/experiment-step/canary-demo.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,81 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Rollout | ||
metadata: | ||
annotations: | ||
kubectl.kubernetes.io/last-applied-configuration: | | ||
{"apiVersion":"argoproj.io/v1alpha1","kind":"Rollout","metadata":{"annotations":{},"name":"canary-demo","namespace":"jesse-test"},"spec":{"replicas":5,"revisionHistoryLimit":3,"selector":{"matchLabels":{"app":"canary-demo"}},"strategy":{"canary":{"steps":[{"experiment":{"analyses":[{"name":"stress-test","templateName":"stress-test"}],"templates":[{"metadata":{"labels":{"app":"rollout-canary-preview"}},"name":"canary-preview","selector":{"matchLabels":{"app":"rollout-canary-preview"}},"specRef":"canary"}]}}]}},"template":{"metadata":{"labels":{"app":"canary-demo"}},"spec":{"containers":[{"image":"argoproj/rollouts-demo:blue","imagePullPolicy":"Always","name":"canary-demo","ports":[{"containerPort":8080,"name":"http","protocol":"TCP"}],"resources":{"requests":{"cpu":"5m","memory":"32Mi"}}}]}}}} | ||
rollout.argoproj.io/revision: "2" | ||
creationTimestamp: "2019-11-07T22:38:03Z" | ||
generation: 13 | ||
name: canary-demo | ||
namespace: jesse-test | ||
resourceVersion: "33430711" | ||
selfLink: /apis/argoproj.io/v1alpha1/namespaces/jesse-test/rollouts/canary-demo | ||
uid: 42b19359-01af-11ea-b38c-42010aa80083 | ||
spec: | ||
replicas: 5 | ||
revisionHistoryLimit: 3 | ||
selector: | ||
matchLabels: | ||
app: canary-demo | ||
strategy: | ||
canary: | ||
steps: | ||
- experiment: | ||
analyses: | ||
- name: stress-test | ||
templateName: stress-test | ||
templates: | ||
- metadata: | ||
labels: | ||
app: rollout-canary-preview | ||
name: canary-preview | ||
selector: | ||
matchLabels: | ||
app: rollout-canary-preview | ||
specRef: canary | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app: canary-demo | ||
spec: | ||
containers: | ||
- image: argoproj/rollouts-demo:blue | ||
imagePullPolicy: Always | ||
name: canary-demo | ||
ports: | ||
- containerPort: 8080 | ||
name: http | ||
protocol: TCP | ||
resources: | ||
requests: | ||
cpu: 5m | ||
memory: 32Mi | ||
status: | ||
HPAReplicas: 5 | ||
availableReplicas: 5 | ||
blueGreen: {} | ||
canary: | ||
currentExperiment: canary-demo-645d5dbc4c-2-0 | ||
stableRS: 877894d5b | ||
conditions: | ||
- lastTransitionTime: "2019-11-07T22:38:11Z" | ||
lastUpdateTime: "2019-11-07T22:38:11Z" | ||
message: Rollout has minimum availability | ||
reason: AvailableReason | ||
status: "True" | ||
type: Available | ||
- lastTransitionTime: "2019-11-07T22:38:03Z" | ||
lastUpdateTime: "2019-11-07T22:38:18Z" | ||
message: Created new replica set "canary-demo-645d5dbc4c" | ||
reason: NewReplicaSetCreated | ||
status: "True" | ||
type: Progressing | ||
currentPodHash: 645d5dbc4c | ||
currentStepHash: 7d595679dd | ||
currentStepIndex: 0 | ||
observedGeneration: 7664c98448 | ||
readyReplicas: 5 | ||
replicas: 5 | ||
selector: app=canary-demo |
104 changes: 104 additions & 0 deletions
104
pkg/kubectl-argo-rollouts/info/testdata/experiment-step/canary-exp-analysis-job-pod.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,104 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
creationTimestamp: "2019-11-07T22:38:23Z" | ||
generateName: 4e2d824d-01af-11ea-b38c-42010aa80083.stress.1- | ||
labels: | ||
controller-uid: 4e309601-01af-11ea-b38c-42010aa80083 | ||
job-name: 4e2d824d-01af-11ea-b38c-42010aa80083.stress.1 | ||
name: 4e2d824d-01af-11ea-b38c-42010aa80083.stress.1-lsrws | ||
namespace: jesse-test | ||
ownerReferences: | ||
- apiVersion: batch/v1 | ||
blockOwnerDeletion: true | ||
controller: true | ||
kind: Job | ||
name: 4e2d824d-01af-11ea-b38c-42010aa80083.stress.1 | ||
uid: 4e309601-01af-11ea-b38c-42010aa80083 | ||
resourceVersion: "33430818" | ||
selfLink: /api/v1/namespaces/jesse-test/pods/4e2d824d-01af-11ea-b38c-42010aa80083.stress.1-lsrws | ||
uid: 4e340a3d-01af-11ea-b38c-42010aa80083 | ||
spec: | ||
containers: | ||
- command: | ||
- wrk | ||
- -t12 | ||
- -c100 | ||
- -d30s | ||
- http://canary-demo-preview/color] | ||
image: williamyeh/wrk | ||
imagePullPolicy: Always | ||
name: stress | ||
resources: {} | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
volumeMounts: | ||
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount | ||
name: default-token-5wzlj | ||
readOnly: true | ||
dnsPolicy: ClusterFirst | ||
enableServiceLinks: true | ||
nodeName: gke-argoproj-demo-01-default-pool-848985e7-g3kx | ||
priority: 0 | ||
restartPolicy: Never | ||
schedulerName: default-scheduler | ||
securityContext: {} | ||
serviceAccount: default | ||
serviceAccountName: default | ||
terminationGracePeriodSeconds: 30 | ||
tolerations: | ||
- effect: NoExecute | ||
key: node.kubernetes.io/not-ready | ||
operator: Exists | ||
tolerationSeconds: 300 | ||
- effect: NoExecute | ||
key: node.kubernetes.io/unreachable | ||
operator: Exists | ||
tolerationSeconds: 300 | ||
volumes: | ||
- name: default-token-5wzlj | ||
secret: | ||
defaultMode: 420 | ||
secretName: default-token-5wzlj | ||
status: | ||
conditions: | ||
- lastProbeTime: null | ||
lastTransitionTime: "2019-11-07T22:38:23Z" | ||
status: "True" | ||
type: Initialized | ||
- lastProbeTime: null | ||
lastTransitionTime: "2019-11-07T22:38:27Z" | ||
message: 'containers with unready status: [stress]' | ||
reason: ContainersNotReady | ||
status: "False" | ||
type: Ready | ||
- lastProbeTime: null | ||
lastTransitionTime: "2019-11-07T22:38:27Z" | ||
message: 'containers with unready status: [stress]' | ||
reason: ContainersNotReady | ||
status: "False" | ||
type: ContainersReady | ||
- lastProbeTime: null | ||
lastTransitionTime: "2019-11-07T22:38:23Z" | ||
status: "True" | ||
type: PodScheduled | ||
containerStatuses: | ||
- containerID: docker://ea0f9d5abffb5a3d608d45702caed64f11a6864828f4dfb173f31a2a5e19c70e | ||
image: williamyeh/wrk:latest | ||
imageID: docker-pullable://williamyeh/wrk@sha256:78adc0d9d51a99e6759e702a08d03eaece81c890ffcc9790ef9e5b199d54f091 | ||
lastState: {} | ||
name: stress | ||
ready: false | ||
restartCount: 0 | ||
state: | ||
terminated: | ||
containerID: docker://ea0f9d5abffb5a3d608d45702caed64f11a6864828f4dfb173f31a2a5e19c70e | ||
exitCode: 1 | ||
finishedAt: "2019-11-07T22:38:26Z" | ||
reason: Error | ||
startedAt: "2019-11-07T22:38:25Z" | ||
hostIP: 10.168.0.26 | ||
phase: Failed | ||
podIP: 10.16.3.136 | ||
qosClass: BestEffort | ||
startTime: "2019-11-07T22:38:23Z" |
63 changes: 63 additions & 0 deletions
63
pkg/kubectl-argo-rollouts/info/testdata/experiment-step/canary-exp-analysis-job.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,63 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
annotations: | ||
analysisrun.argoproj.io/metric-name: stress | ||
analysisrun.argoproj.io/name: canary-demo-645d5dbc4c-2-0-stress-test | ||
creationTimestamp: "2019-11-07T22:38:23Z" | ||
labels: | ||
analysisrun.argoproj.io/uid: 4e2d824d-01af-11ea-b38c-42010aa80083 | ||
name: 4e2d824d-01af-11ea-b38c-42010aa80083.stress.1 | ||
namespace: jesse-test | ||
ownerReferences: | ||
- apiVersion: argoproj.io/v1alpha1 | ||
blockOwnerDeletion: true | ||
controller: true | ||
kind: AnalysisRun | ||
name: canary-demo-645d5dbc4c-2-0-stress-test | ||
uid: 4e2d824d-01af-11ea-b38c-42010aa80083 | ||
resourceVersion: "33430820" | ||
selfLink: /apis/batch/v1/namespaces/jesse-test/jobs/4e2d824d-01af-11ea-b38c-42010aa80083.stress.1 | ||
uid: 4e309601-01af-11ea-b38c-42010aa80083 | ||
spec: | ||
backoffLimit: 0 | ||
completions: 1 | ||
parallelism: 1 | ||
selector: | ||
matchLabels: | ||
controller-uid: 4e309601-01af-11ea-b38c-42010aa80083 | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
controller-uid: 4e309601-01af-11ea-b38c-42010aa80083 | ||
job-name: 4e2d824d-01af-11ea-b38c-42010aa80083.stress.1 | ||
spec: | ||
containers: | ||
- command: | ||
- wrk | ||
- -t12 | ||
- -c100 | ||
- -d30s | ||
- http://canary-demo-preview/color] | ||
image: williamyeh/wrk | ||
imagePullPolicy: Always | ||
name: stress | ||
resources: {} | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Never | ||
schedulerName: default-scheduler | ||
securityContext: {} | ||
terminationGracePeriodSeconds: 30 | ||
status: | ||
conditions: | ||
- lastProbeTime: "2019-11-07T22:38:27Z" | ||
lastTransitionTime: "2019-11-07T22:38:27Z" | ||
message: Job has reached the specified backoff limit | ||
reason: BackoffLimitExceeded | ||
status: "True" | ||
type: Failed | ||
failed: 1 | ||
startTime: "2019-11-07T22:38:23Z" |
Oops, something went wrong.