Skip to content

Commit

Permalink
revert: "feat: Add skaffold code for webhook (#35)" (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fei-Guo authored Sep 13, 2023
1 parent 3490bcc commit cfe49a9
Show file tree
Hide file tree
Showing 17 changed files with 4 additions and 411 deletions.
4 changes: 0 additions & 4 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,4 @@ resources:
kind: Workspace
path: github.com/kdm/api/v1alpha1
version: v1alpha1
webhooks:
defaulting: true
validation: true
webhookVersion: v1
version: "3"
132 changes: 0 additions & 132 deletions api/v1alpha1/webhook_suite_test.go

This file was deleted.

72 changes: 0 additions & 72 deletions api/v1alpha1/workspace_webhook.go

This file was deleted.

2 changes: 1 addition & 1 deletion api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ import (
"os"

"github.com/aws/karpenter-core/pkg/apis/v1alpha5"
"github.com/kdm/pkg/controllers"
"k8s.io/klog/v2"
"sigs.k8s.io/controller-runtime/pkg/webhook"

"github.com/kdm/pkg/controllers"

// Import all Kubernetes client auth plugins (e.g. Azure, GCP, OIDC, etc.)
// to ensure that exec-entrypoint and run can make use of them.
_ "k8s.io/client-go/plugin/pkg/client/auth"
Expand Down Expand Up @@ -110,10 +109,6 @@ func main() {
klog.ErrorS(err, "unable to create controller", "controller", "Workspace")
exitWithErrorFunc()
}
if err = (&kdmv1alpha1.Workspace{}).SetupWebhookWithManager(mgr); err != nil {
klog.Error(err, "unable to create webhook", "webhook", "Workspace")
os.Exit(1)
}
//+kubebuilder:scaffold:builder

if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil {
Expand Down
39 changes: 0 additions & 39 deletions config/certmanager/certificate.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions config/certmanager/kustomization.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions config/certmanager/kustomizeconfig.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions config/default/manager_webhook_patch.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions config/default/webhookcainjection_patch.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions config/webhook/kustomization.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions config/webhook/kustomizeconfig.yaml

This file was deleted.

Loading

0 comments on commit cfe49a9

Please sign in to comment.