Skip to content

Commit

Permalink
override path defaults for FreeBSD
Browse files Browse the repository at this point in the history
Sockets should go in /var/run and config files for non-base software in
/usr/local/etc.

Signed-off-by: Doug Rabson <[email protected]>
  • Loading branch information
dfr committed Jul 27, 2023
1 parent 4bc3070 commit e3cc516
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
30 changes: 30 additions & 0 deletions cmd/crictl/main_freebsd.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package main

import (
"os"
"syscall"
)

const (
defaultConfigPath = "/usr/local/etc/crictl.yaml"
)

var defaultRuntimeEndpoints = []string{"unix:///var/run/dockershim.sock", "unix:///var/run/containerd/containerd.sock", "unix:///var/run/crio/crio.sock", "unix:///var/run/cri-dockerd.sock"}

var shutdownSignals = []os.Signal{os.Interrupt, syscall.SIGTERM}
4 changes: 2 additions & 2 deletions cmd/crictl/main_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !windows
// +build !windows
//go:build !windows && !freebsd
// +build !windows,!freebsd

/*
Copyright 2017 The Kubernetes Authors.
Expand Down

0 comments on commit e3cc516

Please sign in to comment.