Skip to content

Commit

Permalink
Add controller field
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpang777 committed Dec 18, 2024
1 parent db75780 commit 9c1d31c
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ func (m *secureSourceManagerInstanceModel) AdapterForObject(ctx context.Context,
obj.Spec.KmsKeyRef = kmsKeyRef
}

if obj.Spec.PrivateConfig != nil {
caPoolRef, err := refs.ResolvePrivateCACAPoolRef(ctx, reader, u, obj.Spec.PrivateConfig.CaPoolRef)
if err != nil {
return nil, err
}
obj.Spec.PrivateConfig.CaPoolRef = caPoolRef
}

mapCtx := &direct.MapContext{}
desired := SecureSourceManagerInstanceSpec_ToProto(mapCtx, &obj.Spec)
if mapCtx.Err() != nil {
Expand Down

0 comments on commit 9c1d31c

Please sign in to comment.