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

Commit

Permalink
fixup! components: Add istio-operator
Browse files Browse the repository at this point in the history
  • Loading branch information
surajssd committed Jul 20, 2020
1 parent 16cc128 commit 0c68883
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkg/components/istio-operator/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
)

const (
name = "istio-operator"
name = "experimental-istio-operator"
)

// nolint:gochecknoinits
Expand All @@ -50,9 +50,7 @@ func (c *component) LoadConfig(configBody *hcl.Body, evalContext *hcl.EvalContex
diagnostics := hcl.Diagnostics{}

if configBody == nil {
return hcl.Diagnostics{
components.HCLDiagConfigBodyNil,
}
return hcl.Diagnostics{}
}

d := gohcl.DecodeBody(*configBody, evalContext, c)
Expand All @@ -65,7 +63,7 @@ func (c *component) LoadConfig(configBody *hcl.Body, evalContext *hcl.EvalContex
}

func (c *component) RenderManifests() (map[string]string, error) {
helmChart, err := util.LoadChartFromAssets("/components/" + name)
helmChart, err := util.LoadChartFromAssets("/components/istio-operator")
if err != nil {
return nil, fmt.Errorf("load chart from assets: %w", err)
}
Expand Down

0 comments on commit 0c68883

Please sign in to comment.