Mount connection sshkeys on executors and mergers
Change-Id: I1628b2d4efe4ed949c70a0a96a5a06c037495a09
This commit is contained in:
parent
97aa27080f
commit
e39d82975e
@ -345,6 +345,13 @@ spec:
|
|||||||
mountPath: {{ volume.path }}
|
mountPath: {{ volume.path }}
|
||||||
{%- if volume.access == 'ro' %}readOnly: true{% endif %}
|
{%- if volume.access == 'ro' %}readOnly: true{% endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
{%- for connection_name, connection in connections.items() %}
|
||||||
|
{%- if 'secretName' in connection %}
|
||||||
|
- name: connection-{{ connection_name }}
|
||||||
|
mountPath: /etc/zuul/connections/{{ connection_name }}
|
||||||
|
readOnly: true
|
||||||
|
{%- endif %}
|
||||||
|
{%- endfor %}
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
terminationGracePeriodSeconds: {{ spec.executor.terminationGracePeriodSeconds }}
|
terminationGracePeriodSeconds: {{ spec.executor.terminationGracePeriodSeconds }}
|
||||||
@ -371,6 +378,13 @@ spec:
|
|||||||
{%- for volume in spec.get('jobVolumes', []) %}
|
{%- for volume in spec.get('jobVolumes', []) %}
|
||||||
- {{ volume.volume | zuul_to_json }}
|
- {{ volume.volume | zuul_to_json }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
{%- for connection_name, connection in connections.items() %}
|
||||||
|
{%- if 'secretName' in connection %}
|
||||||
|
- name: connection-{{ connection_name }}
|
||||||
|
secret:
|
||||||
|
secretName: {{ connection['secretName'] }}
|
||||||
|
{%- endif %}
|
||||||
|
{%- endfor %}
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
@ -415,6 +429,13 @@ spec:
|
|||||||
- name: zookeeper-client-tls
|
- name: zookeeper-client-tls
|
||||||
mountPath: /tls/client
|
mountPath: /tls/client
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{%- for connection_name, connection in connections.items() %}
|
||||||
|
{%- if 'secretName' in connection %}
|
||||||
|
- name: connection-{{ connection_name }}
|
||||||
|
mountPath: /etc/zuul/connections/{{ connection_name }}
|
||||||
|
readOnly: true
|
||||||
|
{%- endif %}
|
||||||
|
{%- endfor %}
|
||||||
terminationGracePeriodSeconds: 3600
|
terminationGracePeriodSeconds: 3600
|
||||||
volumes:
|
volumes:
|
||||||
- name: zuul-var
|
- name: zuul-var
|
||||||
@ -425,6 +446,13 @@ spec:
|
|||||||
- name: zookeeper-client-tls
|
- name: zookeeper-client-tls
|
||||||
secret:
|
secret:
|
||||||
secretName: {{ spec.zookeeper.secretName }}
|
secretName: {{ spec.zookeeper.secretName }}
|
||||||
|
{%- for connection_name, connection in connections.items() %}
|
||||||
|
{%- if 'secretName' in connection %}
|
||||||
|
- name: connection-{{ connection_name }}
|
||||||
|
secret:
|
||||||
|
secretName: {{ connection['secretName'] }}
|
||||||
|
{%- endif %}
|
||||||
|
{%- endfor %}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
Loading…
x
Reference in New Issue
Block a user