billingrbac

package
v0.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

billingrbac is the common definition of the RBAC rules for billing entities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterRoles

func ClusterRoles(beName string, p ClusterRolesParams) (ar *rbacv1.ClusterRole, arBinding *rbacv1.ClusterRoleBinding, vr *rbacv1.ClusterRole, vrBinding *rbacv1.ClusterRoleBinding)

ClusterRoles returns the ClusterRoles and ClusterRoleBindings for the given BillingEntity.

Types

type ClusterRolesParams

type ClusterRolesParams struct {
	AdminUsers  []string
	ViewerUsers []string

	// AllowSubjectsToViewRole controls whether the admin and viewer roles are allowed to view the role itself.
	// Workaround for the portal crashing when trying to load the role.
	AllowSubjectsToViewRole bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL