Skip to content

Commit

Permalink
fix admin-console license embedding
Browse files Browse the repository at this point in the history
  • Loading branch information
danj-replicated committed Oct 30, 2023
1 parent 68d874e commit 192b997
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/addons/adminconsole/adminconsole.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Check failure on line 14 in pkg/addons/adminconsole/adminconsole.go

View workflow job for this annotation

GitHub Actions / Sanitize

File is not `gofmt`-ed with `-s` (gofmt)
"k8s.io/apimachinery/pkg/util/wait"
"sigs.k8s.io/controller-runtime/pkg/client"

Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 192b997

Please sign in to comment.