dbinstance

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: Apache-2.0 Imports: 28 Imported by: 0 modules, 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.

README

docdb/DBInstance

Manages an instance of an Amazon DocumentDB cluster (DBInstance.docdb.aws2.crossplane.io).

Origin

Imported from provider-aws crossplane-contrib/provider-aws@ad8ac93 (clean; apis/docdb/import.yaml), ported by hand in 2362ae0.

Behavior

  • External name: metadata.name by default; used as DBInstanceIdentifier.
  • Cluster: dbClusterIdentifier, or a reference to a docdb/DBCluster in the same namespace (dbClusterIdentifierRef/Selector; hand-written resolver in apis/docdb/v1alpha1/dbcluster_dbinstance.go).
  • Drift: generated DiffUpdatableParameters, minus autoMinorVersionUpgrade; plus enablePerformanceInsights, the Performance Insights KMS key (key ID equals key ARN) and tags.
  • Update: ModifyDBInstance without AutoMinorVersionUpgrade, then tags.
  • Delete: skipped while the instance is already deleting.
  • Connection details: endpoint, port (credentials are on the cluster).
  • Conditions: from the instance status.
Hook Why
preObserve, preCreate, preDelete, filterList identifiers from the external name
lateInitialize AZ, CA certificate, maintenance window, promotion tier
isUpToDate see Drift
postObserve, postCreate conditions, connection details
preUpdate, postUpdate drop unsupported fields, tags

Differences from provider-aws

  • All updatable fields are compared.
  • Secrets/references resolved in the MR's namespace.

Limitations

  • autoMinorVersionUpgrade can't be changed after creation (DocumentDB's ModifyDBInstance rejects it).
  • Not compared because AWS can't change them: availabilityZone, engine.
  • caCertificateIdentifier exists in both generated and custom parameters; the generated field wins and the custom one is dead.

Examples

examples/docdb/dbinstance.yaml.

History

Date PR Change
2026-11-04 #4 Create no longer copies the AWS response into spec.forProvider (status only)
2026-11-04 #4 Tags starting with aws: are ignored instead of being removed (ADR 0012)
2026-10-09 b74da45 Compare all updatable fields
2026-10-09 c501153 Imported from provider-aws and ported to runtime v2, SDK v2, namespaced secrets

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffUpdatableParameters

func DiffUpdatableParameters(desired, observed *svcapitypes.DBInstanceParameters) []string

DiffUpdatableParameters returns the JSON names of the spec fields that ModifyDBInstance can change and whose desired value differs from the observed one (see compare.IsSubset). Fields that are not set in desired are not compared. Fields whose name or shape differs between the update input and the read output are not included; compare them by hand.

func GenerateCreateDBInstanceInput

func GenerateCreateDBInstanceInput(cr *svcapitypes.DBInstance) (*svcsdk.CreateDBInstanceInput, error)

GenerateCreateDBInstanceInput returns a create input.

func GenerateDBInstance

func GenerateDBInstance(resp *svcsdk.DescribeDBInstancesOutput) *svcapitypes.DBInstance

GenerateDBInstance returns the current state in the form of *svcapitypes.DBInstance.

func GenerateDeleteDBInstanceInput

func GenerateDeleteDBInstanceInput(cr *svcapitypes.DBInstance) (*svcsdk.DeleteDBInstanceInput, error)

GenerateDeleteDBInstanceInput returns a deletion input.

func GenerateDescribeDBInstancesInput

func GenerateDescribeDBInstancesInput(cr *svcapitypes.DBInstance) (*svcsdk.DescribeDBInstancesInput, error)

GenerateDescribeDBInstancesInput returns input for read operation.

func GenerateModifyDBInstanceInput

func GenerateModifyDBInstanceInput(cr *svcapitypes.DBInstance) (*svcsdk.ModifyDBInstanceInput, error)

GenerateModifyDBInstanceInput returns an update input.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns whether the given error means that the resource does not exist.

func Setup

func Setup(mgr ctrl.Manager, o controller.Options) error

Setup adds a controller that reconciles DBInstance.

func SetupGated

func SetupGated(mgr ctrl.Manager, o controller.Options) error

SetupGated adds the DBInstance controller once its CRD is available.

Types

Jump to

Keyboard shortcuts

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