Accepting request 630733 from home:RBrownSUSE:branches:Virtualization:containers

Please stage with incoming cri-o, kubernetes, skelcd-control-kubic and patterns-caasp

OBS-URL: https://build.opensuse.org/request/show/630733
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=260
This commit is contained in:
Aleksa Sarai 2018-08-21 10:12:51 +00:00 committed by Git OBS Bridge
parent cc1fefc9bf
commit b184f95d9f
3 changed files with 42 additions and 0 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Aug 21 09:39:57 UTC 2018 - rbrown@suse.com
- Kubic: Make crio default, docker as alternative runtime
(boo#1104821)
- Provide kubernetes CRI config with docker-kubic-kubeadm-criconfig
subpackage
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 16 02:00:31 UTC 2018 - asarai@suse.com Thu Aug 16 02:00:31 UTC 2018 - asarai@suse.com

View File

@ -65,6 +65,7 @@ Source1: docker.service
Source2: docker-kubic-service.conf Source2: docker-kubic-service.conf
Source3: 80-docker.rules Source3: 80-docker.rules
Source4: sysconfig.docker Source4: sysconfig.docker
Source5: kubelet.env
Source6: docker-rpmlintrc Source6: docker-rpmlintrc
Source7: README_SUSE.md Source7: README_SUSE.md
Source8: docker-audit.rules Source8: docker-audit.rules
@ -147,6 +148,8 @@ Obsoletes: %{realname}_1_12_6
# Conflict with non-kubic package, and provide equivalent # Conflict with non-kubic package, and provide equivalent
Conflicts: %{realname} Conflicts: %{realname}
Provides: %{realname} = %{version} Provides: %{realname} = %{version}
# Kubernetes requires cri-runtime, which should be provided only by the -kubic flavour of this package
Provides: cri-runtime
%endif %endif
%description %description
@ -229,6 +232,20 @@ Provides: %{realname}-test = %{version}
%description test %description test
Test package for docker. It contains the source code and the tests. Test package for docker. It contains the source code and the tests.
%if "%flavour" == "kubic"
%package kubeadm-criconfig
Summary: docker container runtime configuration for kubeadm
Group: System/Management
Requires: kubernetes-kubeadm
Requires(post): %fillup_prereq
Supplements: docker-kubic
Provides: kubernetes-kubeadm-criconfig
Conflicts: cri-o-kubeadm-criconfig
%description kubeadm-criconfig
docker container runtime configuration for kubeadm
%endif
%prep %prep
%setup -q -n %{realname}-%{version} %setup -q -n %{realname}-%{version}
%if 0%{?is_opensuse} %if 0%{?is_opensuse}
@ -368,6 +385,11 @@ install -p -m 644 components/cli/man/man5/Dockerfile.5 %{buildroot}%{_mandir}/ma
install -d %{buildroot}%{_mandir}/man8 install -d %{buildroot}%{_mandir}/man8
install -p -m 644 components/cli/man/man8/*.8 %{buildroot}%{_mandir}/man8 install -p -m 644 components/cli/man/man8/*.8 %{buildroot}%{_mandir}/man8
%if "%flavour" == "kubic"
# place kubelet.env in fillupdir (for kubeadm-criconfig)
install -D -m 0644 %{SOURCE5} %{buildroot}%{_fillupdir}/sysconfig.kubelet
%endif
%fdupes %{buildroot} %fdupes %{buildroot}
%pre %pre
@ -389,6 +411,11 @@ getent group docker >/dev/null || groupadd -r docker
%service_del_postun containerd.service containerd.socket %service_del_postun containerd.service containerd.socket
) )
%if "%flavour" == "kubic"
%post kubeadm-criconfig
%fillup_only -n kubelet
%endif
%preun %preun
%service_del_preun %{realname}.service %service_del_preun %{realname}.service
@ -436,4 +463,10 @@ getent group docker >/dev/null || groupadd -r docker
%exclude %{_prefix}/src/docker/engine/contrib/init/sysvinit-redhat %exclude %{_prefix}/src/docker/engine/contrib/init/sysvinit-redhat
%exclude %{_prefix}/src/docker/engine/contrib/init/upstart %exclude %{_prefix}/src/docker/engine/contrib/init/upstart
%if "%flavour" == "kubic"
%files kubeadm-criconfig
%defattr(-,root,root)
%{_fillupdir}/sysconfig.kubelet
%endif
%changelog %changelog

1
kubelet.env Normal file
View File

@ -0,0 +1 @@
KUBELET_EXTRA_ARGS="--cni-bin-dir=/usr/lib/cni"