Skip to content

Commit 20befa5

Browse files
committed
Add ServiceType to pkg/lib/k8s/service.go
1 parent 7b75c3f commit 20befa5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/lib/k8s/service.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ type ServiceSpec struct {
3636
Name string
3737
Port int32
3838
TargetPort int32
39+
ServiceType kcore.ServiceType
3940
Selector map[string]string
4041
Labels map[string]string
4142
Annotations map[string]string
@@ -51,6 +52,7 @@ func Service(spec *ServiceSpec) *kcore.Service {
5152
},
5253
Spec: kcore.ServiceSpec{
5354
Selector: spec.Selector,
55+
Type: spec.ServiceType,
5456
Ports: []kcore.ServicePort{
5557
{
5658
Protocol: kcore.ProtocolTCP,

0 commit comments

Comments
 (0)