Skip to content

Commit f83d701

Browse files
committed
add cni-plugins
Signed-off-by: Josh Wolf <[email protected]>
1 parent 23d83a1 commit f83d701

File tree

2 files changed

+101
-0
lines changed

2 files changed

+101
-0
lines changed

cni-plugins.yaml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
package:
2+
name: cni-plugins
3+
version: 1.3.0
4+
epoch: 0
5+
description: Some reference and example networking plugins, maintained by the CNI team.
6+
copyright:
7+
- license: Apache-2.0
8+
9+
environment:
10+
contents:
11+
packages:
12+
- busybox
13+
- ca-certificates-bundle
14+
- build-base
15+
- go
16+
17+
pipeline:
18+
- uses: git-checkout
19+
with:
20+
repository: https://github.com/containernetworking/plugins
21+
tag: v${{package.version}}
22+
expected-commit: 38f18d26ecfef550b8bac02656cc11103fd7cff1
23+
24+
- runs: |
25+
./build_linux.sh
26+
27+
mkdir -p "${{targets.destdir}}"/usr/bin
28+
cp -a bin/ "${{targets.destdir}}"/usr/bin/
29+
30+
- uses: strip
31+
32+
data:
33+
- name: plugins
34+
items:
35+
bridge: Creates a bridge, adds the host and the container to it.
36+
ipvlan: Adds an ipvlan interface in the container.
37+
loopback: Set the state of loopback interface to up
38+
macvlan: Creates a new MAC address, forwards all traffic to that to the container.
39+
ptp: Creates a veth pair.
40+
vlan: Allocates a vlan device.
41+
host-device: Move an already-existing device into a container.
42+
dummy: Creates a new Dummy device in the container.
43+
dhcp: Runs a daemon on the host to make DHCP requests on behalf of the container
44+
host-local: Maintains a local database of allocated IPs
45+
static: Allocate a single static IPv4/IPv6 address to container. It's useful in debugging purpose.
46+
tuning: Tweaks sysctl parameters of an existing interface
47+
portmap: An iptables-based portmapping plugin. Maps ports from the host's address space to the container.
48+
bandwidth: Allows bandwidth-limiting through use of traffic control tbf (ingress/egress).
49+
sbr: A plugin that configures source based routing for an interface (from which it is chained).
50+
firewall: A firewall plugin which uses iptables or firewalld to add rules to allow traffic to/from the container.
51+
52+
# CNI Plugins, separated into groups
53+
subpackages:
54+
- name: "cni-plugins-main"
55+
pipeline:
56+
- runs: |
57+
mkdir -p "${{targets.subpkgdir}}"/usr/bin
58+
for f in bridge \
59+
ipvlan \
60+
loopback \
61+
macvlan \
62+
ptp \
63+
vlan \
64+
host-device \
65+
dummy; do
66+
cp bin/$f "${{targets.subpkgdir}}"/usr/bin/
67+
done
68+
- name: "cni-plugins-ipam"
69+
pipeline:
70+
- runs: |
71+
mkdir -p "${{targets.subpkgdir}}"/usr/bin
72+
for f in dhcp \
73+
host-local \
74+
static; do
75+
cp bin/$f "${{targets.subpkgdir}}"/usr/bin/
76+
done
77+
- name: "cni-plugins-meta"
78+
pipeline:
79+
- runs: |
80+
mkdir -p "${{targets.subpkgdir}}"/usr/bin
81+
for f in tuning \
82+
portmap \
83+
bandwidth \
84+
sbr \
85+
firewall; do
86+
cp bin/$f "${{targets.subpkgdir}}"/usr/bin/
87+
done
88+
- range: plugins
89+
name: "cni-plugins-${{range.key}}"
90+
description: ${{range.value}}
91+
pipeline:
92+
- runs: |
93+
mkdir -p "${{targets.subpkgdir}}"/usr/bin
94+
cp bin/${{range.key}} "${{targets.subpkgdir}}"/usr/bin
95+
96+
update:
97+
enabled: true
98+
github:
99+
identifier: containernetworking
100+
strip-prefix: v

packages.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,3 +695,4 @@ prometheus-redis-exporter
695695
kubernetes-ingress-defaultbackend
696696
coredns
697697
gatekeeper
698+
cni-plugins

0 commit comments

Comments
 (0)