mirror of
https://github.com/openappsec/attachment.git
synced 2025-06-28 16:41:03 +03:00
fix append
This commit is contained in:
parent
1c03b2276f
commit
0eb75c181e
@ -675,11 +675,12 @@ def mutate():
|
|||||||
app.logger.debug("Added volume mount patch to istio-proxy: %s", patches[-1])
|
app.logger.debug("Added volume mount patch to istio-proxy: %s", patches[-1])
|
||||||
|
|
||||||
# Add the new volume definition
|
# Add the new volume definition
|
||||||
patches.append({
|
for volume in volume_def:
|
||||||
"op": "add",
|
patches.append({
|
||||||
"path": "/spec/volumes/-",
|
"op": "add",
|
||||||
"value": volume_def
|
"path": "/spec/volumes/-",
|
||||||
})
|
"value": volume_def
|
||||||
|
})
|
||||||
app.logger.debug("Added volume definition patch: %s", patches[-1])
|
app.logger.debug("Added volume definition patch: %s", patches[-1])
|
||||||
|
|
||||||
if DEPLOY_FILTER and SELECTOR_LABEL_NAME and SELECTOR_LABEL_VALUE:
|
if DEPLOY_FILTER and SELECTOR_LABEL_NAME and SELECTOR_LABEL_VALUE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user