application

package
v1.13.5 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const OperatorDefaultUserGroupEnvironmentVariable = "RADIXOPERATOR_DEFAULT_USER_GROUP"

OperatorDefaultUserGroupEnvironmentVariable If users don't provide ad-group, then it should default to this

Variables

This section is empty.

Functions

func GetAdGroups

func GetAdGroups(registration *v1.RadixRegistration) ([]string, error)

GetAdGroups Gets ad-groups from registration. If missing, gives default for cluster

func GetOwnerReferenceOfRegistration

func GetOwnerReferenceOfRegistration(registration *v1.RadixRegistration) []metav1.OwnerReference

GetOwnerReferenceOfRegistration Gets owner reference given registration. Resources that an RR owns

func GrantAppAdminAccessToMachineUserToken added in v1.5.0

func GrantAppAdminAccessToMachineUserToken(kubeutil *kube.Kube, app *v1.RadixRegistration, namespace string, serviceAccount *corev1.ServiceAccount) error

GrantAppAdminAccessToMachineUserToken Granter function to grant access to service account token

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

Application Instance variables

func NewApplication

func NewApplication(
	kubeclient kubernetes.Interface,
	kubeutil *kube.Kube,
	radixclient radixclient.Interface,
	registration *v1.RadixRegistration) (Application, error)

NewApplication Constructor

func (Application) OnSync

func (app Application) OnSync() error

OnSync compares the actual state with the desired, and attempts to converge the two

func (Application) OnSyncWithGranterToMachineUserToken added in v1.5.0

func (app Application) OnSyncWithGranterToMachineUserToken(machineUserTokenGranter GranterFunction) error

OnSyncWithGranterToMachineUserToken OnSync where handler is passed in, as the granter function cannot be tested and has to be mocked

type GranterFunction added in v1.5.0

type GranterFunction func(kubeutil *kube.Kube, app *v1.RadixRegistration, namespace string, serviceAccount *corev1.ServiceAccount) error

GranterFunction Handle to granter function for granting access to service account token

Jump to

Keyboard shortcuts

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