Skip to content

Commit a44fd86

Browse files
Merge pull request #1647 from rackerlabs/rate_limit_shell-operator
fix: forced a longer rate limit on the ironic shell-operator
2 parents 00f4d85 + fc141cf commit a44fd86

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

containers/shell-operator-ironic/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/flant/shell-operator:latest AS prod
1+
FROM ghcr.io/flant/shell-operator:v1.13.1 AS prod
22
LABEL org.opencontainers.image.description="shell-operator for Ironic Runbooks"
33

44
RUN --mount=type=cache,target=/var/cache/apk apk add python3

containers/shell-operator-ironic/hooks/create_runbook.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ if [[ $1 == "--config" ]] ; then
88
"apiVersion": "baremetal.ironicproject.org/v1alpha1",
99
"kind": "IronicRunbook",
1010
"executeHookOnEvent":[ "Added" ]
11-
}]
11+
}],
12+
"settings": {
13+
"executionMinInterval": 30s,
14+
"executionBurst": 1
15+
}
1216
}
1317
EOF
1418
else

containers/shell-operator-ironic/hooks/delete_runbook.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ if [[ $1 == "--config" ]] ; then
88
"apiVersion": "baremetal.ironicproject.org/v1alpha1",
99
"kind": "IronicRunbook",
1010
"executeHookOnEvent":[ "Deleted" ]
11-
}]
11+
}],
12+
"settings": {
13+
"executionMinInterval": 30s,
14+
"executionBurst": 1
15+
}
1216
}
1317
EOF
1418
else

containers/shell-operator-ironic/hooks/update_runbook.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ if [[ $1 == "--config" ]] ; then
88
"apiVersion": "baremetal.ironicproject.org/v1alpha1",
99
"kind": "IronicRunbook",
1010
"executeHookOnEvent":[ "Modified" ]
11-
}]
11+
}],
12+
"settings": {
13+
"executionMinInterval": 30s,
14+
"executionBurst": 1
15+
}
1216
}
1317
EOF
1418
else

0 commit comments

Comments
 (0)