Skip to content

Commit edbd1c7

Browse files
Upgrade sample testdata in the v3x branch
1 parent 11b6a2a commit edbd1c7

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

docs/book/src/component-config-tutorial/testdata/project/config/default/kustomization.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ patches:
3131
# More info: https://book.kubebuilder.io/reference/metrics
3232
# If you want to expose the metric endpoint of your controller-manager uncomment the following line.
3333
#- path: manager_metrics_patch.yaml
34+
# target:
35+
# kind: Deployment
3436

3537
# Mount the controller config file for loading manager configurations
3638
# through a ComponentConfig type
Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
# This patch adds the args to allow exposing the metrics endpoint securely
2-
apiVersion: apps/v1
3-
kind: Deployment
4-
metadata:
5-
name: controller-manager
6-
namespace: system
7-
spec:
8-
template:
9-
spec:
10-
containers:
11-
- name: manager
12-
args:
13-
- "--metrics-bind-address=0.0.0.0:8080"
2+
- op: add
3+
path: /spec/template/spec/containers/0/args/0
4+
value: --metrics-bind-address=:8080

0 commit comments

Comments
 (0)