Skip to content

Commit 7427c5c

Browse files
author
secus
committed
Update Kubernetes service container port to job port number
1 parent 30a7491 commit 7427c5c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

WEBHOOK_SYSTEM.md

Whitespace-only changes.

src/services/kubernetes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ impl KubernetesService {
363363
ports: Some(vec![ServicePort {
364364
port: job.port, // External port (82) - user requested
365365
target_port: Some(
366-
k8s_openapi::apimachinery::pkg::util::intstr::IntOrString::Int(80), // Container port (80) - actual
366+
k8s_openapi::apimachinery::pkg::util::intstr::IntOrString::Int(job.port), // Container port (80) - actual
367367
),
368368
name: Some("http".to_string()),
369369
protocol: Some("TCP".to_string()),
@@ -1036,7 +1036,7 @@ async fn detect_cluster_type(&self) -> Result<String, AppError> {
10361036
name: "app".to_string(),
10371037
image: Some(job.github_image_tag.clone()),
10381038
ports: Some(vec![ContainerPort {
1039-
container_port: 80, // Container actual port
1039+
container_port: job.port, // Container actual port
10401040
name: Some("http".to_string()),
10411041
protocol: Some("TCP".to_string()),
10421042
..Default::default()

0 commit comments

Comments
 (0)