-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: move conversion webhooks to hub version API (v1alpha3) (#992)
Signed-off-by: odubajDT <[email protected]>
- Loading branch information
Showing
6 changed files
with
18 additions
and
34 deletions.
There are no files selected for viewing
27 changes: 0 additions & 27 deletions
27
operator/apis/lifecycle/v1alpha2/keptnevaluationprovider_webhook.go
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...is/lifecycle/v1alpha2/keptnapp_webhook.go → ...is/lifecycle/v1alpha3/keptnapp_webhook.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package v1alpha2 | ||
package v1alpha3 | ||
|
||
import ( | ||
ctrl "sigs.k8s.io/controller-runtime" | ||
|
2 changes: 1 addition & 1 deletion
2
...cycle/v1alpha2/keptnappversion_webhook.go → ...cycle/v1alpha3/keptnappversion_webhook.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package v1alpha2 | ||
package v1alpha3 | ||
|
||
import ( | ||
ctrl "sigs.k8s.io/controller-runtime" | ||
|
11 changes: 11 additions & 0 deletions
11
operator/apis/lifecycle/v1alpha3/keptnevaluationprovider_webhook.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package v1alpha3 | ||
|
||
import ( | ||
ctrl "sigs.k8s.io/controller-runtime" | ||
) | ||
|
||
func (r *KeptnEvaluationProvider) SetupWebhookWithManager(mgr ctrl.Manager) error { | ||
return ctrl.NewWebhookManagedBy(mgr). | ||
For(r). | ||
Complete() | ||
} |
2 changes: 1 addition & 1 deletion
2
...v1alpha2/keptnworkloadinstance_webhook.go → ...v1alpha3/keptnworkloadinstance_webhook.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package v1alpha2 | ||
package v1alpha3 | ||
|
||
import ( | ||
ctrl "sigs.k8s.io/controller-runtime" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters