contexts

package
v1.125.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFoundError

func IsNotFoundError(err error) bool

Types

type ResourceContext

type ResourceContext struct {
	ResourceGVK  schema.GroupVersionKind
	ResourceKind string

	SkipNoChange bool
	SkipUpdate   bool
	SkipDelete   bool

	// Hack: Optionally wait before getting the object in GCP. This is to work around some issues with troublesome
	// services in GCP that claim to be done with creating / updating the resource before it is actually available.
	PostModifyDelay time.Duration

	// Time to delay before recreating the resource as part of the drift detection test.
	// The default wait time is 10 seconds. However, some resources appear to need to
	// wait longer before recreating, so this value is customizable.
	RecreateDelay time.Duration
	// If true, skip drift detection test.
	SkipDriftDetection bool

	// fields related to DCL-based resources
	DCLSchema *openapi.Schema
}

func GetResourceContext

func GetResourceContext(fixture resourcefixture.ResourceFixture, serviceMetadataLoader dclmetadata.ServiceMetadataLoader, dclSchemaLoader dclschemaloader.DCLSchemaLoader) (ResourceContext, error)

func (ResourceContext) Delete

func (ResourceContext) Get

func (ResourceContext) IsAutoGenerated added in v1.98.0

func (ResourceContext) SupportsLabels

Jump to

Keyboard shortcuts

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