Documentation ¶
Index ¶
- Constants
- func GetAdGroups(registration *v1.RadixRegistration) ([]string, error)
- func GetOwnerReferenceOfRegistration(registration *v1.RadixRegistration) []metav1.OwnerReference
- func GrantAppAdminAccessToMachineUserToken(kubeutil *kube.Kube, app *v1.RadixRegistration, namespace string, ...) error
- type Application
- type GranterFunction
Constants ¶
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