Files
Matthias RieglerandGitHub 9bb6d65712 Feat: (Jsonnet) Add support to include library paths (#3825)
* feat: added Libs field to ApplicationSourceJsonnet

Signed-off-by: Matthias Riegler <[email protected]>

* feat: codegen

Signed-off-by: Matthias Riegler <[email protected]>

* feat: implemented jsonnet jpath arguments

- Implement the `-J` command line flag for jsonnet
- adapt test to include a nested library for testing the VM
  functionality

Signed-off-by: Matthias Riegler <[email protected]>

* feat: jsonnet import path relative to the repoRoot

- adapted testCase to make use of a jpath
- join repoRoot and provided jpath attributes

Signed-off-by: Matthias Riegler <[email protected]>

* fix: added checking for out-of-repoRoot references

Signed-off-by: Matthias Riegler <[email protected]>

* feat: Added CLI option for passing jsonnet libs

Signed-off-by: Matthias Riegler <[email protected]>

* feat: Updated jsonnet docs

Signed-off-by: Matthias Riegler <[email protected]>

* fix: renamed function

Signed-off-by: Matthias Riegler <[email protected]>

* feat: Expose --local-repo-root flag

Allows passing a "virtal" git repository root when using the local sync
mode with --local.
Provides backwardscompatible with the previous default value ("/")

Signed-off-by: Matthias Riegler <[email protected]>

* fix: added missing command

Signed-off-by: Matthias Riegler <[email protected]>

* Remove obsolete line out of docs

Signed-off-by: Matthias Riegler <[email protected]>
2020-07-13 23:18:21 +02: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,
}