Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

Commit aec6ca5

Browse files
committed
Fix broken reconciler tests
Signed-off-by: Cody Soyland <codysoyland@github.com>
1 parent e479c99 commit aec6ca5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/reconciler/trustroot/resources/configmap.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
package resources
1616

1717
import (
18-
"encoding/json"
1918
"fmt"
2019

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

8585
func Marshal(spec *config.SigstoreKeys) (string, error) {
86-
bytes, err := json.Marshal(spec)
86+
bytes, err := protojson.Marshal(spec)
8787
if err != nil {
8888
return "", err
8989
}

0 commit comments

Comments
 (0)