Merge "Add debian package for cni & isolcpus"

This commit is contained in:
Zuul 2021-11-05 05:31:04 +00:00 committed by Gerrit Code Review
commit f1955eff93
12 changed files with 112 additions and 0 deletions

View File

@ -0,0 +1,10 @@
---
debname: golang-github-containernetworking-plugins
debver: 0.9.0-1
dl_path:
name: golang-github-containernetworking-plugins-debian-0.9.0-1.tar.gz
url: https://salsa.debian.org/go-team/packages/golang-github-containernetworking-plugins/-/archive/debian/0.9.0-1/golang-github-containernetworking-plugins-debian-0.9.0-1.tar.gz
md5sum: 8e38d8a13f5dd5ddc17f1a1b21fd3f9d
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true

View File

@ -0,0 +1,5 @@
isolcpus-device-plugin (1.0-1) unstable; urgency=medium
* Initial release.
-- Daniel Safta <daniel.safta@windriver.com> Tue, 20 Oct 2021 11:44:30 -0400

View File

@ -0,0 +1,15 @@
Source: isolcpus-device-plugin
Section: admin
Priority: optional
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
Build-Depends: debhelper-compat (= 13) ,
dh-golang ,
golang-any
Standards-Version: 4.4.1
Homepage: https://www.starlingx.io
Package: isolcpus-device-plugin
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: Expose isolated CPUs to Kubernetes cluster.
Expose isolated CPUs to Kubernetes as devices via the device plugin API.

View File

@ -0,0 +1,24 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: deviceplugin
Upstream-Contact: https://github.com/intel/
Source: https://github.com/intel/intel-device-plugins-for-kubernetes
Files: *
Copyright: (C) 2012-2018 https://github.com/intel/intel-device-plugins-for-kubernetes
License: Apache-2
License: Apache-2
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian-based systems the full text of the Apache version 2.0 license
can be found in `/usr/share/common-licenses/Apache-2.0'.

View File

@ -0,0 +1,2 @@
usr/local/sbin
etc/pmon.d

View File

@ -0,0 +1,16 @@
;
; Copyright (c) 2019 Wind River Systems, Inc.
;
; SPDX-License-Identifier: Apache-2.0
;
[process]
process = isolcpu_plugin
service = isolcpu_plugin
pidfile = /var/run/isolcpu_plugin.pid
style = lsb ; lsb
severity = major ; minor, major, critical
restarts = 3 ; restarts before error assertion
startuptime = 5 ; seconds to wait after process start
interval = 5 ; number of seconds to wait between restarts
debounce = 20 ; number of seconds to wait before degrade clear
subfunction = worker ; pmon will start monitoring once worker config is complete

View File

@ -0,0 +1,14 @@
[Unit]
Description=Kubernetes Isolated CPU Plugin Daemon
Documentation=https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/
After=kubelet.service
Requires=kubelet.service
[Service]
ExecStart=/usr/local/sbin/isolcpu_plugin
ExecStartPost=/bin/bash -c 'echo $MAINPID > /var/run/isolcpu_plugin.pid'
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,3 @@
isolcpu_plugin.service /lib/systemd/system/
isolcpu_plugin.conf /etc/pmond.d/
isolcpu_plugin /usr/local/sbin/

View File

@ -0,0 +1,2 @@
file-in-usr-local
dir-in-usr-local

View File

@ -0,0 +1,13 @@
#!/usr/bin/make -f
%:
dh $@
override_dh_auto_build:
go build -mod=vendor -ldflags=-linkmode=external
override_dh_auto_test:
echo "do nothing"
override_dh_usrlocal:
echo "do nothing"

View File

@ -0,0 +1 @@
3.0 (quilt)

View File

@ -0,0 +1,7 @@
---
debname: isolcpus-device-plugin
debver: 1.0-1
src_path: files
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true