Skip to content

Commit cc30250

Browse files
chmouelpipelines-as-code[bot]
authored andcommitted
fix(config): update controller port to 8082
Updated the controller port from 8080 to 8082 in the configuration files to align with the latest Knative updates. This change affects the controller YAML files and the adapter code to ensure consistent port usage across the application.
1 parent 0df92aa commit cc30250

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

config/400-controller.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ spec:
4949
imagePullPolicy: Always
5050
ports:
5151
- name: api
52-
containerPort: 8080
52+
containerPort: 8082
5353
- name: metrics
5454
containerPort: 9090
5555
securityContext:
@@ -106,7 +106,7 @@ spec:
106106
readOnly: true
107107
name: tls
108108
volumes:
109-
- name: tls
110-
secret:
111-
secretName: pipelines-as-code-tls-secret
112-
optional: true
109+
- name: tls
110+
secret:
111+
secretName: pipelines-as-code-tls-secret
112+
optional: true

config/401-controller-service.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ metadata:
2323
app.kubernetes.io/part-of: pipelines-as-code
2424
spec:
2525
ports:
26-
- name: http-listener
27-
port: 8080
28-
protocol: TCP
29-
targetPort: 8080
30-
- name: http-metrics
31-
port: 9090
32-
protocol: TCP
33-
targetPort: 9090
26+
- name: http-listener
27+
port: 8080
28+
protocol: TCP
29+
targetPort: 8082
30+
- name: http-metrics
31+
port: 9090
32+
protocol: TCP
33+
targetPort: 9090
3434
selector:
3535
app.kubernetes.io/name: controller
3636
app.kubernetes.io/component: controller

pkg/adapter/adapter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"knative.dev/pkg/system"
3030
)
3131

32-
const globalAdapterPort = "8080"
32+
const globalAdapterPort = "8082"
3333

3434
// For incoming webhook requests and GitHub Apps with many installations the handler takes long
3535
// e.g GitHub App with ~400 installations, it takes ~180s. For OpenShift deployments this also

0 commit comments

Comments
 (0)