File external-dns.spec of Package external-dns
#
# spec file for package external-dns
#
# 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/
#
Name: external-dns
Version: 0.18.0+git.1a2d18f3
Release: 0
Summary: Configure external DNS servers for Kubernetes Ingresses and Services
License: Apache-2.0
URL: https://github.com/kubernetes-sigs/external-dns
Source: %{name}-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: golang-packaging
BuildRequires: controller-tools
%{go_provides}
%description
Inspired by Kubernetes DNS, Kubernetes' cluster-internal DNS server,
ExternalDNS makes Kubernetes resources discoverable via public DNS servers.
Like KubeDNS, it retrieves a list of resources (Services, Ingresses, etc.)
from the Kubernetes API to determine a desired list of DNS records.
Unlike KubeDNS, however, it's not a DNS server itself, but merely configures
other DNS providers accordingly—e.g. AWS Route 53 or Google Cloud DNS.
In a broader sense, ExternalDNS allows you to control DNS records dynamically
via Kubernetes resources in a DNS provider-agnostic way.
%prep
%setup -qa1
%build
REV="%{version}"
VERSION="${REV%%+*}"
GITCOMMIT="${REV##*.}"
#BUILDDATE=$(date -u --rfc-3339=seconds)
#BUILDDATE=${BUILDDATE// /T}
make GO_FLAGS="-mod=vendor -buildmode=pie" GIT_COMMIT="${GITCOMMIT}" VERSION="${VERSION}" build
%install
# Install the binary.
mkdir -p %{buildroot}%{_bindir}/
install -m 0755 build/external-dns %{buildroot}%{_bindir}/external-dns
%files
%license LICENSE.md
%doc README.md
%{_bindir}/external-dns
%dir %{_bindir}
%changelog