@@ -34,31 +34,31 @@ type OpAMPBridgeWebhook struct {
3434 scheme * runtime.Scheme
3535}
3636
37- func (o * OpAMPBridgeWebhook ) Default (ctx context.Context , obj runtime.Object ) error {
37+ func (o * OpAMPBridgeWebhook ) Default (_ context.Context , obj runtime.Object ) error {
3838 opampBridge , ok := obj .(* OpAMPBridge )
3939 if ! ok {
4040 return fmt .Errorf ("expected an OpAMPBridge, received %T" , obj )
4141 }
4242 return o .defaulter (opampBridge )
4343}
4444
45- func (o * OpAMPBridgeWebhook ) ValidateCreate (ctx context.Context , obj runtime.Object ) (admission.Warnings , error ) {
45+ func (o * OpAMPBridgeWebhook ) ValidateCreate (_ context.Context , obj runtime.Object ) (admission.Warnings , error ) {
4646 opampBridge , ok := obj .(* OpAMPBridge )
4747 if ! ok {
4848 return nil , fmt .Errorf ("expected an OpAMPBridge, received %T" , obj )
4949 }
5050 return o .validate (opampBridge )
5151}
5252
53- func (o * OpAMPBridgeWebhook ) ValidateUpdate (ctx context.Context , oldObj , newObj runtime.Object ) (admission.Warnings , error ) {
53+ func (o * OpAMPBridgeWebhook ) ValidateUpdate (_ context.Context , _ , newObj runtime.Object ) (admission.Warnings , error ) {
5454 opampBridge , ok := newObj .(* OpAMPBridge )
5555 if ! ok {
5656 return nil , fmt .Errorf ("expected an OpAMPBridge, received %T" , newObj )
5757 }
5858 return o .validate (opampBridge )
5959}
6060
61- func (o * OpAMPBridgeWebhook ) ValidateDelete (ctx context.Context , obj runtime.Object ) (admission.Warnings , error ) {
61+ func (o * OpAMPBridgeWebhook ) ValidateDelete (_ context.Context , obj runtime.Object ) (admission.Warnings , error ) {
6262 opampBridge , ok := obj .(* OpAMPBridge )
6363 if ! ok || opampBridge == nil {
6464 return nil , fmt .Errorf ("expected an OpAMPBridge, received %T" , obj )
0 commit comments