Fix: add extra annotations and labels to helm release

Signed-off-by: LiHui <andrewli@yunify.com>
This commit is contained in:
LiHui
2021-03-09 21:45:45 +08:00
parent 01600081f6
commit 0b1a119f76
8 changed files with 130 additions and 20 deletions

View File

@@ -18,12 +18,15 @@ package helmwrapper
import (
"fmt"
"kubesphere.io/kubesphere/pkg/constants"
"os"
"testing"
)
func TestHelmInstall(t *testing.T) {
wr := NewHelmWrapper("", "dummy", "dummy", SetMock(true))
wr := NewHelmWrapper("", "dummy", "dummy",
SetAnnotations(map[string]string{constants.CreatorAnnotationKey: "1234"}),
SetMock(true))
res, err := wr.Install("dummy-chart", "", "dummy-value")
if err != nil {