Files
Shuai ZhangGitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>Michael Crenshaw
4f2dd721f1 fix: allow resolving repo root as jsonnet lib path (#11119)
Signed-off-by: shuai-zh <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Michael Crenshaw <[email protected]>
2022-11-15 12:56:48 -08:00

24 lines
322 B
Jsonnet

local new(params) = {
apiVersion: 'v1',
kind: 'Service',
metadata: {
name: params.name,
},
spec: {
ports: [
{
port: params.servicePort,
targetPort: params.containerPort,
},
],
selector: {
app: params.name,
},
type: params.type,
},
};
{
new:: new,
}