Skip to content

role binding : apiGroup definition instead of namespace #213

@heurtematte

Description

@heurtematte

As part of the definition of "rbac.authorization.k8s.io/v1", namespace attribute doesn't exist on RoleRef and Subjects attributes definition. Instead it must be the attribut "apiGroup".

Example : https://github.com/eclipse-cbi/jiro/blob/master/instances/automotive.mdmbl/target/k8s/role-binding.json
should be :

"roleRef": {
      "kind": "Role",
      "name": "jenkins-master-owner",
      "apiGroup": "my_api_group"    <=== here
   },
   "subjects": [
      {
         "kind": "ServiceAccount",
         "name": "mdmbl",
         "apiGroup": "my_api_group"         <=== here
      }
   ]

And apiGroup should have a name: https://github.com/eclipse-cbi/jiro/blob/master/instances/automotive.mdmbl/target/k8s/role.json

   "rules": [
      {
         "apiGroups": [
            "my_api_group"             <=== here
         ],
         "resources": [
            "pods",
            "pods/exec"
         ],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions