Controlplane $ cat blue.yaml apiVersion: <http://rbac.authorization.k8s.io/v1|rb . . .

Gunaseelan Ganesan:
controlplane $ cat blue.yaml
apiVersion: http://rbac.authorization.k8s.io/v1|rbac.authorization.k8s.io/v1
kind: Role
metadata:
creationTimestamp: “2021-04-22T08:11:53Z”
managedFields:

  • apiVersion: http://rbac.authorization.k8s.io/v1|rbac.authorization.k8s.io/v1
    fieldsType: FieldsV1
    fieldsV1:
    f:rules: {}
    manager: kubectl-edit
    operation: Update
    time: “2021-04-22T08:31:20Z”
    name: developer
    namespace: blue
    resourceVersion: “8700”
    selfLink: /apis/rbac.authorization.k8s.io/v1/namespaces/blue/roles/developer
    uid: 39d9e599-22b7-4c79-8e06-29f92bf586e4
    rules:
  • apiGroups:
    • “”
      resourceNames:
    • blue-app
    • dark-blue-app
      resources:
    • pods
      verbs:
    • get
    • watch
    • create
    • delete
  • apiGroups:
    • “apps”
    • “extensions”
      resources:
    • deployments
      verbs:
    • get
    • watch
    • create
    • delete

controlplane $

Mohamed Ayman:
In the resourceNames, you need to completely remove blue-app and replace It with dark-blue-app