Tools initiate a new project in git lab, based on a existing definition
Project description
CndScaffold
Why use CndScaffold
CndScaffold is a python lib, designed to help management of GitOps process. With CndScaffold, you need data and template definition and then CndScaffold do the magic and generate content
Requirements
This lib use
- CndIo : This lib allow you to easilly push conten on gitlab/azuredevops or localfile
- CndPrint : This lib to manage display of alert message
How to use it
source = {
'project_id': 'gitlab-source-project-id',
'definition': 'org-demo1_product1',
'branch': 'main',
}
target = {
'project_id': 'gitlab-target-project-id',
'folder': 'home',
'branch': 'main',
}
data_to_replace = {
'env': ['alpha', 'gamma'],
'client': [{'name': 'A', 'token': 'B'}, {'name': 'A', 'token': 'B'}],
'app': 'beta',
'abc': 'def',
'yaml': {
'abc': 'def',
'ghi': ['jkl', 'lmo']
}
}
level = "Trace"
_print = cndprint.CndPrint(level=level, silent_mode=True)
provider = cnd_io.CndProviderLocalfile(creds={}, print=_print)
cnd_io = cnd_io.CndIO(provider, print=_print)
self.cnd_scaffold = cnd_scaffold.CndScaffold(source, target, data_to_replace, cnd_io, print=_print)
self.cnd_scaffold.build()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for cnd_scaffold-1.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a150cbbe674dca68cc267ba3dcfed53eda4fa61a95bc765f2e767e0ab19bf5d |
|
MD5 | 90f764b62a128a2ca7924f1f3de9f5ef |
|
BLAKE2b-256 | 9325915ddce9b35cea262e3dd69c25027c1271e8c03d389b49d7e6df916adb3e |