Skip to content

Commit 639e3f3

Browse files
committed
feat(KFLUXVNGD-416): deploy squid to development and staging
- Add squid applicationset - Add squid to development and staging environments - Exclude squid from production - Add OWNERS file Signed-off-by: Avi Biton <[email protected]>
1 parent 9a9b2f1 commit 639e3f3

File tree

11 files changed

+130
-0
lines changed

11 files changed

+130
-0
lines changed

argo-cd-apps/base/member/infra-deployments/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ resources:
3737
- pulp-access-controller
3838
- cert-manager
3939
- trust-manager
40+
- squid
4041
- kueue
4142
- policies
4243
- konflux-kite
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
- squid.yaml
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: ApplicationSet
3+
metadata:
4+
name: squid
5+
spec:
6+
generators:
7+
- merge:
8+
mergeKeys:
9+
- nameNormalized
10+
generators:
11+
- clusters:
12+
selector:
13+
matchLabels:
14+
appstudio.redhat.com/member-cluster: "true"
15+
values:
16+
sourceRoot: components/squid
17+
environment: development
18+
clusterDir: ""
19+
- list:
20+
elements: []
21+
template:
22+
metadata:
23+
name: squid-{{nameNormalized}}
24+
spec:
25+
project: default
26+
source:
27+
path: '{{values.sourceRoot}}/{{values.environment}}/{{values.clusterDir}}'
28+
repoURL: https://github.com/redhat-appstudio/infra-deployments.git
29+
targetRevision: main
30+
destination:
31+
namespace: proxy
32+
server: '{{server}}'
33+
syncPolicy:
34+
automated:
35+
prune: true
36+
selfHeal: false
37+
syncOptions:
38+
- CreateNamespace=true
39+
retry:
40+
limit: -1
41+
backoff:
42+
duration: 10s
43+
factor: 2
44+
maxDuration: 3m

argo-cd-apps/overlays/development/kustomization.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,3 +229,8 @@ patches:
229229
kind: ApplicationSet
230230
version: v1alpha1
231231
name: trust-manager
232+
- path: development-overlay-patch.yaml
233+
target:
234+
kind: ApplicationSet
235+
version: v1alpha1
236+
name: squid

argo-cd-apps/overlays/konflux-public-production/delete-applications.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,9 @@ kind: ApplicationSet
3030
metadata:
3131
name: trust-manager
3232
$patch: delete
33+
---
34+
apiVersion: argoproj.io/v1alpha1
35+
kind: ApplicationSet
36+
metadata:
37+
name: squid
38+
$patch: delete

argo-cd-apps/overlays/production-downstream/delete-applications.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,9 @@ kind: ApplicationSet
4747
metadata:
4848
name: trust-manager
4949
$patch: delete
50+
---
51+
apiVersion: argoproj.io/v1alpha1
52+
kind: ApplicationSet
53+
metadata:
54+
name: squid
55+
$patch: delete

components/squid/OWNERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# See the OWNERS docs: https://go.k8s.io/owners
2+
3+
approvers:
4+
- ifireball
5+
- gbenhaim
6+
- amisstea
7+
- yftacherzog
8+
- avi-biton
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
generators:
5+
- squid-helm-generator.yaml
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: builtin
2+
kind: HelmChartInflationGenerator
3+
metadata:
4+
name: squid-helm
5+
name: squid-helm
6+
repo: oci://quay.io/konflux-ci/caching
7+
version: 0.1.255+eee6382
8+
valuesInline:
9+
installCertManagerComponents: false
10+
mirrord:
11+
enabled: false
12+
test:
13+
enabled: false
14+
cert-manager:
15+
enabled: false
16+
environment: release
17+
resources:
18+
requests:
19+
cpu: 100m
20+
memory: 128Mi
21+
limits:
22+
cpu: 200m
23+
memory: 256Mi
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
generators:
5+
- squid-helm-generator.yaml

0 commit comments

Comments
 (0)