gitrepo

package
v0.10.0-rc.7 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorizeAndAssignDefaults

func AuthorizeAndAssignDefaults(ctx context.Context, c client.Client, gitrepo *fleet.GitRepo) (*fleet.GitRepo, error)

func NewRole

func NewRole(namespace string, name string) *rbacv1.Role

func NewRoleBinding

func NewRoleBinding(namespace string, name string) *rbacv1.RoleBinding

func NewServiceAccount

func NewServiceAccount(namespace string, name string) *corev1.ServiceAccount

func NewTargetsConfigMap

func NewTargetsConfigMap(repo *fleet.GitRepo) (*corev1.ConfigMap, error)

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 SetStatusFromBundleDeployments

func SetStatusFromBundleDeployments(ctx context.Context, c client.Client, gitrepo *fleet.GitRepo) error

func SetStatusFromBundles

func SetStatusFromBundles(ctx context.Context, c client.Client, gitrepo *fleet.GitRepo) error

func SetStatusFromResourceKey

func SetStatusFromResourceKey(ctx context.Context, c client.Client, gitrepo *fleet.GitRepo)

func UpdateDisplayState

func UpdateDisplayState(gitrepo *fleet.GitRepo) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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