Remove Validate() from Config interfaces and make it optional interface (#6544)
The reason is to remove every Config to include the "config.*Settings" structs, which is one of the functionality they offer. Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com> Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
This commit is contained in:
parent
8d425480b0
commit
ae6cd6500c
|
|
@ -0,0 +1,11 @@
|
|||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
|
||||
change_type: breaking
|
||||
|
||||
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
|
||||
component: component
|
||||
|
||||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
|
||||
note: Remove `Validate()` from component.*Config interfaces and make it optional interface
|
||||
|
||||
# One or more tracking issues or pull requests related to the change
|
||||
issues: [6544]
|
||||
|
|
@ -20,8 +20,6 @@ import (
|
|||
|
||||
type Config interface {
|
||||
identifiable
|
||||
// Deprecated: [v0.65.0] use component.ValidateConfig.
|
||||
Validate() error
|
||||
|
||||
privateConfig()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,8 +44,3 @@ func (es *ExporterSettings) ID() component.ID {
|
|||
func (es *ExporterSettings) SetIDName(idName string) {
|
||||
es.id = component.NewIDWithName(es.id.Type(), idName)
|
||||
}
|
||||
|
||||
// Deprecated: [v0.65.0] use component.ValidateConfig.
|
||||
func (es *ExporterSettings) Validate() error {
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,8 +44,3 @@ func (es *ExtensionSettings) ID() component.ID {
|
|||
func (es *ExtensionSettings) SetIDName(idName string) {
|
||||
es.id = component.NewIDWithName(es.id.Type(), idName)
|
||||
}
|
||||
|
||||
// Deprecated: [v0.65.0] use component.ValidateConfig.
|
||||
func (es *ExtensionSettings) Validate() error {
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,8 +44,3 @@ func (ps *ProcessorSettings) ID() component.ID {
|
|||
func (ps *ProcessorSettings) SetIDName(idName string) {
|
||||
ps.id = component.NewIDWithName(ps.id.Type(), idName)
|
||||
}
|
||||
|
||||
// Deprecated: [v0.65.0] use component.ValidateConfig.
|
||||
func (ps *ProcessorSettings) Validate() error {
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,8 +44,3 @@ func (rs *ReceiverSettings) ID() component.ID {
|
|||
func (rs *ReceiverSettings) SetIDName(idName string) {
|
||||
rs.id = component.NewIDWithName(rs.id.Type(), idName)
|
||||
}
|
||||
|
||||
// Deprecated: [v0.65.0] Not needed anymore since the Validate() will be moved from Config interface to the optional ConfigValidator interface.
|
||||
func (rs *ReceiverSettings) Validate() error {
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue