Skip to content

Commit 77bc6e2

Browse files
ktdreyerclaude
andcommitted
adapt mpp-preprod overlay for IT's managed platform
IT's MPP environment manages namespaces (TenantNamespace), CRDs, and secrets outside kustomize. Reference core/ and rbac/ directly instead of the full base/ to exclude those resources. Add PVC patches for MPP requirements: "aws-ebs" storage class, "kubernetes.io/reclaimPolicy: Delete" annotation, and "paas.redhat.com/appcode: AMBC-001" label. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 935c2fe commit 77bc6e2

3 files changed

Lines changed: 19 additions & 14 deletions

File tree

‎components/manifests/overlays/mpp-preprod/kustomization.yaml‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ metadata:
66

77
namespace: ambient-code--runtime-int
88

9+
# Reference core/ and rbac/ directly, skipping platform/ which contains
10+
# Namespace, CRDs, and Secrets that IT manages outside kustomize.
911
resources:
10-
- ../../base
12+
- ../../base/core
13+
- ../../base/rbac
1114
- ambient-api-server-route.yaml
1215
- route.yaml
1316
- backend-route.yaml
@@ -21,10 +24,6 @@ components:
2124
- ../../components/ambient-api-server-db
2225

2326
patches:
24-
- path: namespace-patch.yaml
25-
target:
26-
kind: Namespace
27-
name: ambient-code
2827
- path: ambient-api-server-env-patch.yaml
2928
target:
3029
group: apps
@@ -42,6 +41,10 @@ patches:
4241
kind: Service
4342
name: ambient-api-server
4443
version: v1
44+
# IT MPP requires aws-ebs storage class and appcode label on all PVCs
45+
- path: pvc-mpp-patch.yaml
46+
target:
47+
kind: PersistentVolumeClaim
4548

4649
# Production images from Quay.io
4750
images:

‎components/manifests/overlays/mpp-preprod/namespace-patch.yaml‎

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# IT MPP requires aws-ebs storage class, reclaim policy annotation, and appcode label
2+
apiVersion: v1
3+
kind: PersistentVolumeClaim
4+
metadata:
5+
name: placeholder
6+
labels:
7+
paas.redhat.com/appcode: AMBC-001
8+
annotations:
9+
kubernetes.io/reclaimPolicy: Delete
10+
spec:
11+
storageClassName: aws-ebs

0 commit comments

Comments
 (0)