Open BertelBB opened 4 years ago
Verified this bug (feature request?).
component.yaml file
name: hld
type: component
subcomponents:
- name: sample-service
type: static
source: https://github.com/andrewDoing/test-sample-service
method: git
path: "./manifests"
branch: master
Ran ./fab install
After running fab install
Bug Details:
The sample-service component uses type: static
with method: git
. In static.go
, the Install
function only handles components with method: http
. There needs to be a case added for method: git
. Since the case isn't handled, this might need to be reclassified as a feature request.
Describe the bug:
I have a subcomponent that sources a private git repository, including raw YAML files in a subdirectory. As described in the component definition for type
Here is my component.yaml file
Here is the ouput I get when running
fab install
(with sample-service as the only subcomponent for simplicity)As you can see, the command seems to run successfully. However, the resulting components directory is missing the sample-service all together (see screenshot below).
I have also tried defining the sample-service subcomponent as the root component with no children, and am getting the same results.
To Reproduce:
Define a (sub)component of
type: static
,method: git
, andpath: <subpath>
and executeTOKEN=<token> fab install
(SAMPLE_SERVICE_TOKEN in my case)Expected behavior:
I would expect the components directory to contain a sample-service directory, including its YAML files found in the
path: manifests
subdirectory of the repository.Screenshots:
The resulting components directory after running
SAMPLE_SERVICE_TOKEN=<token> fab install
Additional context:
The sample-service is on a BitBucket Server and I am using a Personal Access Token. I have setup the access.yaml file in the root directory (same level as component.yaml) and that works fine.
access.yaml
:Desktop (please complete the following information):