Files
deployment-portal-be/templates/flink_role_binding.jsonnet
Ashvin S ef9cc1b0fc INFRA-2881 | Ashvin | Add support for multiple EFS (#818)
* INFRA-2881 | Ashvin | Remove EFS flag from manifest and jsonnetfmt the directory

* INFRA-2881 | Ashvin | Support multiple EFS volumes

* INFRA-2881 | Ashvin | Add null field check and fix tests

* INFRA-2881 | Ashvin | Add EFS jsonschema for validation

* INFRA-2881 | Ashvin | Extract EFS required condition in a variable
2024-02-27 22:39:25 +05:30

28 lines
729 B
Jsonnet

local chart = import 'chart.jsonnet';
local common = import 'common.jsonnet';
local deployment_manifest = import 'deployment_manifest.jsonnet';
local namespace = deployment_manifest.flink.namespace;
local serviceAccountName = chart.full_service_name(deployment_manifest.name) + '-' + deployment_manifest.environment;
{
apiVersion: 'rbac.authorization.k8s.io/v1',
kind: 'RoleBinding',
metadata: {
name: 'flink' + '-' + serviceAccountName,
namespace: namespace,
labels: common.labels,
},
roleRef: {
apiGroup: 'rbac.authorization.k8s.io',
kind: 'Role',
name: 'flink',
},
subjects: [
{
kind: 'ServiceAccount',
name: serviceAccountName,
namespace: namespace,
},
],
}