Skip to content

Commit

Permalink
Add example wth pod spec inlined
Browse files Browse the repository at this point in the history
  • Loading branch information
film42 committed Mar 25, 2022
1 parent aac0e13 commit 619f2a0
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ metadata:
name: run-app-migrations
namespace: docbot-test
spec:
debounceSeconds: 30
selector:
labels:
app: nginx
Expand Down
30 changes: 30 additions & 0 deletions deploymenthook.pod_template_by_spec.example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: apps.mx.com/v1
kind: DeploymentHook
metadata:
name: run-app-migrations-with-spec
namespace: docbot-test
spec:
selector:
labels:
app: nginx
template:
spec:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
command:
- "sh"
- "-c"
- |
echo "Doing some work..."
echo "Still working on it..."
echo "Done!"
envFrom:
- configMapRef:
name: config-nginx-test
ports:
- containerPort: 80
1 change: 0 additions & 1 deletion docbot-controller/src/job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ metadata:
name: run-app-migrations
namespace: docbot-test
spec:
debounceSeconds: 30
selector:
labels:
apps.mx.com/deploymenthook: finished
Expand Down

0 comments on commit 619f2a0

Please sign in to comment.