feat: linodemachine: add validating admission webhook on create #291
73.56% of diff hit (target 66.18%)
View this Pull Request on Codecov
73.56% of diff hit (target 66.18%)
Annotations
Check warning on line 60 in api/v1alpha1/linodemachine_webhook.go
codecov / codecov/patch
api/v1alpha1/linodemachine_webhook.go#L57-L60
Added lines #L57 - L60 were not covered by tests
Check warning on line 72 in api/v1alpha1/linodemachine_webhook.go
codecov / codecov/patch
api/v1alpha1/linodemachine_webhook.go#L71-L72
Added lines #L71 - L72 were not covered by tests
Check warning on line 75 in api/v1alpha1/linodemachine_webhook.go
codecov / codecov/patch
api/v1alpha1/linodemachine_webhook.go#L74-L75
Added lines #L74 - L75 were not covered by tests
Check warning on line 77 in api/v1alpha1/linodemachine_webhook.go
codecov / codecov/patch
api/v1alpha1/linodemachine_webhook.go#L77
Added line #L77 was not covered by tests
Check warning on line 82 in api/v1alpha1/linodemachine_webhook.go
codecov / codecov/patch
api/v1alpha1/linodemachine_webhook.go#L81-L82
Added lines #L81 - L82 were not covered by tests
Check warning on line 85 in api/v1alpha1/linodemachine_webhook.go
codecov / codecov/patch
api/v1alpha1/linodemachine_webhook.go#L85
Added line #L85 was not covered by tests
Check warning on line 90 in api/v1alpha1/linodemachine_webhook.go
codecov / codecov/patch
api/v1alpha1/linodemachine_webhook.go#L89-L90
Added lines #L89 - L90 were not covered by tests
Check warning on line 93 in api/v1alpha1/linodemachine_webhook.go
codecov / codecov/patch
api/v1alpha1/linodemachine_webhook.go#L93
Added line #L93 was not covered by tests
Check warning on line 164 in api/v1alpha1/linodemachine_webhook.go
codecov / codecov/patch
api/v1alpha1/linodemachine_webhook.go#L164
Added line #L164 was not covered by tests
Check warning on line 168 in api/v1alpha1/linodemachine_webhook.go
codecov / codecov/patch
api/v1alpha1/linodemachine_webhook.go#L168
Added line #L168 was not covered by tests
Check warning on line 155 in cmd/main.go
codecov / codecov/patch
cmd/main.go#L152-L155
Added lines #L152 - L155 were not covered by tests