Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions drydock/patches/kustomization
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,13 @@ patches:
kind: Deployment
name: '{% for name in DRYDOCK_POST_INIT_DEPLOYMENTS %}{{ name }}{% if not loop.last %}|{% endif %}{% endfor %}'
path: plugins/drydock/k8s/patches/post-init-deployments-sync-wave.yml

- path: plugins/drydock/k8s/patches/tls-volume-append.yml
target:
kind: "(Deployment|Job)"
name: aspects|superset-job.*|aspects-job.*|ralph

- path: plugins/drydock/k8s/patches/tls-volume-add.yml
target:
kind: "(Deployment|Job)"
name: clickhouse-job.*
1 change: 1 addition & 0 deletions drydock/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def get_sync_waves_for_resource(resource_name: str) -> SYNC_WAVES_ORDER_ATTRS_TY
"PDB_MINAVAILABLE_PERCENTAGE_MFE": 0,
"PDB_MINAVAILABLE_PERCENTAGE_FORUM": 0,
"PDB_MINAVAILABLE_PERCENTAGE_CADDY": 0,
"CA_BUNDLE_NAME": "cluster-bundle",
"POST_INIT_DEPLOYMENTS": [
"lms",
"cms",
Expand Down
17 changes: 17 additions & 0 deletions drydock/templates/drydock/k8s/patches/tls-volume-add.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
- op: add
path: /spec/template/spec/volumes
value:
- name: ca-certificates
configMap:
name: cluster-bundle
defaultMode: 420 # Octal 0644
optional: false
items:
- key: ca-certificates.crt
path: ca-certificates.crt
- op: add
path: /spec/template/spec/containers/0/volumeMounts
value:
- name: ca-certificates
readOnly: true
mountPath: /etc/ssl/certs
17 changes: 17 additions & 0 deletions drydock/templates/drydock/k8s/patches/tls-volume-append.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
- op: add
path: /spec/template/spec/volumes/-
value:
name: ca-certificates
configMap:
name: cluster-bundle
defaultMode: 420 # Octal 0644
optional: false
items:
- key: ca-certificates.crt
path: ca-certificates.crt
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
name: ca-certificates
readOnly: true
mountPath: /etc/ssl/certs
Loading