forked from pool/cni-plugin-dnsname
Accepting request 840059 from devel:kubic
New Package "cni-plugin-dnsname". Useful for enabling podman containers to resolve each other by name. OBS-URL: https://build.opensuse.org/request/show/840059 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cni-plugin-dnsname?expand=0&rev=1
This commit is contained in:
commit
a00c9d7a03
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
18
_service
Normal file
18
_service
Normal file
@ -0,0 +1,18 @@
|
||||
<services>
|
||||
<service name="obs_scm" mode="disabled">
|
||||
<param name="url">https://github.com/containers/dnsname.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="filename">dnsname</param>
|
||||
<param name="exclude">.git</param>
|
||||
<param name="versionformat">1.0.0</param>
|
||||
<param name="revision">v1.0.0</param>
|
||||
</service>
|
||||
<service name="tar" mode="buildtime"/>
|
||||
<service name="recompress" mode="buildtime">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
<service name="set_version" mode="buildtime">
|
||||
<param name="basename">dnsname</param>
|
||||
</service>
|
||||
</services>
|
4
_servicedata
Normal file
4
_servicedata
Normal file
@ -0,0 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/containers/dnsname.git</param>
|
||||
<param name="changesrevision">fe71acc2f06cf07a27ad4f575cea92b7712115b5</param></service></servicedata>
|
10
cni-plugin-dnsname.changes
Normal file
10
cni-plugin-dnsname.changes
Normal file
@ -0,0 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 7 10:44:02 UTC 2020 - Ralf Haferkamp <rhafer@suse.com>
|
||||
|
||||
- remove empty scriptlets
|
||||
- Adjust build flags to create PIE binary
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 29 12:50:28 UTC 2020 - Ralf Haferkamp <rhafer@suse.com>
|
||||
|
||||
- Initial release v1.0.0
|
53
cni-plugin-dnsname.spec
Normal file
53
cni-plugin-dnsname.spec
Normal file
@ -0,0 +1,53 @@
|
||||
# spec file for package cni-plugin-dnsname
|
||||
#
|
||||
# Copyright (c) 2020 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/
|
||||
#
|
||||
|
||||
|
||||
Name: cni-plugin-dnsname
|
||||
Version: 1.0.0
|
||||
Release: 0
|
||||
Summary: CNI plugin to provide name resolution for containers
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/containers/dnsname
|
||||
Source: dnsname-%{version}.tar.xz
|
||||
BuildRequires: golang-packaging
|
||||
BuildRequires: golang(API) >= 1.13
|
||||
Requires: cni
|
||||
|
||||
%description
|
||||
This CNI plugin sets up the use of dnsmasq on a given CNI network so that Pods
|
||||
can resolve each other by name. When configured, the pod and its IP address are
|
||||
added to a network specific hosts file that dnsmasq reads in. Similarly, when a
|
||||
pod is removed from the network, it will remove the entry from the hosts file.
|
||||
Each CNI network will have its own dnsmasq instance.
|
||||
|
||||
The dnsname plugin was specifically designed for the Podman container engine.
|
||||
|
||||
%prep
|
||||
%setup -q -n dnsname-%{version}
|
||||
|
||||
%build
|
||||
%make_build GO_BUILD="GO111MODULE=on go build -mod=vendor -buildmode=pie" binaries
|
||||
|
||||
%install
|
||||
PREFIX=/usr %make_install
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md README_PODMAN.md
|
||||
%dir %{_libexecdir}/cni
|
||||
%{_libexecdir}/cni/dnsname
|
||||
|
||||
%changelog
|
3
dnsname-1.0.0.obscpio
Normal file
3
dnsname-1.0.0.obscpio
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ec3c07acdd4249767b9fccf64bcb4a12c43b8dc4c8dcc4ffcf1843b62f06e956
|
||||
size 13438989
|
5
dnsname.obsinfo
Normal file
5
dnsname.obsinfo
Normal file
@ -0,0 +1,5 @@
|
||||
name: dnsname
|
||||
version: 1.0.0
|
||||
mtime: 1600093700
|
||||
commit: fe71acc2f06cf07a27ad4f575cea92b7712115b5
|
||||
|
Loading…
x
Reference in New Issue
Block a user