Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.