Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Fix method: git for non type: component #271

Merged
merged 1 commit into from
Oct 29, 2019
Merged

Fix method: git for non type: component #271

merged 1 commit into from
Oct 29, 2019

Conversation

evanlouie
Copy link
Contributor

A regression arouse where components of type: helm and method: git were not
being correctly cloned from git during fab install. This fixes this issue and
refactors the InstallComponent code to be less strict on when to meet certain
cases.

This PR also refactors some code for installing components which point to YAML
files over method: http. Previously the logic for the installation of these
components were stored in component.go, this lead to confusion for the logic
in InstallComponent, causing the regression this PR fixes. The logic for
installing static remote components has been refactored into the static.go
generator.

// Install for StaticGenerator gives the ability to point to a single yaml
// manifest over `method: http`; This is a noop for any all other methods.
func (sg *StaticGenerator) Install(c *core.Component) (err error) {
if strings.EqualFold(c.Method, "http") {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@edaena note: the logic for your previous remote yaml components has been moved here

A regression arouse where components of `type: helm` and `method: git` were not
being correctly cloned from git during `fab install`. This fixes this issue and
refactors the `InstallComponent` code to be less strict on when to meet certain
cases.

This PR also refactors some code for installing components which point to YAML
files over `method: http`. Previously the logic for the installation of these
components were stored in `component.go`, this lead to confusion for the logic
in `InstallComponent`, causing the regression this PR fixes. The logic for
installing static remote components has been refactored into the `static.go`
generator.
@evanlouie evanlouie merged commit 41cb60f into master Oct 29, 2019
@evanlouie evanlouie deleted the fix-git-helm branch October 29, 2019 17:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants