diff options
author | Lukasz Rajewski <lukasz.rajewski@orange.com> | 2021-10-04 21:56:02 +0200 |
---|---|---|
committer | Ritu Sood <ritu.sood@intel.com> | 2021-10-04 22:37:57 +0000 |
commit | 3766e380c40dc1e4c839372dcdc0c71a972ffa70 (patch) | |
tree | 411e06da7f3bc9ed999b02007a91fc3e114d8b63 /src/k8splugin/internal/app/config_backend.go | |
parent | 2dde920d0f80d7c7fc3f2ed7ff41675ae6c28733 (diff) |
Fixed installation of CRD resources
Issue-ID: MULTICLOUD-1397
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: Id8e653f1b5c61278ee2d64da409ac5b0685b36b8
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, } |