Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultCleanupPolicies ¶
func DefaultCleanupPolicies() map[string]*artifactregistrypb.CleanupPolicy
Remove all images that are more than 90 days old, but keep the last 50 "versions" regardless of age. These numbers are also referenced in our own documentation at: https://doc.nais.io/how-to-guides/github-action/; try to keep them in sync.
Each "build and push" includes artifacts such as signatures and attestations that seemingly count as "versions". Thus, an "image" actually consists of 5 artifacts at the worst (for images pushed through the nais/docker-build-push action)
Documentation: https://cloud.google.com/artifact-registry/docs/repositories/cleanup-policy
func IsIAMPolicyBindingEqual ¶
func New ¶
func New(ctx context.Context, serviceAccountEmail, googleManagementProjectID, workloadIdentityPoolName string, opts ...OptFunc) (reconcilers.Reconciler, error)
Types ¶
type OptFunc ¶
type OptFunc func(*garReconciler)
func WithGarClient ¶
func WithGarClient(client *artifactregistry.Client) OptFunc
func WithIAMService ¶
func WithIAMService(service *iam.Service) OptFunc
Click to show internal directories.
Click to hide internal directories.