Skip to content

Commit

Permalink
🌱 Remove deprecated ControllerManagerConfig
Browse files Browse the repository at this point in the history
The ComponentConfig has been deprecated in the controller-runtime
since v0.15.0.

Signed-off-by: Zhiwei Huang <[email protected]>
  • Loading branch information
hex2dec committed Nov 28, 2024
1 parent be0db3b commit 87c8763
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 59 deletions.
11 changes: 0 additions & 11 deletions config/base/controller_manager_config.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions config/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,12 @@ resources:
generatorOptions:
disableNameSuffixHash: true

configMapGenerator:
- name: manager-config
files:
- controller_manager_config.yaml

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.
- path: manager_auth_proxy_patch.yaml

# Mount the controller config file for loading manager configurations
# through a ComponentConfig type
#- manager_config_patch.yaml

# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
# crd/kustomization.yaml
- path: manager_webhook_patch.yaml
Expand Down
20 changes: 0 additions & 20 deletions config/base/manager_config_patch.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions config/render/capm3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2502,25 +2502,6 @@ subjects:
namespace: baremetal-operator-system
---
apiVersion: v1
data:
controller_manager_config.yaml: |
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
kind: ControllerManagerConfig
health:
healthProbeBindAddress: :9440
metrics:
bindAddress: 127.0.0.1:8085
webhook:
port: 9443
leaderElection:
leaderElect: true
resourceName: a9498140.metal3.io
kind: ConfigMap
metadata:
name: baremetal-operator-manager-config
namespace: baremetal-operator-system
---
apiVersion: v1
data:
CACHEURL: http://172.22.0.1/images
DEPLOY_KERNEL_URL: http://172.22.0.2:6180/images/ironic-python-agent.kernel
Expand Down

0 comments on commit 87c8763

Please sign in to comment.