pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-c7n-kube: Import py-c7n-kube-0.2.41 as wip/py-c7n-kube



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Sat Nov 16 12:13:52 2024 +0100
Changeset:	abec27c05cc1ef1ea4895c7dc029435e5a64262d

Added Files:
	py-c7n-kube/ALTERNATIVES
	py-c7n-kube/DESCR
	py-c7n-kube/Makefile
	py-c7n-kube/PLIST
	py-c7n-kube/TODO
	py-c7n-kube/distinfo

Log Message:
py-c7n-kube: Import py-c7n-kube-0.2.41 as wip/py-c7n-kube

Cloud Custodian Kubernetes Support.

Cloud Custodian can run policies directly inside your cluster,
reporting on resources that violate those policies, or blocking them
altogether.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=abec27c05cc1ef1ea4895c7dc029435e5a64262d

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-c7n-kube/ALTERNATIVES |   2 +
 py-c7n-kube/DESCR        |   5 +++
 py-c7n-kube/Makefile     |  31 ++++++++++++++
 py-c7n-kube/PLIST        | 109 +++++++++++++++++++++++++++++++++++++++++++++++
 py-c7n-kube/TODO         |   1 +
 py-c7n-kube/distinfo     |   5 +++
 6 files changed, 153 insertions(+)

diffs:
diff --git a/py-c7n-kube/ALTERNATIVES b/py-c7n-kube/ALTERNATIVES
new file mode 100644
index 0000000000..3335ce42b6
--- /dev/null
+++ b/py-c7n-kube/ALTERNATIVES
@@ -0,0 +1,2 @@
+bin/c7n-kates @PREFIX@/bin/c7n-kates@PYVERSSUFFIX@
+bin/c7n-kube @PREFIX@/bin/c7n-kube@PYVERSSUFFIX@
diff --git a/py-c7n-kube/DESCR b/py-c7n-kube/DESCR
new file mode 100644
index 0000000000..e31747f07f
--- /dev/null
+++ b/py-c7n-kube/DESCR
@@ -0,0 +1,5 @@
+Cloud Custodian Kubernetes Support.
+
+Cloud Custodian can run policies directly inside your cluster,
+reporting on resources that violate those policies, or blocking them
+altogether.
diff --git a/py-c7n-kube/Makefile b/py-c7n-kube/Makefile
new file mode 100644
index 0000000000..98d112ce34
--- /dev/null
+++ b/py-c7n-kube/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.13 2023/06/06 12:42:49 riastradh Exp $
+
+DISTNAME=	c7n-0.9.42.0
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/c7n/c7n-kube/:S/0.9.42.0/0.2.41/}
+CATEGORIES=	devel python
+MASTER_SITES=	${MASTER_SITE_GITHUB:=cloud-custodian/}
+GITHUB_PROJECT=	cloud-custodian
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://cloudcustodian.io/
+COMMENT=	Cloud Custodian Kubernetes Support
+LICENSE=	apache-2.0
+
+WHEEL_NAME=	c7n_kube-${PKGVERSION_NOREV}
+
+# FIXME: we should not hardcode version here!
+WRKSRC=		${WRKDIR}/${GITHUB_PROJECT}-0.9.42.0/tools/c7n_kube
+
+TOOL_DEPENDS+=	${PYPKGPREFIX}-poetry-core>=1.0.0:../../devel/py-poetry-core
+DEPENDS+=	${PYPKGPREFIX}-c7n-[0-9]*:../../wip/py-c7n
+DEPENDS+=	${PYPKGPREFIX}-jsonpatch>=1.32:../../wip/py-jsonpatch
+DEPENDS+=	${PYPKGPREFIX}-kubernetes>=10.0.1:../../sysutils/py-kubernetes
+
+USE_LANGUAGES=	# none
+
+post-install:
+	${MV} ${DESTDIR}${PREFIX}/bin/c7n-kates ${DESTDIR}${PREFIX}/bin/c7n-kates${PYVERSSUFFIX}
+	${MV} ${DESTDIR}${PREFIX}/bin/c7n-kube ${DESTDIR}${PREFIX}/bin/c7n-kube${PYVERSSUFFIX}
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-c7n-kube/PLIST b/py-c7n-kube/PLIST
new file mode 100644
index 0000000000..0b2f82bbcf
--- /dev/null
+++ b/py-c7n-kube/PLIST
@@ -0,0 +1,109 @@
+@comment $NetBSD$
+bin/c7n-kates${PYVERSSUFFIX}
+bin/c7n-kube${PYVERSSUFFIX}
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/c7n_kube/__init__.py
+${PYSITELIB}/c7n_kube/__init__.pyc
+${PYSITELIB}/c7n_kube/__init__.pyo
+${PYSITELIB}/c7n_kube/actions/__init__.py
+${PYSITELIB}/c7n_kube/actions/__init__.pyc
+${PYSITELIB}/c7n_kube/actions/__init__.pyo
+${PYSITELIB}/c7n_kube/actions/core.py
+${PYSITELIB}/c7n_kube/actions/core.pyc
+${PYSITELIB}/c7n_kube/actions/core.pyo
+${PYSITELIB}/c7n_kube/actions/labels.py
+${PYSITELIB}/c7n_kube/actions/labels.pyc
+${PYSITELIB}/c7n_kube/actions/labels.pyo
+${PYSITELIB}/c7n_kube/actions/shared.py
+${PYSITELIB}/c7n_kube/actions/shared.pyc
+${PYSITELIB}/c7n_kube/actions/shared.pyo
+${PYSITELIB}/c7n_kube/cli.py
+${PYSITELIB}/c7n_kube/cli.pyc
+${PYSITELIB}/c7n_kube/cli.pyo
+${PYSITELIB}/c7n_kube/client.py
+${PYSITELIB}/c7n_kube/client.pyc
+${PYSITELIB}/c7n_kube/client.pyo
+${PYSITELIB}/c7n_kube/entry.py
+${PYSITELIB}/c7n_kube/entry.pyc
+${PYSITELIB}/c7n_kube/entry.pyo
+${PYSITELIB}/c7n_kube/exceptions.py
+${PYSITELIB}/c7n_kube/exceptions.pyc
+${PYSITELIB}/c7n_kube/exceptions.pyo
+${PYSITELIB}/c7n_kube/filters.py
+${PYSITELIB}/c7n_kube/filters.pyc
+${PYSITELIB}/c7n_kube/filters.pyo
+${PYSITELIB}/c7n_kube/policy.py
+${PYSITELIB}/c7n_kube/policy.pyc
+${PYSITELIB}/c7n_kube/policy.pyo
+${PYSITELIB}/c7n_kube/provider.py
+${PYSITELIB}/c7n_kube/provider.pyc
+${PYSITELIB}/c7n_kube/provider.pyo
+${PYSITELIB}/c7n_kube/query.py
+${PYSITELIB}/c7n_kube/query.pyc
+${PYSITELIB}/c7n_kube/query.pyo
+${PYSITELIB}/c7n_kube/resources/__init__.py
+${PYSITELIB}/c7n_kube/resources/__init__.pyc
+${PYSITELIB}/c7n_kube/resources/__init__.pyo
+${PYSITELIB}/c7n_kube/resources/apps/__init__.py
+${PYSITELIB}/c7n_kube/resources/apps/__init__.pyc
+${PYSITELIB}/c7n_kube/resources/apps/__init__.pyo
+${PYSITELIB}/c7n_kube/resources/apps/daemonset.py
+${PYSITELIB}/c7n_kube/resources/apps/daemonset.pyc
+${PYSITELIB}/c7n_kube/resources/apps/daemonset.pyo
+${PYSITELIB}/c7n_kube/resources/apps/deployment.py
+${PYSITELIB}/c7n_kube/resources/apps/deployment.pyc
+${PYSITELIB}/c7n_kube/resources/apps/deployment.pyo
+${PYSITELIB}/c7n_kube/resources/apps/replicaset.py
+${PYSITELIB}/c7n_kube/resources/apps/replicaset.pyc
+${PYSITELIB}/c7n_kube/resources/apps/replicaset.pyo
+${PYSITELIB}/c7n_kube/resources/apps/statefulset.py
+${PYSITELIB}/c7n_kube/resources/apps/statefulset.pyc
+${PYSITELIB}/c7n_kube/resources/apps/statefulset.pyo
+${PYSITELIB}/c7n_kube/resources/core/__init__.py
+${PYSITELIB}/c7n_kube/resources/core/__init__.pyc
+${PYSITELIB}/c7n_kube/resources/core/__init__.pyo
+${PYSITELIB}/c7n_kube/resources/core/configmap.py
+${PYSITELIB}/c7n_kube/resources/core/configmap.pyc
+${PYSITELIB}/c7n_kube/resources/core/configmap.pyo
+${PYSITELIB}/c7n_kube/resources/core/namespace.py
+${PYSITELIB}/c7n_kube/resources/core/namespace.pyc
+${PYSITELIB}/c7n_kube/resources/core/namespace.pyo
+${PYSITELIB}/c7n_kube/resources/core/node.py
+${PYSITELIB}/c7n_kube/resources/core/node.pyc
+${PYSITELIB}/c7n_kube/resources/core/node.pyo
+${PYSITELIB}/c7n_kube/resources/core/pod.py
+${PYSITELIB}/c7n_kube/resources/core/pod.pyc
+${PYSITELIB}/c7n_kube/resources/core/pod.pyo
+${PYSITELIB}/c7n_kube/resources/core/replicationcontroller.py
+${PYSITELIB}/c7n_kube/resources/core/replicationcontroller.pyc
+${PYSITELIB}/c7n_kube/resources/core/replicationcontroller.pyo
+${PYSITELIB}/c7n_kube/resources/core/secret.py
+${PYSITELIB}/c7n_kube/resources/core/secret.pyc
+${PYSITELIB}/c7n_kube/resources/core/secret.pyo
+${PYSITELIB}/c7n_kube/resources/core/service.py
+${PYSITELIB}/c7n_kube/resources/core/service.pyc
+${PYSITELIB}/c7n_kube/resources/core/service.pyo
+${PYSITELIB}/c7n_kube/resources/core/serviceaccount.py
+${PYSITELIB}/c7n_kube/resources/core/serviceaccount.pyc
+${PYSITELIB}/c7n_kube/resources/core/serviceaccount.pyo
+${PYSITELIB}/c7n_kube/resources/core/volume.py
+${PYSITELIB}/c7n_kube/resources/core/volume.pyc
+${PYSITELIB}/c7n_kube/resources/core/volume.pyo
+${PYSITELIB}/c7n_kube/resources/crd.py
+${PYSITELIB}/c7n_kube/resources/crd.pyc
+${PYSITELIB}/c7n_kube/resources/crd.pyo
+${PYSITELIB}/c7n_kube/resources/rbac/role.py
+${PYSITELIB}/c7n_kube/resources/rbac/role.pyc
+${PYSITELIB}/c7n_kube/resources/rbac/role.pyo
+${PYSITELIB}/c7n_kube/resources/resource_map.py
+${PYSITELIB}/c7n_kube/resources/resource_map.pyc
+${PYSITELIB}/c7n_kube/resources/resource_map.pyo
+${PYSITELIB}/c7n_kube/server.py
+${PYSITELIB}/c7n_kube/server.pyc
+${PYSITELIB}/c7n_kube/server.pyo
+${PYSITELIB}/c7n_kube/utils.py
+${PYSITELIB}/c7n_kube/utils.pyc
+${PYSITELIB}/c7n_kube/utils.pyo
diff --git a/py-c7n-kube/TODO b/py-c7n-kube/TODO
new file mode 100644
index 0000000000..1541291c19
--- /dev/null
+++ b/py-c7n-kube/TODO
@@ -0,0 +1 @@
+- We should reuse bits from py-c7n instead of hardcoding them
diff --git a/py-c7n-kube/distinfo b/py-c7n-kube/distinfo
new file mode 100644
index 0000000000..f7602ad999
--- /dev/null
+++ b/py-c7n-kube/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.10 2023/05/26 20:00:17 adam Exp $
+
+BLAKE2s (c7n-0.9.42.0.tar.gz) = beda6512ef360f8d8663629389429b3d715f0e43c6ba60b52fe0f2d334795033
+SHA512 (c7n-0.9.42.0.tar.gz) = 47163196e421330b11a3dcfa4ead2c201b1a6f8c1716ab5de31518803c212c7c7ae7e7b89b6b4e0d57c1c1f07e444448eb7e179fff89be06cbcaa1f4bc1702b9
+Size (c7n-0.9.42.0.tar.gz) = 18602784 bytes


Home | Main Index | Thread Index | Old Index