Accepting request 966959 from home:SchoolGuy

Flannel was removed from cni-plugins and thus we need this new package to still
have it available. I am not sure about the final location of the binary though.

OBS-URL: https://build.opensuse.org/request/show/966959
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/cni-plugin-flannel?expand=0&rev=1
This commit is contained in:
Fabian Vogt 2022-04-05 08:46:53 +00:00 committed by Git OBS Bridge
commit b586796d04
10 changed files with 128 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

19
_service Normal file
View File

@ -0,0 +1,19 @@
<services>
<service name="obs_scm" mode="disabled">
<param name="url">https://github.com/flannel-io/cni-plugin.git</param>
<param name="scm">git</param>
<param name="revision">v1.0.1</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="changesgenerate">enable</param>
<param name="versionrewrite-pattern">v(.*)</param>
</service>
<service mode="disabled" name="set_version" />
<service mode="disabled" name="tar" />
<service mode="disabled" name="recompress">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service mode="disabled" name="go_modules">
<param name="archive">cni-plugin-1.0.1.tar.gz</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/flannel-io/cni-plugin.git</param>
<param name="changesrevision">076c4462d6c6887614fc881b806b690b9e56ceb2</param></service></servicedata>

3
cni-plugin-1.0.1.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:92e50c67130bce896e65e3fc13596abd52c1a7632c329ead6a5c4db7e1ff334f
size 189451

3
cni-plugin-1.0.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:50de3ba6b18dc4ebd023d3ab0cde179bb68ed4b28fd5d5a57fca976be4cc2285
size 57266

4
cni-plugin.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: cni-plugin
version: 1.0.1
mtime: 1642614873
commit: 076c4462d6c6887614fc881b806b690b9e56ceb2

View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Mon Apr 4 20:19:46 UTC 2022 - Enno Gotthold <egotthold@suse.com>
- Inital packaging of version 1.0.1

64
flannel-cni-plugin.spec Normal file
View File

@ -0,0 +1,64 @@
#
# spec file for package flannel-cni-plugin
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cni_dir %{_libexecdir}/cni
Name: flannel-cni-plugin
Version: 1.0.1
Release: 0
Summary: A CNI network plugin that is powered by flannel
License: Apache-2.0
URL: https://github.com/flannel-io/cni-plugin
Source0: cni-plugin-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: golang(API) >= 1.16
BuildRequires: golang-packaging
Requires: flannel
%description
This plugin is designed to work in conjunction with flannel, a network fabric
for containers. When flannel daemon is started, it outputs a
/run/flannel/subnet.env file that looks like this:
FLANNEL_NETWORK=10.1.0.0/16
FLANNEL_SUBNET=10.1.17.1/24
FLANNEL_MTU=1472
FLANNEL_IPMASQ=true
This information reflects the attributes of flannel network on the host. The
flannel CNI plugin uses this information to configure another CNI plugin, such
as bridge plugin.
%prep
%autosetup -n cni-plugin-%{version} -a 1
%build
%{goprep} github.com/flannel-io/cni-plugin
%{gobuild}
%install
%{goinstall}
mkdir -p %{buildroot}%{cni_dir}
mv %{buildroot}%{_bindir}/cni-plugin %{buildroot}%{cni_dir}/flannel
%files
%license LICENSE
%doc README.md
%dir %{cni_dir}/
%{cni_dir}/flannel
%changelog

3
vendor.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bd4208c9463a6f2cb60e19d111f4cf2f6c5bca2c43adef66da0202b6896b9019
size 2611281