Skip to content

Commit d66681d

Browse files
feat: Add registries.conf mount to installation
We're adding support for insecure registries or using unqualified images in scanned containers. To achieve that we've implemented support for registries.conf file. For more information on how to format and examples: https://github.com/containers/image/blob/master/docs/containers-registries.conf.5.md
1 parent 709d9bd commit d66681d

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

snyk-monitor-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ spec:
3232
mountPath: "/var/tmp"
3333
- name: ssl-certs
3434
mountPath: "/srv/app/certs"
35+
- name: registries-conf
36+
mountPath: "/srv/app/.config/containers"
3537
env:
3638
- name: SNYK_INTEGRATION_ID
3739
valueFrom:
@@ -107,4 +109,8 @@ spec:
107109
configMap:
108110
name: snyk-monitor-certs
109111
optional: true
112+
- name: registries-conf
113+
configMap:
114+
name: snyk-monitor-registries-conf
115+
optional: true
110116
serviceAccountName: snyk-monitor

snyk-monitor/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ spec:
3434
mountPath: "/var/tmp"
3535
- name: ssl-certs
3636
mountPath: "/srv/app/certs"
37+
- name: registries-conf
38+
mountPath: "/srv/app/.config/containers"
3739
env:
3840
- name: SNYK_INTEGRATION_ID
3941
valueFrom:
@@ -85,3 +87,7 @@ spec:
8587
configMap:
8688
name: {{ .Values.certsConfigMap }}
8789
optional: true
90+
- name: registries-conf
91+
configMap:
92+
name: {{ .Values.registriesConfConfigMap }}
93+
optional: true

snyk-monitor/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# The currently used keys within the secret are: "dockercfg.json", "integrationId".
77
monitorSecrets: snyk-monitor
88
certsConfigMap: snyk-monitor-certs
9+
registriesConfConfigMap: snyk-monitor-registries-conf
910

1011
# One of: Cluster, Namespaced
1112
# Cluster - creates a ClusterRole and ClusterRoleBinding with the ServiceAccount

0 commit comments

Comments
 (0)