Skip to content

Commit

Permalink
automated commit
Browse files Browse the repository at this point in the history
Signed-off-by: Public copy <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Aug 15, 2024
1 parent 43fb887 commit 0f8c7d7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions images/calico/tests/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ resource "imagetest_harness_k3s" "this" {
]
}

hooks = {
# the calico csi node driver tries to use the same mount as k3s (in
# docker), so make it shared
post_start = [
"mount --make-shared /var/lib/kubelet",
"mount --make-rshared /",
]
}

# Disable k3s' builtin (flannel) so we can later use the installed calico as the CNI
disable_cni = true
}
Expand All @@ -92,4 +101,8 @@ resource "imagetest_feature" "basic" {
cmd = "/tests/run-tests.sh"
}
]

labels = {
type = "k8s"
}
}

0 comments on commit 0f8c7d7

Please sign in to comment.