-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support restart task for statefulsets and daemonsets #836
Merged
timothysmith0609
merged 19 commits into
master
from
support_deploys_and_statefulesets_and_daemonsets_for_restart_task
Sep 15, 2021
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
5a0b6e5
Start of supporting restart task for statefulsets and daemonsets
timothysmith0609 485463a
s/stateful_set/statefulset
timothysmith0609 4a94c8f
CLI tests for new restart command flags
timothysmith0609 f312bb2
Fix serial_test regressions
timothysmith0609 1a5e457
Better restart implementation; watch all resources
timothysmith0609 a2fd669
Better patch method, cop to ignore DateTime usage
timothysmith0609 20b8125
more test fix
timothysmith0609 b40fe53
tidyup + test
timothysmith0609 a56ac72
Fix README wording
timothysmith0609 180f699
Add dedicated fail-restart fixture, fix krane_test fetch_restarted_at…
timothysmith0609 497a86b
fix test wording
timothysmith0609 9dd5535
Test restart on SS and DS as well as Deployment
timothysmith0609 31a67b3
flesh out test assumptions
timothysmith0609 af02b40
fix typo
timothysmith0609 85c2a7a
fix test
timothysmith0609 e5e7c65
yet more fix
timothysmith0609 9a90299
Add missining newline
timothysmith0609 b7f8e87
Add SS and DS count to statsd tags
timothysmith0609 6f1a329
Fix #tags method signature
timothysmith0609 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add dedicated fail-restart fixture, fix krane_test fetch_restarted_at…
… method
- Loading branch information
commit 180f699f0298254bc02be9f223e1340a63e1f39a
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: hello-cloud-configmap-data | ||
labels: | ||
name: hello-cloud-configmap-data | ||
app: hello-cloud | ||
data: | ||
datapoint1: value1 | ||
datapoint2: value2 |
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,85 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: web | ||
labels: | ||
name: web | ||
app: hello-cloud | ||
spec: | ||
rules: | ||
- host: hello-cloud.example.com | ||
http: | ||
paths: | ||
- backend: | ||
serviceName: web | ||
servicePort: 80 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: web | ||
labels: | ||
name: web | ||
app: hello-cloud | ||
spec: | ||
ports: | ||
- port: 80 | ||
name: http | ||
targetPort: http | ||
selector: | ||
name: web | ||
app: hello-cloud | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: web | ||
annotations: | ||
shipit.shopify.io/restart: "true" | ||
labels: | ||
name: web | ||
app: hello-cloud | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
name: web | ||
app: hello-cloud | ||
progressDeadlineSeconds: 60 | ||
template: | ||
metadata: | ||
labels: | ||
name: web | ||
app: hello-cloud | ||
spec: | ||
containers: | ||
- name: app | ||
image: busybox | ||
imagePullPolicy: IfNotPresent | ||
command: ["tail", "-f", "/dev/null"] | ||
ports: | ||
- containerPort: 80 | ||
name: http | ||
env: | ||
- name: GITHUB_REV | ||
value: "<%= current_sha %>" | ||
- name: CONFIG | ||
valueFrom: | ||
configMapKeyRef: | ||
name: hello-cloud-configmap-data | ||
key: datapoint1 | ||
volumeMounts: | ||
- name: podinfo | ||
mountPath: /etc/podinfo | ||
- name: sidecar | ||
image: busybox | ||
imagePullPolicy: IfNotPresent | ||
command: ["tail", "-f", "/dev/null"] | ||
volumes: | ||
- name: podinfo | ||
downwardAPI: | ||
items: | ||
- path: "annotations" | ||
fieldRef: | ||
fieldPath: 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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍