Skip to content

Commit

Permalink
Fix broken reconciler tests
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Soyland <codysoyland@github.com>
  • Loading branch information
codysoyland committed Apr 2, 2024
1 parent e479c99 commit aec6ca5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/reconciler/trustroot/resources/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
package resources

import (
"encoding/json"
"fmt"

"github.com/sigstore/policy-controller/pkg/apis/config"
"google.golang.org/protobuf/encoding/protojson"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"knative.dev/pkg/apis/duck"
Expand Down Expand Up @@ -83,7 +83,7 @@ func CreateRemovePatch(ns, name string, cm *corev1.ConfigMap, tkName string) ([]
}

func Marshal(spec *config.SigstoreKeys) (string, error) {
bytes, err := json.Marshal(spec)
bytes, err := protojson.Marshal(spec)
if err != nil {
return "", err
}
Expand Down

0 comments on commit aec6ca5

Please sign in to comment.