From 192b99797628bcbd2e0c100829a74d243adad728 Mon Sep 17 00:00:00 2001 From: danj-replicated Date: Mon, 30 Oct 2023 17:56:45 +0000 Subject: [PATCH] fix admin-console license embedding --- pkg/addons/adminconsole/adminconsole.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/addons/adminconsole/adminconsole.go b/pkg/addons/adminconsole/adminconsole.go index fbc27cfa6..fd44b1351 100644 --- a/pkg/addons/adminconsole/adminconsole.go +++ b/pkg/addons/adminconsole/adminconsole.go @@ -11,6 +11,7 @@ import ( "github.com/k0sproject/k0s/pkg/apis/v1beta1" "github.com/replicatedhq/troubleshoot/pkg/apis/troubleshoot/v1beta2" "gopkg.in/yaml.v3" + k8syaml "sigs.k8s.io/yaml" "k8s.io/apimachinery/pkg/util/wait" "sigs.k8s.io/controller-runtime/pkg/client" @@ -89,7 +90,7 @@ func (a *AdminConsole) addLicenseToHelmValues() error { if license == nil { return nil } - raw, err := yaml.Marshal(license) + raw, err := k8syaml.Marshal(license) if err != nil { return fmt.Errorf("unable to marshal license: %w", err) }