Skip to content

Commit 569f826

Browse files
fix testdata get outdated
1 parent e9459d6 commit 569f826

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

pkg/plugins/common/kustomize/v2/scaffolds/webhook.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package scaffolds
1818

1919
import (
2020
"fmt"
21+
2122
pluginutil "sigs.k8s.io/kubebuilder/v3/pkg/plugin/util"
2223

2324
log "github.com/sirupsen/logrus"

testdata/project-v4-multigroup-with-deploy-image/config/crd/kustomization.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ resources:
1717
patches:
1818
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
1919
# patches here are for enabling the conversion webhook for each CRD
20-
#- path: patches/webhook_in_crew_captains.yaml
21-
#- path: patches/webhook_in_ship_frigates.yaml
22-
#- path: patches/webhook_in_ship_destroyers.yaml
23-
#- path: patches/webhook_in_ship_cruisers.yaml
24-
#- path: patches/webhook_in_sea-creatures_krakens.yaml
20+
- path: patches/webhook_in_crew_captains.yaml
21+
- path: patches/webhook_in_ship_frigates.yaml
22+
- path: patches/webhook_in_ship_destroyers.yaml
23+
- path: patches/webhook_in_ship_cruisers.yaml
24+
- path: patches/webhook_in_sea-creatures_krakens.yaml
2525
#- path: patches/webhook_in_sea-creatures_leviathans.yaml
2626
#- path: patches/webhook_in_foo.policy_healthcheckpolicies.yaml
2727
#- path: patches/webhook_in_foo_bars.yaml

testdata/project-v4-multigroup-with-deploy-image/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'.
@@ -34,7 +34,7 @@ patchesStrategicMerge:
3434

3535
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
3636
# crd/kustomization.yaml
37-
#- manager_webhook_patch.yaml
37+
- manager_webhook_patch.yaml
3838

3939
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'.
4040
# Uncomment 'CERTMANAGER' sections in crd/kustomization.yaml to enable the CA injection in the admission webhooks.

testdata/project-v4-multigroup/config/crd/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ patches:
2222
- path: patches/webhook_in_ship_destroyers.yaml
2323
- path: patches/webhook_in_ship_cruisers.yaml
2424
- path: patches/webhook_in_sea-creatures_krakens.yaml
25-
- path: patches/webhook_in_sea-creatures_leviathans.yaml
25+
#- path: patches/webhook_in_sea-creatures_leviathans.yaml
2626
#- path: patches/webhook_in_foo.policy_healthcheckpolicies.yaml
2727
#- path: patches/webhook_in_foo_bars.yaml
2828
#- path: patches/webhook_in_fiz_bars.yaml

0 commit comments

Comments
 (0)