Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#1225 from dfr/freebsd-paths
Browse files Browse the repository at this point in the history
override path defaults for FreeBSD
  • Loading branch information
k8s-ci-robot authored Jul 28, 2023
2 parents 4bc3070 + e3cc516 commit 2abd7c3
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 2abd7c3

Please sign in to comment.