gdcloud iam service-accounts add-iam-policy-binding

NAME

gdcloud iam service-accounts add-iam-policy-binding - create a new ProjectRoleBinding on the organization admin cluster

SYNOPSIS

gdcloud iam service-accounts add-iam-policy-binding [flags]

EXAMPLES

The following command creates a new ProjectRoleBinding on the organization admin cluster:

      gdcloud iam service-accounts add-iam-policy-binding <ProjectRoleBinding name> [FLAGS]

      Flags:
        "--project <project>" selects which project to create the ProjectRoleBinding in. If the project is set by running "gdcloud init" command, then this flag can be omitted. If the project is specified by "--project" flag, then the project will be the value from the flag even if another project is set by "gdcloud init" command.
        "--iam-account <service account>" specifies the project service account to use. This flag is required to run the command.
        "--role <role name>" selects the role to assign to the ProjectServiceAccount. Roles are specified in the format ProjectRole/name where ProjectRole is the Kubernetes type and name is the name to give the role. This flag is required to run the command.

REQUIRED FLAGS

      --iam-account string   The project service account to bind with the role.
      --role string          The role to bind with the project service account.

OPTIONAL FLAGS

  -h, --help             help for add-iam-policy-binding
      --project string   Project ID to create the binding in. (default "test-project")