Skip to content

Commit

Permalink
chore: reproduce restart analysis issue
Browse files Browse the repository at this point in the history
Signed-off-by: kyanagimoto <koichiyanagimoto@gmail.com>
  • Loading branch information
vito-laurenza-zocdoc authored and kyanagimoto committed Jan 19, 2021
1 parent 9891375 commit 34e9c0d
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions artifacts/flagger/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,11 @@ spec:
- Failed
- Terminating
- Terminated
trackedConfigs:
description: TrackedConfig of this canary
additionalProperties:
type: string
type: object
canaryWeight:
description: Traffic weight routed to canary
type: number
Expand Down
5 changes: 5 additions & 0 deletions charts/flagger/crds/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,11 @@ spec:
- Failed
- Terminating
- Terminated
trackedConfigs:
description: TrackedConfig of this canary
additionalProperties:
type: string
type: object
canaryWeight:
description: Traffic weight routed to canary
type: number
Expand Down
5 changes: 5 additions & 0 deletions kustomize/base/flagger/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,11 @@ spec:
- Failed
- Terminating
- Terminated
trackedConfigs:
description: TrackedConfig of this canary
additionalProperties:
type: string
type: object
canaryWeight:
description: Traffic weight routed to canary
type: number
Expand Down
6 changes: 6 additions & 0 deletions test/workloads/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ spec:
- name: podinfod
image: stefanprodan/podinfo:3.1.0
imagePullPolicy: IfNotPresent
env:
- name: PODINFO_SECRET_VALUE
valueFrom:
secretKeyRef:
name: podinfo-secret
key: value
ports:
- name: http
containerPort: 9898
Expand Down
1 change: 1 addition & 0 deletions test/workloads/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ kubectl apply -k ${REPO_ROOT}/kustomize/tester
kubectl -n test rollout status deployment/flagger-loadtester

echo '>>> Deploy podinfo'
kubectl apply -f ${REPO_ROOT}/test/workloads/secret.yaml
kubectl apply -f ${REPO_ROOT}/test/workloads/deployment.yaml
kubectl apply -f ${REPO_ROOT}/test/workloads/daemonset.yaml
7 changes: 7 additions & 0 deletions test/workloads/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: podinfo-secret
namespace: test
stringData:
value: s3cr3t

0 comments on commit 34e9c0d

Please sign in to comment.