resourceactuation

package
v1.114.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecideActuationMode added in v1.114.0

DecideActuationMode looks at CC and CCC to see if they specify an actuationMode. - If both CC & CCC specify a actuationMode in Namespaced mode, we defer to the CCC's value.

  • If only CC specifies a actuationMode in Namespaced mode, we defer to the CC's value.

- If both CC & CCC specify an actuationMode in cluster mode, the CCC specification is irrelevant. - If neither CC nor CCC specify a actuationMode, we defer to the default value defined in apis.

func FetchLiveKCCState added in v1.114.0

FetchLiveKCCState tries to fetch the ConfigConnector (CC) resource and the ConfigConnectorContext (CCC) for the resource's namespace if running in Namespaced mode. It ignores not found errors for CC fetching but errors out if KCC is running in Namespaced mode and no CCC is found for the namespace of the resource.

func ShouldSkip

func ShouldSkip(u *unstructured.Unstructured) (bool, error)

ShouldSkip skips a resource actuatation if the ReconcileIntervalInSecondsAnnotation = 0 and the KRM resource has not changed since its last UpToDate. This will disable drift correction on corresponding GCP resources since the reconcileInterval is set to 0.

Types

This section is empty.

Jump to

Keyboard shortcuts

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