github.com/cilium/cilium@v1.16.2/tools/mount/main.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright Authors of Cilium 3 4 package main 5 6 import ( 7 "fmt" 8 "os" 9 10 "github.com/cilium/cilium/pkg/cgroups" 11 ) 12 13 func main() { 14 if len(os.Args) != 2 { 15 fmt.Fprintf(os.Stderr, "usage: %s <cgroup-mount-point> \n\n", os.Args[0]) 16 os.Exit(1) 17 } 18 19 cgroupMountPoint := os.Args[1] 20 // This program is executed by an init container so we purposely don't 21 // exit with any error codes. In case of errors, the function will log warnings, 22 // but we don't block cilium agent pod from running. 23 cgroups.CheckOrMountCgrpFS(cgroupMountPoint) 24 }