Skip to content

Commit 4296aad

Browse files
author
jmccormick2001
committed
fix scale command to allow service type of NodePort
1 parent 331ca48 commit 4296aad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apiserver/clusterservice/scaleimpl.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,10 @@ func ScaleCluster(name, replicaCount, resourcesConfig, storageConfig, nodeLabel,
9393
}
9494
if serviceType != "" {
9595
if serviceType != config.DEFAULT_SERVICE_TYPE &&
96+
serviceType != config.NODEPORT_SERVICE_TYPE &&
9697
serviceType != config.LOAD_BALANCER_SERVICE_TYPE {
9798
response.Status.Code = msgs.Error
98-
response.Status.Msg = "error --service-type should be either ClusterIP or LoadBalancer "
99+
response.Status.Msg = "error --service-type should be either ClusterIP, NodePort, or LoadBalancer "
99100
return response
100101
}
101102
spec.UserLabels[util.LABEL_SERVICE_TYPE] = serviceType

0 commit comments

Comments
 (0)