CC @cmacknz
This is similar to #1729
With V2, the shipper is getting a copy of all the inputs for the purpose of configuring GRPC. Right now the logic for this lives in injectShipperConn in pkg/component/runtime/manager_shipper.go. Considering that the shipper needs to make use of that config logic, the struct should be defined in a single place where it can be seen and exported. Ideally, this would be a set of fields in proto.UnitExpectedConfig{}.
CC @cmacknz
This is similar to #1729
With V2, the shipper is getting a copy of all the inputs for the purpose of configuring GRPC. Right now the logic for this lives in
injectShipperConninpkg/component/runtime/manager_shipper.go. Considering that the shipper needs to make use of that config logic, the struct should be defined in a single place where it can be seen and exported. Ideally, this would be a set of fields inproto.UnitExpectedConfig{}.