Skip to content

Commit

Permalink
Remove deprecated ControllerManagerConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
nesmabadr committed Apr 17, 2024
1 parent 50d2b43 commit b407c6c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 75 deletions.
11 changes: 0 additions & 11 deletions config/manager/controller_manager_config.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ resources:
generatorOptions:
disableNameSuffixHash: true

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

images:
- name: controller
newName: europe-docker.pkg.dev/kyma-project/prod/lifecycle-manager
Expand Down
17 changes: 0 additions & 17 deletions docs/developer-tutorials/starting-operator-with-webhooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,3 @@ For further information, read the [kubebuilder tutorial](https://book.kubebuilde
```bash
go run ./main.go ./flags.go --enable-webhooks
```

You can also enable webhooks by updating `config/manager/controller_manager_config.yaml`:

```yaml
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
kind: ControllerManagerConfig
health:
healthProbeBindAddress: :8081
metrics:
bindAddress: 127.0.0.1:8080
webhook:
port: 9443
leaderElection:
leaderElect: true
resourceName: 893110f7.kyma-project.io
enableWebhooks: true
```
21 changes: 0 additions & 21 deletions pkg/test_samples/oci/template-operator-manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,27 +59,6 @@ spec:
serviceAccountName: template-operator-controller-manager
terminationGracePeriodSeconds: 10
---
apiVersion: v1
data:
controller_manager_config.yaml: |
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
kind: ControllerManagerConfig
health:
healthProbeBindAddress: :8081
metrics:
bindAddress: 127.0.0.1:8080
webhook:
port: 9443
leaderElection:
leaderElect: true
resourceName: 76223278.kyma-project.io
kind: ConfigMap
metadata:
labels:
app.kubernetes.io/component: template-operator.kyma-project.io
name: template-operator-manager-config
namespace: template-operator-system
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
Expand Down
21 changes: 0 additions & 21 deletions pkg/test_samples/raw-manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,3 @@
apiVersion: v1
data:
controller_manager_config.yaml: |
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
kind: ControllerManagerConfig
health:
healthProbeBindAddress: :8081
metrics:
bindAddress: 127.0.0.1:8080
webhook:
port: 9443
leaderElection:
leaderElect: true
resourceName: 76223278.kyma-project.io
kind: ConfigMap
metadata:
labels:
app.kubernetes.io/component: template-operator.kyma-project.io
name: template-operator-manager-config
namespace: kyma-system
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
Expand Down

0 comments on commit b407c6c

Please sign in to comment.