common

package
v0.0.0-...-71115bb Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 27 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// Machine readable event "Reason" fields, used for determining synchronization state.
	EventSynchronized               = "Synchronized"
	EventFailedSynchronization      = "FailedSynchronization"
	EventCreatedInDigDir            = "CreatedInDigDir"
	EventUpdatedInDigDir            = "UpdatedInDigDir"
	EventRotatedInDigDir            = "RotatedInDigDir"
	EventActivatedScopeInDigDir     = "ActivatedScopeInDigDir"
	EventDeactivatedScopeInDigDir   = "DeactivatedScopeInDigDir"
	EventCreatedScopeInDigDir       = "CreatedScopeInDigDir"
	EventUpdatedScopeInDigDir       = "UpdatedScopeInDigDir"
	EventUpdatedACLForScopeInDigDir = "UpdatedACLForScopeInDigDir"
)
View Source
const (
	FinalizerName      string = "digdirator.nais.io/finalizer"
	OldFinalizerName   string = "finalizer.digdirator.nais.io" // deprecated as it is not domain-qualified and triggers a warning from the API server
	PreserveAnnotation string = "digdir.nais.io/preserve"
)
View Source
const (
	StakaterReloaderKeyAnnotation = "reloader.stakater.com/match"
)

Variables

This section is empty.

Functions

func ErrorCondition

func ErrorCondition(status metav1.ConditionStatus, reason ConditionReason, message string, generation int64) metav1.Condition

func HasRetryableStatusCondition

func HasRetryableStatusCondition(conditions *[]metav1.Condition) bool

func InvalidConsumedScopesCondition

func InvalidConsumedScopesCondition(status metav1.ConditionStatus, reason ConditionReason, message string, generation int64) metav1.Condition

func InvalidExposedScopesConsumersCondition

func InvalidExposedScopesConsumersCondition(status metav1.ConditionStatus, reason ConditionReason, message string, generation int64) metav1.Condition

func IsStatusConditionTrue

func IsStatusConditionTrue(conditions *[]metav1.Condition, conditionType ConditionType) bool

func ReadyCondition

func ReadyCondition(status metav1.ConditionStatus, reason ConditionReason, message string, generation int64) metav1.Condition

Types

type ConditionReason

type ConditionReason string
const (
	ConditionReasonFailed       ConditionReason = "Failed"
	ConditionReasonProcessing   ConditionReason = "Processing"
	ConditionReasonSynchronized ConditionReason = "Synchronized"
	ConditionReasonValidated    ConditionReason = "Validated"
)

type ConditionType

type ConditionType string
const (
	ConditionTypeReady                         ConditionType = "Ready"
	ConditionTypeError                         ConditionType = "Error"
	ConditionTypeInvalidConsumedScopes         ConditionType = "InvalidConsumedScopes"
	ConditionTypeInvalidExposedScopesConsumers ConditionType = "InvalidExposedScopesConsumers"
)

type Reconciler

type Reconciler struct {
	Client       client.Client
	Reader       client.Reader
	Scheme       *runtime.Scheme
	Recorder     events.EventRecorder
	Config       *config.Config
	DigDirClient digdir.Client
}

func NewReconciler

func NewReconciler(
	client client.Client,
	reader client.Reader,
	scheme *runtime.Scheme,
	recorder events.EventRecorder,
	config *config.Config,
	digdirClient digdir.Client,
) Reconciler

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request, instance clients.Instance) (ctrl.Result, error)

type Transaction

type Transaction struct {
	Ctx      context.Context
	Instance clients.Instance
}

func NewTransaction

func NewTransaction(ctx context.Context, instance clients.Instance) *Transaction

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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