mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
* 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]>
24 lines
322 B
Jsonnet
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,
|
|
}
|