google_gar_reconciler

package
v0.0.0-...-d3538c1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 27 Imported by: 0

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 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

Jump to

Keyboard shortcuts

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