Skip to content

litmusctl 1.5.0 connect chaos-infra failed with openshift using namespace installation modeΒ #225

@dariolstella

Description

@dariolstella

$ litmusctl config use-account

Host endpoint where litmus is installed: https://

Username: admin

βœ… Successfully set the current account to 'admin' at 'https://'

$ litmusctl connect chaos-infra
Project list:

  1. admin-project

Select a project [Range: 1-1]: 1

Installation Modes:

  1. Cluster
  2. Namespace

Select Mode [Default: cluster] [Range: 1-2]: 2

πŸƒ Running prerequisites check....
πŸ”‘ role ❌
πŸ”‘ rolebinding ❌
🚫 You don't have sufficient permissions.
πŸ™„ Please use a service account with sufficient permissions.

Looking at litmus-server-role the following is set -->

  • apiGroups: [rbac.authorization.k8s.io]
    resources: [rolebindings, roles]
    verbs: [create]

And in the ValidateSAPermissions function on ops.go the resources are like -->

if mode == "cluster" {
resources = [2]string{"clusterrole", "clusterrolebinding"}
} else {
resources = [2]string{"role", "rolebinding"}

I guess that should be 'roles' and 'rolesbinding', right?.

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