-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
394 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Auto ci on retest comments | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
permissions: # added using https://github.com/step-security/secure-workflows | ||
contents: read | ||
|
||
jobs: | ||
comments: | ||
name: retest | ||
runs-on: ubuntu-latest | ||
if: github.event.issue.pull_request != '' | ||
steps: | ||
- name: retest | ||
if: | | ||
contains(github.event.comment.body, '/retest') | ||
uses: ./.github/workflows/ci.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
version = 2 | ||
root = "/var/lib/containerd" | ||
state = "/var/run/containerd" | ||
plugin_dir = "" | ||
disabled_plugins = [] | ||
required_plugins = [] | ||
oom_score = 0 | ||
|
||
[grpc] | ||
address = "/var/run/containerd/containerd.sock" | ||
tcp_address = "" | ||
tcp_tls_cert = "" | ||
tcp_tls_key = "" | ||
uid = 0 | ||
gid = 0 | ||
max_recv_message_size = 16777216 | ||
max_send_message_size = 16777216 | ||
|
||
[ttrpc] | ||
address = "" | ||
uid = 0 | ||
gid = 0 | ||
|
||
[debug] | ||
address = "/var/run/containerd/debug.sock" | ||
uid = 0 | ||
gid = 0 | ||
level = "" | ||
|
||
[metrics] | ||
address = "" | ||
grpc_histogram = false | ||
|
||
[cgroup] | ||
path = "" | ||
|
||
[timeouts] | ||
"io.containerd.timeout.shim.cleanup" = "5s" | ||
"io.containerd.timeout.shim.load" = "5s" | ||
"io.containerd.timeout.shim.shutdown" = "3s" | ||
"io.containerd.timeout.task.state" = "2s" | ||
|
||
[plugins] | ||
[plugins."io.containerd.gc.v1.scheduler"] | ||
pause_threshold = 0.02 | ||
deletion_threshold = 0 | ||
mutation_threshold = 100 | ||
schedule_delay = "0s" | ||
startup_delay = "100ms" | ||
[plugins."io.containerd.grpc.v1.cri"] | ||
disable_tcp_service = true | ||
stream_server_address = "127.0.0.1" | ||
stream_server_port = "0" | ||
stream_idle_timeout = "4h0m0s" | ||
enable_selinux = false | ||
sandbox_image = "registry.k8s.io/pause:3.8" | ||
stats_collect_period = 10 | ||
systemd_cgroup = false | ||
enable_tls_streaming = false | ||
max_container_log_line_size = 16384 | ||
disable_cgroup = false | ||
disable_apparmor = false | ||
restrict_oom_score_adj = false | ||
max_concurrent_downloads = 5 | ||
disable_proc_mount = false | ||
[plugins."io.containerd.grpc.v1.cri".containerd] | ||
snapshotter = "overlayfs" | ||
default_runtime_name = "runc" | ||
no_pivot = false | ||
[plugins."io.containerd.grpc.v1.cri".containerd.default_runtime] | ||
runtime_type = "" | ||
runtime_engine = "" | ||
runtime_root = "" | ||
privileged_without_host_devices = false | ||
[plugins."io.containerd.grpc.v1.cri".containerd.untrusted_workload_runtime] | ||
runtime_type = "" | ||
runtime_engine = "" | ||
runtime_root = "" | ||
privileged_without_host_devices = false | ||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes] | ||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc] | ||
runtime_type = "io.containerd.runc.v2" | ||
runtime_engine = "" | ||
runtime_root = "" | ||
privileged_without_host_devices = false | ||
[plugins."io.containerd.grpc.v1.cri".cni] | ||
bin_dir = "/opt/cni/bin" | ||
conf_dir = "/etc/cni/net.d" | ||
max_conf_num = 1 | ||
conf_template = "" | ||
[plugins."io.containerd.grpc.v1.cri".registry] | ||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors] | ||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"] | ||
endpoint = ["https://registry-1.docker.io"] | ||
[plugins."io.containerd.grpc.v1.cri".x509_key_pair_streaming] | ||
tls_cert_file = "" | ||
tls_key_file = "" | ||
[plugins."io.containerd.internal.v1.opt"] | ||
path = "/opt/containerd" | ||
[plugins."io.containerd.internal.v1.restart"] | ||
interval = "10s" | ||
[plugins."io.containerd.metadata.v1.bolt"] | ||
content_sharing_policy = "shared" | ||
[plugins."io.containerd.monitor.v1.cgroups"] | ||
no_prometheus = false | ||
[plugins."io.containerd.runtime.v1.linux"] | ||
shim = "containerd-shim" | ||
runtime = "runc" | ||
runtime_root = "" | ||
no_shim = false | ||
shim_debug = false | ||
[plugins."io.containerd.nri.v1.nri"] | ||
disable = false | ||
disable_connections = false | ||
plugin_config_path = "/etc/nri/conf.d" | ||
plugin_path = "/opt/nri/plugins" | ||
plugin_registration_timeout = "5s" | ||
plugin_request_timeout = "2s" | ||
socket_path = "/var/run/nri/nri.sock" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright 2022 Authors of spidernet-io | ||
// SPDX-License-Identifier: Apache-2.0 | ||
package cgroup | ||
|
||
import ( | ||
"testing" | ||
|
||
. "github.com/onsi/ginkgo/v2" | ||
. "github.com/onsi/gomega" | ||
) | ||
|
||
func TestReliability(t *testing.T) { | ||
RegisterFailHandler(Fail) | ||
RunSpecs(t, "Cgroup Suite") | ||
} | ||
|
||
var _ = BeforeSuite(func() { | ||
|
||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package common | ||
|
||
import "flag" | ||
|
||
var ( | ||
kubeconfig string | ||
) | ||
|
||
const ( | ||
DefaultKubeconfig = "/etc/kubeconfig/confit.yaml" | ||
) | ||
|
||
func init() { | ||
flag.StringVar(&kubeconfig, "kubeconfig", DefaultKubeconfig, "The path of the kubeconfig file") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright The kcrow 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. | ||
|
||
GO111MODULE=on go install github.com/golangci/golangci-lint/cmd/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright The containerd 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. | ||
|
||
GO111MODULE=on go install gotest.tools/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright The containerd 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. | ||
|
||
GO111MODULE=on go install github.com/vearutop/[email protected] |
Oops, something went wrong.