You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ci/resfdeploy.jsonnet
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ local manifestYamlStream = function (value, indent_array_in_object=false, c_docu
63
63
protocol:'TCP',
64
64
}]);
65
65
local services = ifstd.objectHas(info, 'services') then info.services else
66
-
[{ name:'%s-%s-%s' % [metadata.name, port.name, env], port: port.containerPort, portName: port.name, expose:ifstd.objectHas(port, 'expose') then port.expose elsefalse } for env in envs for port in ports];
66
+
[{ name:'%s-%s-%s' % [metadata.name, port.name, env], port: port.containerPort, expose:ifstd.objectHas(port, 'expose') then port.expose elsefalse } for env in envs for port in ports];
67
67
68
68
local file_yaml_prefix = if helm_mode then'helm-'else'';
69
69
local nssa = '%s001-ns-sa.yaml' % file_yaml_prefix;
@@ -109,7 +109,7 @@ local manifestYamlStream = function (value, indent_array_in_object=false, c_docu
109
109
image: image,
110
110
tag: tag,
111
111
};
112
-
local istio_mode = if helm_mode thenfalseelseif utils.local_image thenfalseelsetrue;
112
+
local istio_mode = true; #if helm_mode then false else if utils.local_image then false else true;
113
113
114
114
{
115
115
[nssa]: (if helm_mode then'{{ if not .Values.serviceAccountName }}\n'else'') + manifestYamlStream([
@@ -248,7 +248,7 @@ local manifestYamlStream = function (value, indent_array_in_object=false, c_docu
248
248
'prometheus.io/port': '7332',
249
249
}),
250
250
volumes: (ifstd.objectHas(info, 'volumes') then info.volumes(metadata) else []),
251
-
ports:std.map(function(x) x { expose:null, external:null }, ports),
251
+
ports:[utils.filterObjectFields(port, ['expose']) for port inports],
252
252
health:ifstd.objectHas(info, 'health') then info.health,
0 commit comments