Documentation ¶
Index ¶
- func AuthorizeAndAssignDefaults(ctx context.Context, c client.Client, gitrepo *fleet.GitRepo) (*fleet.GitRepo, error)
- func NewRole(namespace string, name string) *rbacv1.Role
- func NewRoleBinding(namespace string, name string) *rbacv1.RoleBinding
- func NewServiceAccount(namespace string, name string) *corev1.ServiceAccount
- func NewTargetsConfigMap(repo *fleet.GitRepo) (*corev1.ConfigMap, error)
- func SetStatusFromBundleDeployments(ctx context.Context, c client.Client, gitrepo *fleet.GitRepo) error
- func SetStatusFromBundles(ctx context.Context, c client.Client, gitrepo *fleet.GitRepo) error
- func SetStatusFromResourceKey(ctx context.Context, c client.Client, gitrepo *fleet.GitRepo)
- func UpdateDisplayState(gitrepo *fleet.GitRepo) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRoleBinding ¶
func NewRoleBinding(namespace string, name string) *rbacv1.RoleBinding
func NewServiceAccount ¶
func NewServiceAccount(namespace string, name string) *corev1.ServiceAccount
func NewTargetsConfigMap ¶
NewTargetsConfigMap builds a config map, containing the GitTarget cluster matchers, converted to BundleTargets. The BundleTargets are duplicated into TargetRestrictions. TargetRestrictions is a whilelist. A BundleDeployment will be created for a Target just if it is inside a TargetRestrictions. If it is not inside TargetRestrictions a Target is a TargetCustomization.
func SetStatusFromBundles ¶
func UpdateDisplayState ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.