Skip to content

Commit c4af6b7

Browse files
GregoireWcodysoyland
authored andcommitted
Add signatureFormat in the conversion so that alpha1 and beta1 can be used (#175)
1 parent 43ddb69 commit c4af6b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/apis/policy/v1alpha1/clusterimagepolicy_conversion.go

+2
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ func (matchResource *MatchResource) ConvertTo(_ context.Context, sink *v1beta1.M
8989

9090
func (authority *Authority) ConvertTo(ctx context.Context, sink *v1beta1.Authority) error {
9191
sink.Name = authority.Name
92+
sink.SignatureFormat = authority.SignatureFormat
9293
if authority.CTLog != nil && authority.CTLog.URL != nil {
9394
sink.CTLog = &v1beta1.TLog{
9495
URL: authority.CTLog.URL.DeepCopy(),
@@ -244,6 +245,7 @@ func (spec *ClusterImagePolicySpec) ConvertFrom(ctx context.Context, source *v1b
244245

245246
func (authority *Authority) ConvertFrom(ctx context.Context, source *v1beta1.Authority) error {
246247
authority.Name = source.Name
248+
authority.SignatureFormat = source.SignatureFormat
247249
if source.CTLog != nil && source.CTLog.URL != nil {
248250
authority.CTLog = &TLog{
249251
URL: source.CTLog.URL.DeepCopy(),

0 commit comments

Comments
 (0)