Skip to content

Commit

Permalink
Cleans up kustomize files
Browse files Browse the repository at this point in the history
* `patchesStrategicMerge` is deprecated
* `config/default/manager_config_patch.yaml` is unused
* Removes some unused scaffolding

Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
  • Loading branch information
m1kola committed Jul 5, 2023
1 parent 2935c97 commit 0eeeb0a
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 47 deletions.
12 changes: 0 additions & 12 deletions config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,6 @@
# It should be run by config/default
resources:
- bases/operators.operatorframework.io_operators.yaml
#+kubebuilder:scaffold:crdkustomizeresource

patchesStrategicMerge:
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
# patches here are for enabling the conversion webhook for each CRD
#- patches/webhook_in_operators.yaml
#+kubebuilder:scaffold:crdkustomizewebhookpatch

# [CERTMANAGER] To enable cert-manager, uncomment all the sections with [CERTMANAGER] prefix.
# patches here are for enabling the CA injection for each CRD
#- patches/cainjection_in_operators.yaml
#+kubebuilder:scaffold:crdkustomizecainjectionpatch

# the following config is for teaching kustomize how to do kustomization for CRDs.
configurations:
Expand Down
7 changes: 0 additions & 7 deletions config/crd/patches/cainjection_in_operators.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions config/crd/patches/webhook_in_operators.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ resources:
# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
#- ../prometheus

patchesStrategicMerge:
patches:
# Protect the /metrics endpoint by putting it behind auth.
# If you want your controller-manager to expose the /metrics
# endpoint w/o any authn/z, please comment the following line.
- manager_auth_proxy_patch.yaml
- path: manager_auth_proxy_patch.yaml



Expand Down
10 changes: 0 additions & 10 deletions config/default/manager_config_patch.yaml

This file was deleted.

0 comments on commit 0eeeb0a

Please sign in to comment.