Skip to content

Commit

Permalink
fix: remove webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalgalaw committed Nov 1, 2023
1 parent 671410b commit 986d63d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 81 deletions.
4 changes: 0 additions & 4 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,4 @@ resources:
kind: Runner
path: github.com/mercedes-benz/garm-operator/api/v1alpha1
version: v1alpha1
webhooks:
defaulting: true
validation: true
webhookVersion: v1
version: "3"
52 changes: 0 additions & 52 deletions api/v1alpha1/runner_webhook.go

This file was deleted.

5 changes: 0 additions & 5 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,6 @@ func main() {
go runnerReconciler.PollRunnerInstances(ctx, eventChan)
defer cancel()

if err = (&garmoperatorv1alpha1.Runner{}).SetupWebhookWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create webhook", "webhook", "Runner")
exitCode = 1
return
}
//+kubebuilder:scaffold:builder

if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil {
Expand Down
20 changes: 0 additions & 20 deletions config/webhook/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,23 +65,3 @@ webhooks:
resources:
- repositories
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: webhook-service
namespace: system
path: /validate-garm-operator-mercedes-benz-com-v1alpha1-runner
failurePolicy: Fail
name: vrunner.kb.io
rules:
- apiGroups:
- garm-operator.mercedes-benz.com
apiVersions:
- v1alpha1
operations:
- CREATE
- UPDATE
resources:
- runners
sideEffects: None

0 comments on commit 986d63d

Please sign in to comment.