Skip to content

Commit 318423b

Browse files
committed
Fix SSH key mounts - use /var/lib/zuul-ssh instead of /etc/zuul
1 parent e17dce7 commit 318423b

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

kubernetes/kustomize/zuul/overlays/preprod/configs/zuul.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ prometheus_port=9091
3535
[executor]
3636
manage_ansible=true
3737
ansible_root=/var/lib/zuul/managed_ansible
38-
private_key_file=<path:secret/data/zuul/sshkey#private_key>
38+
private_key_file=/var/lib/zuul-ssh/executor-ssh.key
3939
disk_limit_per_job=5000
4040
max_starting_builds=5
4141
trusted_ro_paths=/var/run/zuul/trusted-ro
@@ -50,7 +50,7 @@ name=github
5050
driver=github
5151
webhook_token=<path:secret/data/zuul/connections/github#webhook_token>
5252
app_id=<path:secret/data/zuul/connections/github#app_id>
53-
app_key=<path:secret/data/zuul/connections/github#app_key>
53+
app_key=/var/lib/zuul-ssh/github-app.key
5454

5555
[connection "gitlab"]
5656
name=gitlab
@@ -60,7 +60,7 @@ cloneurl=ssh://[email protected]
6060
server=git.tsi-dev.otc-service.com
6161
api_token=<path:secret/data/zuul/connections/gitlab#api_token>
6262
webhook_token=<path:secret/data/zuul/connections/gitlab#webhook_token>
63-
sshkey=<path:secret/data/zuul/connections/gitlab#ssh_key>
63+
sshkey=/var/lib/zuul-ssh/gitlab-ssh.key
6464

6565
[connection "opendev"]
6666
name=opendev

kubernetes/kustomize/zuul/overlays/preprod/zuul-executor-volumes-patch.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,5 @@ spec:
1616
- name: zuul
1717
volumeMounts:
1818
- name: zuul-ssh-keys
19-
mountPath: /etc/zuul/connections
20-
readOnly: true
21-
- name: zuul-ssh-keys
22-
mountPath: /etc/zuul/sshkey
23-
subPath: executor-ssh.key
19+
mountPath: /var/lib/zuul-ssh
2420
readOnly: true

kubernetes/kustomize/zuul/overlays/preprod/zuul-merger-volumes-patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ spec:
1717
image: quay.io/opentelekomcloud/zuul-merger:change_774_change_859940
1818
volumeMounts:
1919
- name: zuul-ssh-keys
20-
mountPath: /etc/zuul/connections
20+
mountPath: /var/lib/zuul-ssh
2121
readOnly: true

kubernetes/kustomize/zuul/overlays/preprod/zuul-web-volumes-patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ spec:
1717
image: quay.io/opentelekomcloud/zuul-web:change_774_change_859940
1818
volumeMounts:
1919
- name: zuul-ssh-keys
20-
mountPath: /etc/zuul/connections
20+
mountPath: /var/lib/zuul-ssh
2121
readOnly: true

0 commit comments

Comments
 (0)