diff --git a/docs/book/src/cronjob-tutorial/testdata/project/config/default/manager_webhook_patch.yaml b/docs/book/src/cronjob-tutorial/testdata/project/config/default/manager_webhook_patch.yaml index f2f7157b464..4f4fd2bbc05 100644 --- a/docs/book/src/cronjob-tutorial/testdata/project/config/default/manager_webhook_patch.yaml +++ b/docs/book/src/cronjob-tutorial/testdata/project/config/default/manager_webhook_patch.yaml @@ -9,7 +9,7 @@ spec: containers: - name: manager ports: - - containerPort: 443 + - containerPort: 8443 name: webhook-server protocol: TCP volumeMounts: diff --git a/docs/book/src/cronjob-tutorial/testdata/project/config/webhook/service.yaml b/docs/book/src/cronjob-tutorial/testdata/project/config/webhook/service.yaml index b4861025ab4..bd858f90193 100644 --- a/docs/book/src/cronjob-tutorial/testdata/project/config/webhook/service.yaml +++ b/docs/book/src/cronjob-tutorial/testdata/project/config/webhook/service.yaml @@ -6,7 +6,7 @@ metadata: namespace: system spec: ports: - - port: 443 - targetPort: 443 + - port: 8443 + targetPort: 8443 selector: control-plane: controller-manager diff --git a/docs/book/src/migration/testdata/gopath/project-v1/config/manager/manager.yaml b/docs/book/src/migration/testdata/gopath/project-v1/config/manager/manager.yaml index 73b43ba809e..b7d2947ee51 100644 --- a/docs/book/src/migration/testdata/gopath/project-v1/config/manager/manager.yaml +++ b/docs/book/src/migration/testdata/gopath/project-v1/config/manager/manager.yaml @@ -19,7 +19,7 @@ spec: control-plane: controller-manager controller-tools.k8s.io: "1.0" ports: - - port: 443 + - port: 8443 --- apiVersion: apps/v1 kind: StatefulSet diff --git a/docs/book/src/migration/testdata/gopath/project-v1/config/webhook/webhookmanifests.yaml b/docs/book/src/migration/testdata/gopath/project-v1/config/webhook/webhookmanifests.yaml index 88b61fc68ff..3b07f1bacd4 100644 --- a/docs/book/src/migration/testdata/gopath/project-v1/config/webhook/webhookmanifests.yaml +++ b/docs/book/src/migration/testdata/gopath/project-v1/config/webhook/webhookmanifests.yaml @@ -90,7 +90,7 @@ metadata: namespace: test-system spec: ports: - - port: 443 + - port: 8443 targetPort: 9876 selector: app: webhook-server diff --git a/pkg/scaffold/v1/manager/config.go b/pkg/scaffold/v1/manager/config.go index 9de6602b8bb..eef11f9fbee 100644 --- a/pkg/scaffold/v1/manager/config.go +++ b/pkg/scaffold/v1/manager/config.go @@ -61,7 +61,7 @@ spec: control-plane: controller-manager controller-tools.k8s.io: "1.0" ports: - - port: 443 + - port: 8443 --- apiVersion: apps/v1 kind: StatefulSet diff --git a/pkg/scaffold/v2/webhook/service.go b/pkg/scaffold/v2/webhook/service.go index fd754936049..53a3088f050 100644 --- a/pkg/scaffold/v2/webhook/service.go +++ b/pkg/scaffold/v2/webhook/service.go @@ -47,8 +47,8 @@ metadata: namespace: system spec: ports: - - port: 443 - targetPort: 443 + - port: 8443 + targetPort: 8443 selector: control-plane: controller-manager ` diff --git a/pkg/scaffold/v2/webhook_manager_patch.go b/pkg/scaffold/v2/webhook_manager_patch.go index 9025c6e456f..042bc358ddd 100644 --- a/pkg/scaffold/v2/webhook_manager_patch.go +++ b/pkg/scaffold/v2/webhook_manager_patch.go @@ -47,7 +47,7 @@ spec: containers: - name: manager ports: - - containerPort: 443 + - containerPort: 8443 name: webhook-server protocol: TCP volumeMounts: diff --git a/testdata/gopath/src/project/config/manager/manager.yaml b/testdata/gopath/src/project/config/manager/manager.yaml index 2e57718d1dc..cebb8fc6bcf 100644 --- a/testdata/gopath/src/project/config/manager/manager.yaml +++ b/testdata/gopath/src/project/config/manager/manager.yaml @@ -19,7 +19,7 @@ spec: control-plane: controller-manager controller-tools.k8s.io: "1.0" ports: - - port: 443 + - port: 8443 --- apiVersion: apps/v1 kind: StatefulSet diff --git a/testdata/project-v2/config/default/manager_webhook_patch.yaml b/testdata/project-v2/config/default/manager_webhook_patch.yaml index f2f7157b464..4f4fd2bbc05 100644 --- a/testdata/project-v2/config/default/manager_webhook_patch.yaml +++ b/testdata/project-v2/config/default/manager_webhook_patch.yaml @@ -9,7 +9,7 @@ spec: containers: - name: manager ports: - - containerPort: 443 + - containerPort: 8443 name: webhook-server protocol: TCP volumeMounts: diff --git a/testdata/project-v2/config/webhook/service.yaml b/testdata/project-v2/config/webhook/service.yaml index b4861025ab4..bd858f90193 100644 --- a/testdata/project-v2/config/webhook/service.yaml +++ b/testdata/project-v2/config/webhook/service.yaml @@ -6,7 +6,7 @@ metadata: namespace: system spec: ports: - - port: 443 - targetPort: 443 + - port: 8443 + targetPort: 8443 selector: control-plane: controller-manager