Skip to content

Commit 0d24d95

Browse files
committed
Add port name in the service
1 parent 605669d commit 0d24d95

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

api/v1alpha2/jenkins_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,10 @@ type Service struct {
448448
// This field will be ignored if the cloud-provider does not support the feature.
449449
// +optional
450450
LoadBalancerIP string `json:"loadBalancerIP,omitempty"`
451+
452+
// The port name which is provided to the service.
453+
// More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
454+
Portname string `json:"Portname,omitempty"`
451455
}
452456

453457
// JenkinsStatus defines the observed state of Jenkins

chart/jenkins-operator/crds/jenkins-crd.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3243,6 +3243,9 @@ spec:
32433243
info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies'
32443244
format: int32
32453245
type: integer
3246+
portName:
3247+
description: 'The port name which is provided to the service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service'
3248+
type: string
32463249
type:
32473250
description: 'Type determines how the Service is exposed. Defaults
32483251
to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort,

chart/jenkins-operator/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ jenkins:
166166
runAsUser: 1000
167167
fsGroup: 1000
168168

169+
service:
170+
portName: 'http'
169171
# http Jenkins service
170172
# See https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/schema/#github.com/jenkinsci/kubernetes-operator/pkg/apis/jenkins/v1alpha2.Service for details
171173
#service:

config/crd/bases/jenkins.io_jenkins.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3243,6 +3243,9 @@ spec:
32433243
info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies'
32443244
format: int32
32453245
type: integer
3246+
portName:
3247+
description: 'The port name which is provided to the service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service'
3248+
type: string
32463249
type:
32473250
description: 'Type determines how the Service is exposed. Defaults
32483251
to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort,

0 commit comments

Comments
 (0)