diff options
author | Ritu Sood <ritu.sood@intel.com> | 2021-10-04 22:39:11 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-10-04 22:39:11 +0000 |
commit | 54b79141744e713848ae46f3170c637bc7d08ef8 (patch) | |
tree | 0caadfb0fda2168d13dcbf44b8e07bb4c934831e /src/k8splugin/internal/app/config_backend.go | |
parent | d4f772ef1c8f89fed4d4fd50a783628ef9ea4467 (diff) | |
parent | 3766e380c40dc1e4c839372dcdc0c71a972ffa70 (diff) |
Merge "Fixed installation of CRD resources"
Diffstat (limited to 'src/k8splugin/internal/app/config_backend.go')
-rw-r--r-- | src/k8splugin/internal/app/config_backend.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/k8splugin/internal/app/config_backend.go b/src/k8splugin/internal/app/config_backend.go index 4fedb386..be11e8ce 100644 --- a/src/k8splugin/internal/app/config_backend.go +++ b/src/k8splugin/internal/app/config_backend.go @@ -631,14 +631,18 @@ var resolve = func(rbName, rbVersion, profileName string, p Config, releaseName finalReleaseName) chartPath := filepath.Join(chartBasePath, t.ChartName) - resTemplates, _, err = helmClient.GenerateKubernetesArtifacts(chartPath, + resTemplates, crdList, _, err := helmClient.GenerateKubernetesArtifacts(chartPath, []string{outputfile.Name()}, nil) if err != nil { return configResourceList{}, pkgerrors.Wrap(err, "Generate final k8s yaml") } + for _, tmp := range resTemplates { + crdList = append(crdList, tmp) + } + crl := configResourceList{ - resourceTemplates: resTemplates, + resourceTemplates: crdList, profile: profile, } |