Skip to content

Commit 95ddb77

Browse files
committed
feat: mount host ca certs into metal agent
Instead of copying ca certs from its image, mount them from the host into the agent container. This way, agent can also use additional ca certificates added via `TrustedRootsConfig` config documents. Also bump the agent version to `v0.1.0`. Signed-off-by: Utku Ozdemir <[email protected]>
1 parent ad72efd commit 95ddb77

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

guest-agents/metal-agent/metal-agent.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,15 @@ container:
1818
- rshared
1919
- rbind
2020
- rw
21+
- source: /etc/ssl/certs
22+
destination: /etc/ssl/certs
23+
type: bind
24+
options:
25+
- rbind
26+
- ro
2127
depends:
2228
- path: /system/run/machined/machine.sock
29+
- path: /etc/ssl/certs
2330
- network:
2431
- addresses
2532
restart: always

guest-agents/metal-agent/pkg.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ dependencies:
77
from: /
88
to: /rootfs/usr/local/lib/containers/metal-agent
99

10-
- image: "{{ .BUILD_ARG_PKGS_PREFIX }}/ca-certificates:{{ .BUILD_ARG_PKGS }}"
11-
from: /
12-
to: /rootfs/usr/local/lib/containers/metal-agent
13-
1410
- image: "{{ .BUILD_ARG_PKGS_PREFIX }}/openssl:{{ .BUILD_ARG_PKGS }}"
1511
from: /
1612
to: /rootfs/usr/local/lib/containers/metal-agent

guest-agents/vars.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ XEN_GUEST_AGENT_VERSION: 0.4.0
99
# renovate: datasource=github-releases depName=siderolabs/talos-vmtoolsd
1010
TALOS_VMTOOLSD_VERSION: v0.6.1
1111
# renovate: datasource=github-releases depName=siderolabs/talos-metal-agent
12-
TALOS_METAL_AGENT_VERSION: v0.1.0-beta.1
12+
TALOS_METAL_AGENT_VERSION: v0.1.0

0 commit comments

Comments
 (0)