rolebinding

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 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 binding deployer instance.

Types

type Values

type Values struct {
	// Name is the name of the RoleBinding.
	Name string
	// Namespace is the namespace of the RoleBinding.
	Namespace string
	// RoleName is the role name of the RoleBinding. It is assumed that the role exists in the namespace where the etcd custom resource is created.
	RoleName string
	// ServiceAccountName is the service account subject name for the RoleBinding.
	// It is assumed that the ServiceAccount exists in the namespace where the etcd custom resource is created.
	ServiceAccountName string
	// OwnerReference is the OwnerReference for the RoleBinding.
	OwnerReference metav1.OwnerReference
	// Labels are the labels of the RoleBinding.
	Labels map[string]string
}

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

func GenerateValues

func GenerateValues(etcd *druidv1alpha1.Etcd) *Values

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

Jump to

Keyboard shortcuts

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