Sync from SUSE:SLFO:Main cni-plugin-flannel revision 4d653172fd59d49a840b379c895ec1a3

This commit is contained in:
Adrian Schröter 2024-05-03 11:43:09 +02:00
commit 29433bc485
9 changed files with 151 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

19
_service Normal file
View File

@ -0,0 +1,19 @@
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/flannel-io/cni-plugin.git</param>
<param name="scm">git</param>
<param name="revision">v1.2.0</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="changesgenerate">enable</param>
<param name="versionrewrite-pattern">v(.*)</param>
</service>
<service mode="manual" name="set_version" />
<service mode="manual" name="tar" />
<service mode="manual" name="recompress">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service mode="manual" name="go_modules">
<param name="archive">cni-plugin-1.2.0.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">6464faacf5c00e25321573225d74638455ef03a0</param></service></servicedata>

BIN
cni-plugin-1.2.0.obscpio (Stored with Git LFS) Normal file

Binary file not shown.

BIN
cni-plugin-1.2.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,27 @@
-------------------------------------------------------------------
Sun Oct 08 13:01:54 UTC 2023 - egotthold@suse.com
- Update to version 1.2.0:
* Fixed release artifacts path
* FIx bug in actions/download-artifact@v3
* Update go.mod
* Use writeAndSyncFile instead of just write
* Update ginkgo to v2
* Upgrade go version to 1.20.5
* Fix some errors thrown by lint tool
* Updated Docker registry
* only include the binary file for one architecture in the release archive
* update of GH workflows
* Make sure the CNI delete function does not fail when the json config is wrong
* Allow multiple flannel networks and upgrade to Go 1.19.2
* upgrade cni and plugins deps
-------------------------------------------------------------------
Tue Apr 5 08:56:04 UTC 2022 - Enno Gotthold <egotthold@suse.com>
- Change package name to cni-plugin-flannel from flannel-cni-plugin
-------------------------------------------------------------------
Mon Apr 4 20:19:46 UTC 2022 - Enno Gotthold <egotthold@suse.com>
- Inital packaging of version 1.0.1

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

@ -0,0 +1,65 @@
#
# spec file for package cni-plugin-flannel
#
# Copyright (c) 2023 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: cni-plugin-flannel
Version: 1.2.0
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-packaging
BuildRequires: golang(API) >= 1.16
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

4
cni-plugin.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: cni-plugin
version: 1.2.0
mtime: 1689951085
commit: 6464faacf5c00e25321573225d74638455ef03a0

BIN
vendor.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.