Skip to content

Commit

Permalink
Set force cgroup env for k3s agent as well
Browse files Browse the repository at this point in the history
  • Loading branch information
superseb authored and Oats87 committed Nov 2, 2022
1 parent c4dd7a5 commit d4d9741
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/integration/pkg/nodeconfig/nodeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ write_files:
[Service]
Type=exec
path: /etc/systemd/system/k3s.service.d/10-delegate.conf
- content: |
[Service]
Type=exec
path: /etc/systemd/system/k3s-agent.service.d/10-delegate.conf
- content: |
NOTIFY_SOCKET=
INVOCATION_ID=
Expand All @@ -109,7 +113,12 @@ write_files:
- content: |
NOTIFY_SOCKET=
INVOCATION_ID=
path: /etc/default/k3s`
path: /etc/default/k3s
- content: |
NOTIFY_SOCKET=
INVOCATION_ID=
path: /etc/default/k3s-agent`

podConfigClient := clients.Dynamic.Resource(schema.GroupVersionResource{
Group: "rke-machine-config.cattle.io",
Version: "v1",
Expand Down
10 changes: 10 additions & 0 deletions tests/integration/pkg/systemdnode/systemnode.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ INVOCATION_ID=
MountPath: "/usr/local/lib/systemd/system/k3s.service.d/10-delegate.conf",
SubPath: "dropin",
},
{
Name: "systemd",
MountPath: "/usr/local/lib/systemd/system/k3s-agent.service.d/10-delegate.conf",
SubPath: "dropin",
},
{
Name: "systemd",
MountPath: "/etc/default/rke2-server",
Expand All @@ -122,6 +127,11 @@ INVOCATION_ID=
MountPath: "/etc/default/k3s",
SubPath: "disable",
},
{
Name: "systemd",
MountPath: "/etc/default/k3s-agent",
SubPath: "disable",
},
},
}},
AutomountServiceAccountToken: new(bool),
Expand Down

0 comments on commit d4d9741

Please sign in to comment.