Skip to content

Commit 0e24bab

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 d525c9a commit 0e24bab

File tree

13 files changed

+151
-0
lines changed

13 files changed

+151
-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
@@ -36,6 +36,7 @@ resources:
3636
- pulp-access-controller
3737
- cert-manager
3838
- trust-manager
39+
- squid
3940
- kueue
4041
- policies
4142
- 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: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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: staging
18+
clusterDir: ""
19+
- list:
20+
elements: []
21+
template:
22+
metadata:
23+
name: squid-{{nameNormalized}}
24+
annotations:
25+
argocd.argoproj.io/sync-wave: "1"
26+
spec:
27+
project: default
28+
source:
29+
path: '{{values.sourceRoot}}/{{values.environment}}/{{values.clusterDir}}'
30+
repoURL: https://github.com/redhat-appstudio/infra-deployments.git
31+
targetRevision: main
32+
destination:
33+
namespace: proxy
34+
server: '{{server}}'
35+
syncPolicy:
36+
automated:
37+
prune: true
38+
selfHeal: false
39+
syncOptions:
40+
- CreateNamespace=true
41+
retry:
42+
limit: -1
43+
backoff:
44+
duration: 10s
45+
factor: 2
46+
maxDuration: 3m

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,3 +234,8 @@ patches:
234234
kind: ApplicationSet
235235
version: v1alpha1
236236
name: trust-manager
237+
- path: development-overlay-patch.yaml
238+
target:
239+
kind: ApplicationSet
240+
version: v1alpha1
241+
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
@@ -41,3 +41,9 @@ kind: ApplicationSet
4141
metadata:
4242
name: trust-manager
4343
$patch: delete
44+
---
45+
apiVersion: argoproj.io/v1alpha1
46+
kind: ApplicationSet
47+
metadata:
48+
name: squid
49+
$patch: delete

components/release/development/kustomization.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,9 @@ patches:
2020
kind: Deployment
2121
name: controller-manager
2222
path: sealights-token-patch.yaml
23+
- target:
24+
group: apps
25+
version: v1
26+
kind: Deployment
27+
name: release-service-controller-manager
28+
path: manager-memory-patch.yaml
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: release-service-controller-manager
5+
namespace: system
6+
spec:
7+
template:
8+
spec:
9+
containers:
10+
- name: manager
11+
resources:
12+
limits:
13+
memory: 256Mi

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

0 commit comments

Comments
 (0)