From b586796d043b1c352deab6784b3e214945ce5e94f75de2a801085a5b6787b46a Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Tue, 5 Apr 2022 08:46:53 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + _service | 19 +++++++++++ _servicedata | 4 +++ cni-plugin-1.0.1.obscpio | 3 ++ cni-plugin-1.0.1.tar.gz | 3 ++ cni-plugin.obsinfo | 4 +++ flannel-cni-plugin.changes | 4 +++ flannel-cni-plugin.spec | 64 ++++++++++++++++++++++++++++++++++++++ vendor.tar.gz | 3 ++ 10 files changed, 128 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 cni-plugin-1.0.1.obscpio create mode 100644 cni-plugin-1.0.1.tar.gz create mode 100644 cni-plugin.obsinfo create mode 100644 flannel-cni-plugin.changes create mode 100644 flannel-cni-plugin.spec create mode 100644 vendor.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..07c55ff --- /dev/null +++ b/_service @@ -0,0 +1,19 @@ + + + https://github.com/flannel-io/cni-plugin.git + git + v1.0.1 + @PARENT_TAG@ + enable + v(.*) + + + + + *.tar + gz + + + cni-plugin-1.0.1.tar.gz + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..0ee35ca --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/flannel-io/cni-plugin.git + 076c4462d6c6887614fc881b806b690b9e56ceb2 \ No newline at end of file diff --git a/cni-plugin-1.0.1.obscpio b/cni-plugin-1.0.1.obscpio new file mode 100644 index 0000000..fd1d899 --- /dev/null +++ b/cni-plugin-1.0.1.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:92e50c67130bce896e65e3fc13596abd52c1a7632c329ead6a5c4db7e1ff334f +size 189451 diff --git a/cni-plugin-1.0.1.tar.gz b/cni-plugin-1.0.1.tar.gz new file mode 100644 index 0000000..e706b7b --- /dev/null +++ b/cni-plugin-1.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:50de3ba6b18dc4ebd023d3ab0cde179bb68ed4b28fd5d5a57fca976be4cc2285 +size 57266 diff --git a/cni-plugin.obsinfo b/cni-plugin.obsinfo new file mode 100644 index 0000000..7b2f493 --- /dev/null +++ b/cni-plugin.obsinfo @@ -0,0 +1,4 @@ +name: cni-plugin +version: 1.0.1 +mtime: 1642614873 +commit: 076c4462d6c6887614fc881b806b690b9e56ceb2 diff --git a/flannel-cni-plugin.changes b/flannel-cni-plugin.changes new file mode 100644 index 0000000..2c3811f --- /dev/null +++ b/flannel-cni-plugin.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Apr 4 20:19:46 UTC 2022 - Enno Gotthold + +- Inital packaging of version 1.0.1 diff --git a/flannel-cni-plugin.spec b/flannel-cni-plugin.spec new file mode 100644 index 0000000..5b8f8fd --- /dev/null +++ b/flannel-cni-plugin.spec @@ -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 diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 100644 index 0000000..e448ee5 --- /dev/null +++ b/vendor.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd4208c9463a6f2cb60e19d111f4cf2f6c5bca2c43adef66da0202b6896b9019 +size 2611281