Skip to content

Commit

Permalink
asset/manifests: fix filepath for ingress crd
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavdahiya committed Nov 27, 2018
1 parent adebbb9 commit aeeeb83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/asset/manifests/ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (ing *Ingress) Generate(dependencies asset.Parents) error {

ing.FileList = []*asset.File{
{
Filename: filepath.Join(content.TemplateDir, ingCrdFilename),
Filename: filepath.Join(manifestDir, ingCrdFilename),
Data: []byte(crdData),
},
{
Expand All @@ -92,7 +92,7 @@ func (ing *Ingress) Files() []*asset.File {

// Load loads the already-rendered files back from disk.
func (ing *Ingress) Load(f asset.FileFetcher) (bool, error) {
crdFile, err := f.FetchByName(ingCrdFilename)
crdFile, err := f.FetchByName(filepath.Join(manifestDir, ingCrdFilename))
if err != nil {
if os.IsNotExist(err) {
return false, nil
Expand Down

0 comments on commit aeeeb83

Please sign in to comment.