Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
fix: infrastructure gateways dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Smana committed Sep 10, 2023
1 parent efe5a18 commit d6795a3
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
20 changes: 20 additions & 0 deletions clusters/mycluster-0/infrastructure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ spec:
dependsOn:
- name: crossplane-providers
---
# The infrastructure components are deployed when Crossplane is available in order to creates irsa resources
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
Expand All @@ -93,4 +94,23 @@ spec:
name: flux-system
dependsOn:
- name: crossplane-configuration
---
# Gateways must be created after Kyverno's cluster policies are applied in order to add AWS annotations
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: infrastructure-gateways
namespace: flux-system
spec:
prune: true
interval: 4m0s
path: ./infrastructure/mycluster-0/gapi
postBuild:
substitute:
domain_name: "cloud.ogenki.io"
sourceRef:
kind: GitRepository
name: flux-system
dependsOn:
- name: crds
- name: security
2 changes: 1 addition & 1 deletion infrastructure/base/gapi/platform-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
gatewayClassName: cilium
listeners:
- name: http
hostname: "*.cloud.ogenki.io"
hostname: "*.${domain_name}"
port: 443
protocol: HTTPS
allowedRoutes:
Expand Down
5 changes: 5 additions & 0 deletions infrastructure/mycluster-0/gapi/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base/gapi
1 change: 0 additions & 1 deletion infrastructure/mycluster-0/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ kind: Kustomization
resources:
- ../base/aws-load-balancer-controller
- ../base/external-dns
- ../base/gapi

0 comments on commit d6795a3

Please sign in to comment.