Files
deployment-portal-be/templates/dynamic_configuration.jsonnet
Ashvin S 628b5c4339 INFRA-2333 | Ashvin | Add busybox image for local sandbox (#668)
* INFRA-2333 | Ashvin | Format jsonnet

* INFRA-2333 | Ashvin | Add busybox image for local sandbox

* INFRA-2333 | Ashvin | Disable startup probe for local sandbox
2023-10-17 18:10:53 +05:30

23 lines
813 B
Jsonnet

local chart = import 'chart.jsonnet';
local common = import 'common.jsonnet';
local deployment_manifest = import 'deployment_manifest.jsonnet';
local manifest_util = import 'manifest_util.jsonnet';
local dynamicConfiguration = if manifest_util.is_dynamic_config_present(deployment_manifest) then deployment_manifest.dynamicConfiguration else {};
if manifest_util.is_dynamic_config_present(deployment_manifest) then {
apiVersion: 'v1',
kind: 'Secret',
metadata: {
name: chart.full_service_name(deployment_manifest.deployment.name) + '-dynamic-secret',
namespace: deployment_manifest.deployment.namespace,
labels: common.labels,
annotations: common.annotations,
},
stringData:
{
[config.fileName]: config.data
for config in dynamicConfiguration
},
type: 'Opaque',
}