text: # Copyright (c) 2020 TypeFox GmbH. All rights reserved.
  # Licensed under the MIT License. See License-MIT.txt in the project root for license information.
  
  kind: RoleBinding
  apiVersion: rbac.authorization.k8s.io/v1beta1
  metadata:
    name: workspace
    labels:
      app: {{ template "gitpod.fullname" . }}
      component: workspace
      kind: role-binding
      stage: {{ .Values.installation.stage }}
  subjects:
  - kind: ServiceAccount
    name: workspace
  roleRef:
    kind: Role
    name: workspace
    apiGroup: rbac.authorization.k8s.io