Skip to content

Commit 1d1ec92

Browse files
committed
Ensure final snapshot name is unique
Also update everything to be ready for merge by setting the function version to v0.1.0
1 parent 1376800 commit 1d1ec92

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

charts/crossplane/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ crossplane:
3131
function:
3232
packages:
3333
- "xpkg.crossplane.io/crossplane-contrib/function-patch-and-transform:v0.8.2"
34-
- "ghcr.io/amazeeio/amazeeai-k0rdent-catalog/vectordb-function:v0.0.2-crossplane"
34+
- "ghcr.io/amazeeio/amazeeai-k0rdent-catalog/vectordb-function:v0.1.0"
3535

3636
# Provider packages to install
3737
provider:
@@ -40,6 +40,7 @@ crossplane:
4040
- "xpkg.crossplane.io/crossplane-contrib/provider-terraform:v0.21.0"
4141
- "xpkg.crossplane.io/crossplane-contrib/provider-aws-ec2:v1.23.0" # Need EC2 for VPC management
4242
- "xpkg.crossplane.io/crossplane-contrib/provider-aws-rds:v1.23.0" # RDS is for DB cluster creation
43+
- "xpkg.crossplane.io/crossplane-contrib/provider-aws-iam:v1.23.0" # IAM is for DB monitoring role
4344

4445
# Feature flags - only stable beta features enabled
4546
args:

examples/clusters/development/crossplane-resources.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ spec:
2828
function:
2929
packages:
3030
- "xpkg.crossplane.io/crossplane-contrib/function-patch-and-transform:v0.8.2"
31-
- "ghcr.io/amazeeio/amazeeai-k0rdent-catalog/vectordb-function:v0.0.23-crossplane"
31+
- "ghcr.io/amazeeio/amazeeai-k0rdent-catalog/vectordb-function:v0.0.25-crossplane"
3232
provider:
3333
packages:
3434
- "xpkg.crossplane.io/crossplane-contrib/provider-family-aws:v1.23.0" # top level provider for credential management

functions/vectordb/function/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
"""The version of the function."""
1616

1717
# This is set at build time, using "hatch version"
18-
__version__ = "0.0.25"
18+
__version__ = "0.1.0"

functions/vectordb/function/fn.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,9 @@ def _create_aurora_cluster(self, config: VectorDBConfig) -> dict:
621621
],
622622
"deletionProtection": config.deletion_protection,
623623
"skipFinalSnapshot": False,
624-
"finalSnapshotIdentifier": (f"{config.postgres_cluster_name}-final-snapshot"),
624+
"finalSnapshotIdentifier": (
625+
f"{config.claim_name}-final-snapshot-{config.environment_suffix}"
626+
),
625627
"copyTagsToSnapshot": True,
626628
"iamDatabaseAuthenticationEnabled": False,
627629
"enableHttpEndpoint": False,

0 commit comments

Comments
 (0)