What would you like to be added:
Let's do the decoding from runtime.RawExtension.Raw to api.RsyslogRelpConfig identically in all places. We can do it through:
a helper function. Let's move decodeRsyslogRelpConfig to pkg/apis/rsyslog/helper/helpers.go
How to categorize this issue?
/area quality /kind enhancement
What would you like to be added: Let's do the decoding from
runtime.RawExtension.Raw
toapi.RsyslogRelpConfig
identically in all places. We can do it through:decodeRsyslogRelpConfig
topkg/apis/rsyslog/helper/helpers.go
extensions/pkg/util/serialization.go@Decode
https://github.com/gardener/gardener-extension-shoot-rsyslog-relp/blob/8d1601a4d5106d8e579de220015780f1d136b4f4/pkg/controller/lifecycle/actuator.go#L60-L63
Why is this needed: Minor code simplification