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 39f8995 commit f2a34b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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.Name)
keptnmetriclog.Info("validate create", "name", r.ObjectMeta.Name)

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.Name)
keptnmetriclog.Info("validate update", "name", r.ObjectMeta.Name)

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.Name)
keptnmetriclog.Info("validate delete", "name", r.ObjectMeta.Name)

return nil
}
Expand Down
2 changes: 1 addition & 1 deletion metrics-operator/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,4 @@ require (

replace golang.org/x/net => golang.org/x/net v0.10.0

replace github.com/keptn/lifecycle-toolkit/klt-cert-manager => /Users/user/Open_Source/Keptn/lifecycle-toolkit/klt-cert-manager
//replace github.com/keptn/lifecycle-toolkit/klt-cert-manager => /Users/user/Open_Source/Keptn/lifecycle-toolkit/klt-cert-manager

0 comments on commit f2a34b1

Please sign in to comment.