* 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
28 lines
729 B
Jsonnet
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,
|
|
},
|
|
],
|
|
}
|