the existing infrastructure

This commit is contained in:
Platform team
2026-11-02 09:55:40 +00:00
commit aef641e978
55 changed files with 618 additions and 0 deletions
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- manifests.yaml
@@ -0,0 +1,15 @@
apiVersion: database.example.org/v1alpha1
kind: PostgreSQLInstance
metadata:
name: payments
namespace: shop
spec:
parameters:
highAvailability: false
storageGB: 20
version: "17"
compositionSelector:
matchLabels:
provider: example
writeConnectionSecretToRef:
name: payments-connection
@@ -0,0 +1,5 @@
name: payments
namespace: shop
owner: carol
version: "17"
storageGB: 20
+5
View File
@@ -0,0 +1,5 @@
# A claim of the platform's PostgreSQL API: high availability is off unless the form turns it on.
kind: create
params: { namespace: shop, name: payments }
owner: carol
values: { version: "17", storageGB: 20 }
@@ -0,0 +1,15 @@
apiVersion: database.example.org/v1alpha1
kind: PostgreSQLInstance
metadata:
name: orders
namespace: shop
spec:
parameters:
highAvailability: true
storageGB: 100 # about a year of orders
version: "17"
compositionSelector:
matchLabels:
provider: example
writeConnectionSecretToRef:
name: orders-connection
@@ -0,0 +1,6 @@
name: orders
namespace: shop
owner: alice
version: "17"
storageGB: 100
highAvailability: true
@@ -0,0 +1,4 @@
# More storage for orders: one parameter of the claim changes, its comment stays.
kind: update
key: shop/orders
values: { name: orders, namespace: shop, owner: alice, version: "17", storageGB: 100, highAvailability: true }