Skip to content

Commit 5513b30

Browse files
authored
Merge pull request #4767 from bcressey/thar-be-registries
add registries helper to shared defaults
2 parents d4d5f62 + 6e83d3a commit 5513b30

5 files changed

Lines changed: 15 additions & 6 deletions

File tree

sources/shared-defaults/defaults.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,3 +213,12 @@ template-path = "/usr/share/templates/netdog-toml"
213213
[configuration-files.certdog-toml]
214214
path = "/etc/certdog.toml"
215215
template-path = "/usr/share/templates/certdog-toml"
216+
217+
# thar-be-registries - renders hosts.toml files for containerd registry config
218+
[services.thar-be-registries]
219+
configuration-files = ["thar-be-registries-toml"]
220+
restart-commands = ["/usr/bin/thar-be-registries"]
221+
222+
[configuration-files.thar-be-registries-toml]
223+
path = "/etc/containerd/thar-be-registries.toml"
224+
template-path = "/usr/share/templates/thar-be-registries-toml"

sources/shared-defaults/docker-services.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ template-path = "/usr/share/templates/docker-daemon-json"
99
# Image registries. Retained for backwards compatibility, but superseded by the
1010
# more specific metadata for mirrors and credentials.
1111
[metadata.settings.container-registry]
12-
affected-services = ["docker", "host-containers", "bootstrap-containers"]
12+
affected-services = ["docker", "host-containers", "bootstrap-containers", "thar-be-registries"]
1313

1414
# Image registry mirrors
1515
[metadata.settings.container-registry.mirrors]
16-
affected-services = ["docker", "host-containers", "bootstrap-containers"]
16+
affected-services = ["docker", "host-containers", "bootstrap-containers", "thar-be-registries"]
1717

1818
# Image registry credentials
1919
[metadata.settings.container-registry.credentials]
20-
affected-services = ["host-containers", "bootstrap-containers"]
20+
affected-services = ["host-containers", "bootstrap-containers", "thar-be-registries"]

sources/shared-defaults/ecs.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ affected-services = ["containerd", "docker", "ecs", "host-containerd", "host-con
2626

2727
# Image registry credentials
2828
[metadata.settings.container-registry.credentials]
29-
affected-services = ["ecs", "host-containers", "bootstrap-containers"]
29+
affected-services = ["ecs", "host-containers", "bootstrap-containers", "thar-be-registries"]

sources/shared-defaults/kubernetes-containerd-nvidia.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ template-path = "/usr/share/templates/containerd-config-toml_k8s_nvidia_containe
44

55
# Image registries
66
[metadata.settings.container-registry]
7-
affected-services = ["containerd", "host-containers", "bootstrap-containers", "soci-snapshotter"]
7+
affected-services = ["containerd", "host-containers", "bootstrap-containers", "soci-snapshotter", "thar-be-registries"]
88

99
[configuration-files.snapshotter-toml]
1010
path = "/etc/containerd/config.d/001-snapshotter.toml"

sources/shared-defaults/kubernetes-containerd.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ template-path = "/usr/share/templates/containerd-config-toml_k8s_containerd_sock
44

55
# Image registries
66
[metadata.settings.container-registry]
7-
affected-services = ["containerd", "host-containers", "bootstrap-containers", "soci-snapshotter"]
7+
affected-services = ["containerd", "host-containers", "bootstrap-containers", "soci-snapshotter", "thar-be-registries"]
88

99
[configuration-files.snapshotter-toml]
1010
path = "/etc/containerd/config.d/001-snapshotter.toml"

0 commit comments

Comments
 (0)