Skip to content

Commit ee21243

Browse files
committed
feat(argocd): create separate ArgoCD application for Crossplane claims
Adds crossplane-claims.yaml to manage claims independently via Argo CD. Updates bootstrap scripts to apply the new manifest and include fallback Crossplane resource application until Argo CD takes over.
1 parent 2865014 commit ee21243

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

.bootstrap/argocd/up.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@ fi
8181

8282
# Apply Argo CD applications or configs
8383
echo "Applying Argo CD manifests..."
84-
kubectl apply -f "$BASE_DIR/crossplane-system.yaml"
84+
kubectl apply -f "$BASE_DIR/crossplane-claims.yaml"
8585

8686
echo "✅ Argo CD setup completed successfully!"

.bootstrap/crossplane/up.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,18 @@ while ! check_providers_health; do
6464
ELAPSED=$((ELAPSED + INTERVAL))
6565
done
6666

67+
# TODO: remove this later. The Argo CD must be sync this
68+
echo "Applying provider configs..."
69+
kubectl apply -f "$BASE_DIR/providers-config" --recursive --namespace "$NS"
70+
71+
echo "Applying functions..."
72+
kubectl apply -f "$BASE_DIR/functions" --recursive --namespace "$NS"
73+
74+
echo "Applying xrds..."
75+
kubectl apply -f "$BASE_DIR/xrds" --recursive --namespace "$NS"
76+
77+
echo "Applying compositions..."
78+
kubectl apply -f "$BASE_DIR/compositions" --recursive --namespace "$NS"
79+
6780
echo "All providers are healthy!"
6881
echo "✅ Crossplane setup completed successfully!"

argocd/crossplane-claims.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: crossplane-claims
5+
namespace: argocd-system
6+
spec:
7+
project: default
8+
source:
9+
repoURL: git@github.com:wnqueiroz/platform-engineering-backstack.git
10+
targetRevision: main
11+
path: crossplane/claims
12+
directory:
13+
recurse: true
14+
destination:
15+
server: https://kubernetes.default.svc
16+
namespace: crossplane-system
17+
syncPolicy:
18+
automated:
19+
prune: true
20+
selfHeal: true

0 commit comments

Comments
 (0)