role

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New creates a new role deployer instance.

Types

type Values

type Values struct {
	// Name is the name of the Role.
	Name string
	// Namespace is the namespace of the Role.
	Namespace string
	// Rules holds all the PolicyRules for this Role
	Rules []rbacv1.PolicyRule
	// OwnerReference is the OwnerReference of the Role.
	OwnerReference metav1.OwnerReference
	// Labels are the labels of the Role.
	Labels map[string]string
}

Values defines the fields used to create a Role for Etcd.

func GenerateValues

func GenerateValues(etcd *druidv1alpha1.Etcd) *Values

GenerateValues generates `role.Values` for the role component with the given `etcd` object.

Jump to

Keyboard shortcuts

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