Skip to content

Commit 78b765c

Browse files
committed
Fix jsonpatch in CI config
1 parent e52f391 commit 78b765c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/test.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,17 @@ jobs:
111111
kubectl patch deploy scrapyd-k8s --type=json -p='[
112112
{
113113
"op": "add",
114-
"path": "/spec/template/spec/containers/1/volumeMounts",
115-
"value": { "name": "scrapyd-k8s-testcfg", "mountPath": "/opt/app/scrapyd_k8s.test.conf", "readOnly": true, "subPath": "scrapyd_k8s.test.conf" }
114+
"path": "/spec/template/spec/volumes/-",
115+
"value": { "configMap": { "name": "scrapyd-k8s-testcfg" }, "name": "scrapyd-k8s-testcfg" }
116116
},
117117
{
118118
"op": "add",
119-
"path": "/spec/template/spec/volumes",
120-
"value": { "configMap": { "name": "scrapyd-k8s-testcfg" }, "name": "scrapyd-k8s-testcfg" }
119+
"path": "/spec/template/spec/containers/0/volumeMounts/-",
120+
"value": { "name": "scrapyd-k8s-testcfg", "mountPath": "/opt/app/scrapyd_k8s.test.conf", "readOnly": true, "subPath": "scrapyd_k8s.test.conf" }
121121
},
122122
{
123123
"op": "replace",
124-
"path": "/spec/template/spec/containers/1/command",
124+
"path": "/spec/template/spec/containers/0/command",
125125
"value": ["python3", "-m", "scrapyd_k8s", "-c", "scrapyd_k8s.conf", "-c", "scrapyd_k8s.test.conf"]
126126
}
127127
]'

0 commit comments

Comments
 (0)