Codebase list bundlewrap / debian/3.6.2-1
New upstream release Jonathan Carter 4 years ago
12 changed file(s) with 28 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
0 # 3.6.2
1
2 2019-07-25
3
4 * fixed `None` not being accepted as a file/directory mode
5 * fixed overriding resource name in k8s manifests
6
7
08 # 3.6.1
19
210 2019-03-12
00 # -*- coding: utf-8 -*-
11 from __future__ import unicode_literals
22
3 VERSION = (3, 6, 1)
3 VERSION = (3, 6, 2)
44 VERSION_STRING = ".".join([str(v) for v in VERSION])
2828 node = get_node(repo, args['node'], adhoc_nodes=args['adhoc_nodes'])
2929 for line in graph_for_items(
3030 node.name,
31 prepare_dependencies(node.items, node.name, node.os, node.os_version),
31 prepare_dependencies(node.items, node.os, node.os_version),
3232 cluster=args['cluster'],
3333 concurrency=args['depends_concurrency'],
3434 static=args['depends_static'],
2424 if not node.items:
2525 io.stdout(_("{x} {node} has no items").format(node=bold(node.name), x=yellow("!")))
2626 continue
27 item_queue = ItemTestQueue(node.items, node.name, node.os, node.os_version)
27 item_queue = ItemTestQueue(node.items, node.os, node.os_version)
2828 while not QUIT_EVENT.is_set():
2929 try:
3030 item = item_queue.pop()
583583
584584
585585 @io.job_wrapper(_("{} processing dependencies").format(bold("{1}")))
586 def prepare_dependencies(items, node_name, node_os, node_os_version):
586 def prepare_dependencies(items, node_os, node_os_version):
587587 """
588588 Performs all dependency preprocessing on a list of items.
589589 """
1414
1515
1616 class BaseQueue(object):
17 def __init__(self, items, node_name, node_os, node_os_version):
18 self.items_with_deps = prepare_dependencies(items, node_name, node_os, node_os_version)
17 def __init__(self, items, node_os, node_os_version):
18 self.items_with_deps = prepare_dependencies(items, node_os, node_os_version)
1919 self.items_without_deps = []
2020 self._split()
2121 self.pending_items = []
1616
1717
1818 def validator_mode(item_id, value):
19 if value is None:
20 return
21
1922 value = str(value)
2023 if not value.isdigit():
2124 raise BundleError(
130130 'apiVersion': self.KUBERNETES_APIVERSION,
131131 'kind': self.KIND,
132132 'metadata': {
133 'name': self.resource_name,
133 'name': self.name.split("/", 1)[-1],
134134 },
135135 },
136136 user_manifest,
168168
169169 @property
170170 def resource_name(self):
171 return self.name.split("/", 1)[-1]
171 return self._manifest_dict['metadata']['name']
172172
173173 def sdict(self):
174174 result = run_local(self._kubectl + ["get", "-o", "json", self.KIND, self.resource_name])
134134 workers=1,
135135 interactive=False,
136136 ):
137 item_queue = ItemQueue(node.items, node.name, node.os, node.os_version)
137 item_queue = ItemQueue(node.items, node.os, node.os_version)
138138 # the item queue might contain new generated items (canned actions,
139139 # dummy items); adjust progress total accordingly
140140 extra_items = len(item_queue.all_items) - len(node.items)
0 bundlewrap (3.6.2-1) unstable; urgency=medium
1
2 * New upstream release
3
4 -- Jonathan Carter <jcc@debian.org> Thu, 01 Aug 2019 09:45:18 +0000
5
06 bundlewrap (3.6.1-2) unstable; urgency=medium
17
28 * Initial source-only upload
3939 <tr><td><a href="../../items/directory">directory</a></td><td><code>directories</code></td><td>Manages permissions and ownership for directories</td></tr>
4040 <tr><td><a href="../../items/file">file</a></td><td><code>files</code></td><td>Manages contents, permissions, and ownership for files</td></tr>
4141 <tr><td><a href="../../items/group">group</a></td><td><code>groups</code></td><td>Manages groups by wrapping <code>groupadd</code>, <code>groupmod</code> and <code>groupdel</code></td></tr>
42 <tr><td><a href="../../items/k8s">k8s_*</a></td><td><code>k8s_*</code></td><td>Manages resources in Kubernetes clusters by wrapping <code>kuebctl</code></td></tr>
42 <tr><td><a href="../../items/k8s">k8s_*</a></td><td><code>k8s_*</code></td><td>Manages resources in Kubernetes clusters by wrapping <code>kubectl</code></td></tr>
4343 <tr><td><a href="../../items/pkg_apt">pkg_apt</a></td><td><code>pkg_apt</code></td><td>Installs and removes packages with APT</td></tr>
4444 <tr><td><a href="../../items/pkg_dnf">pkg_dnf</a></td><td><code>pkg_dnf</code></td><td>Installs and removes packages with dnf</td></tr>
4545 <tr><td><a href="../../items/pkg_opkg">pkg_opkg</a></td><td><code>pkg_opkg</code></td><td>Installs and removes packages with opkg</td></tr>
1616
1717 setup(
1818 name="bundlewrap",
19 version="3.6.1",
19 version="3.6.2",
2020 description="Config management with Python",
2121 long_description=(
2222 "By allowing for easy and low-overhead config management, BundleWrap fills the gap between complex deployments using Chef or Puppet and old school system administration over SSH.\n"