Skip to content

Commit c616001

Browse files
committed
Remove webhook and cert-manager configurations
This commit removes all webhook-related and cert-manager configurations, including certificates, issuers, network policies, and associated tests. The changes also update the Kustomize setup and related manifests to eliminate webhook support entirely.
1 parent ca2c301 commit c616001

20 files changed

+146
-488
lines changed

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ linters:
2424
revive:
2525
rules:
2626
- name: comment-spacings
27+
lll:
28+
line-length: 160
2729
exclusions:
2830
generated: lax
2931
rules:

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ uninstall-gateway-api: ## Uninstall Gateway API CRDs from the K8s cluster specif
253253
.PHONY: install
254254
install: manifests kustomize install-gateway-api ## Install CRDs into the K8s cluster specified in ~/.kube/config.
255255
$(KUSTOMIZE) build config/crd | $(KUBECTL) apply -f -
256-
$(KUSTOMIZE) build config/webhook | $(KUBECTL) apply -f -
257256

258257
.PHONY: uninstall
259258
uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.

config/certmanager/certificate-metrics.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

config/certmanager/certificate-webhook.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

config/certmanager/issuer.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

config/certmanager/kustomization.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

config/certmanager/kustomizeconfig.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

config/default/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ resources:
2020
- ../manager
2121
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
2222
# crd/kustomization.yaml
23-
- ../webhook
23+
#- ../webhook
2424
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required.
2525
#- ../certmanager
2626
# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
@@ -30,7 +30,7 @@ resources:
3030
- ../samples
3131

3232
# Uncomment the patches line if you enable Metrics, and/or are using webhooks and cert-manager
33-
patches:
33+
#patches:
3434
# [METRICS] The following patch will enable the metrics endpoint using HTTPS and the port :8443.
3535
# More info: https://book.kubebuilder.io/reference/metrics
3636
#- path: manager_patch.yaml

config/default/manager_webhook_patch.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

config/network-policy/allow-webhook-traffic.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)