fix(git): allow specifying git refs for sources
This allows, e.g., pointing at a particular Gerrit Patch Set using
natural configuration, e.g.:
---
schema: armada/Chart/v1
metadata:
schema: metadata/Document/v1
name: ceph-config
data:
chart_name: ceph-config
release: ceph-config
namespace: ucp
timeout: 3600
install:
no_hooks: true
upgrade:
no_hooks: true
values: {}
source:
type: git
location: https://github.com/openstack/openstack-helm
subpath: ceph
reference: refs/changes/54/457754/73
dependencies: []
Change-Id: Ib6af0fec2bbfa1fa4e523d839df44af047697522
This commit is contained in:
@@ -152,7 +152,7 @@ class Armada(object):
|
||||
repo_dir = source.git_clone(*repo_branch)
|
||||
except Exception:
|
||||
raise source_exceptions.GitLocationException(
|
||||
'{} branch: {}'.format(*repo_branch))
|
||||
'{} reference: {}'.format(*repo_branch))
|
||||
repos[repo_branch] = repo_dir
|
||||
ch.get('chart')['source_dir'] = (repo_dir, subpath)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user