common

package
v0.0.0-...-7c8030f Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const SpaceFinalizer = "organization-operator.k8s.suse.com"

Variables

This section is empty.

Functions

func ArePolicyRulesEqual

func ArePolicyRulesEqual(a, b []rbac.PolicyRule) bool

func ComputeOrganizationNameFromSpaceNamespace

func ComputeOrganizationNameFromSpaceNamespace(namespace string) (string, error)

CompuComputeOrganizationNameFromSpaceNamespace returns the name of the Organization that owns the Space.

func ComputeSpacesNamespaceFromOrganizationName

func ComputeSpacesNamespaceFromOrganizationName(organization string) string

ComputeSpacesNamespaceFromOrganizationName returns the name of the Namespace where all the Space objects of the given Organization are going to be created.

func NameOfNamespaceCreateBySpace

func NameOfNamespaceCreateBySpace(organizationName, spaceName string) string

NameofNameOfNamespaceCreateBySpace returns the name of the Namespace object that is created by the SpaceController for each Space object.

func NewRoleBinding

func NewRoleBinding(name, namespace string, users, groups []string, roleRef rbac.RoleRef) *rbac.RoleBinding

func ReconcileNamespace

func ReconcileNamespace(
	client client.Client,
	namespace *corev1.Namespace,
	owner metav1.Object,
	scheme *runtime.Scheme,
	reqLogger logr.Logger,
	ctx context.Context) error

func ReconcileRBACRoleBinding

func ReconcileRBACRoleBinding(
	client client.Client,
	roleBinding *rbac.RoleBinding,
	owner metav1.Object,
	scheme *runtime.Scheme,
	reqLogger logr.Logger,
	ctx context.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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