mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Fix bug in target_port default.
This commit is contained in:
@@ -160,7 +160,7 @@ def GenerateServicePorts(context, name):
|
||||
Returns:
|
||||
A dict containing a port definition
|
||||
"""
|
||||
container_port = context.properties.get('container_port', None)
|
||||
container_port = context.properties['container_port']
|
||||
target_port = context.properties.get('target_port', container_port)
|
||||
service_port = context.properties.get('service_port', target_port)
|
||||
protocol = context.properties.get('protocol')
|
||||
|
||||
Reference in New Issue
Block a user