Skip to content

Commit

Permalink
feat: added klt-cert-manager support for controller runtime v0.15.0
Browse files Browse the repository at this point in the history
Signed-off-by: geoffrey1330 <israelgeoffrey13@gmail.com>
  • Loading branch information
geoffrey1330 committed Jul 8, 2023
1 parent f2a34b1 commit 6e962ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions metrics-operator/api/v1alpha3/keptnmetric_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,21 @@ var _ webhook.Validator = &KeptnMetric{}

// ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (r *KeptnMetric) ValidateCreate() error {
keptnmetriclog.Info("validate create", "name", r.ObjectMeta.Name)
keptnmetriclog.Info("validate create", "name", r.Name)

Check failure on line 47 in metrics-operator/api/v1alpha3/keptnmetric_webhook.go

View workflow job for this annotation

GitHub Actions / golangci-lint (metrics-operator, metrics-operator/)

r.Name undefined (type *KeptnMetric has no field or method Name) (typecheck)

return r.validateKeptnMetric()
}

// ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
func (r *KeptnMetric) ValidateUpdate(old runtime.Object) error {
keptnmetriclog.Info("validate update", "name", r.ObjectMeta.Name)
keptnmetriclog.Info("validate update", "name", r.Name)

Check failure on line 54 in metrics-operator/api/v1alpha3/keptnmetric_webhook.go

View workflow job for this annotation

GitHub Actions / golangci-lint (metrics-operator, metrics-operator/)

r.Name undefined (type *KeptnMetric has no field or method Name) (typecheck)

return r.validateKeptnMetric()
}

// ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (r *KeptnMetric) ValidateDelete() error {
keptnmetriclog.Info("validate delete", "name", r.ObjectMeta.Name)
keptnmetriclog.Info("validate delete", "name", r.Name)

Check failure on line 61 in metrics-operator/api/v1alpha3/keptnmetric_webhook.go

View workflow job for this annotation

GitHub Actions / golangci-lint (metrics-operator, metrics-operator/)

r.Name undefined (type *KeptnMetric has no field or method Name) (typecheck)

return nil
}
Expand Down

0 comments on commit 6e962ed

Please sign in to comment.