* INFRA-2333 | Ashvin | Format jsonnet * INFRA-2333 | Ashvin | Add busybox image for local sandbox * INFRA-2333 | Ashvin | Disable startup probe for local sandbox
30 lines
825 B
Jsonnet
30 lines
825 B
Jsonnet
{
|
|
//Private values
|
|
values:: {
|
|
apiVersion: 'v1',
|
|
name: 'navi-service',
|
|
description: 'Deploy navi services to kubernetes',
|
|
version: '0.0.1',
|
|
appVersion: '0.1',
|
|
home: 'https://github.cmd.navi-tech.in/navi-infra',
|
|
maintainers: [
|
|
{
|
|
name: 'Infra',
|
|
email: 'infra-team@navi.com',
|
|
},
|
|
],
|
|
},
|
|
|
|
//Public functions
|
|
service_name: self.values.name,
|
|
|
|
full_service_name(deployment_name): (
|
|
assert std.length(deployment_name) <= 63 : 'Service name must be less than 63 characters. name: %s' % deployment_name;
|
|
local name = '%s-%s' % [deployment_name, self.service_name];
|
|
assert std.length(name) <= 253 : 'Full Service name must be less than 253 characters. name: %s' % name;
|
|
name
|
|
),
|
|
|
|
service_chart: '%s-%s' % [self.values.name, self.values.version],
|
|
}
|