Skip to content

Commit cf140b9

Browse files
authored
chore(KFLUXVNGD-522): add cluster-config configmap to konflux-info (#9617)
This commit adds a cluster-config configmap to the konflux-info deployment in all production and staging environments. This configmap is used to configure the caching data for konflux clusters. It has the following fields: - allow-cache-proxy: boolean to enable/disable the caching proxy - http-proxy: the URL of the caching proxy - no-proxy: a comma-separated list of domains that should not be proxied It is separated to allow for different configurations for different clusters. Signed-off-by: Avi Biton <[email protected]>
1 parent fc199d7 commit cf140b9

File tree

21 files changed

+61
-0
lines changed

21 files changed

+61
-0
lines changed

components/konflux-info/base/rbac.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ rules:
1111
resourceNames:
1212
- konflux-public-info
1313
- konflux-banner-configmap
14+
- cluster-config
1415
resources:
1516
- configmaps
1617
---
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
allow-cache-proxy=true
2+
http-proxy=squid.caching.svc.cluster.local:3128
3+
no-proxy=brew.registry.redhat.io,docker.io,gcr.io,ghcr.io,images.paas.redhat.com,mirror.gcr.io,nvcr.io,quay.io,registry-proxy.engineering.redhat.com,registry.access.redhat.com,registry.ci.openshift.org,registry.fedoraproject.org,registry.redhat.io,registry.stage.redhat.io,vault.habana.ai

components/konflux-info/production/kflux-ocp-p01/kustomization.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ configMapGenerator:
1313
- name: konflux-banner-configmap
1414
files:
1515
- banner-content.yaml
16+
- name: cluster-config
17+
envs:
18+
- cluster-config.env
1619

1720
namespace: konflux-info
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
allow-cache-proxy=true
2+
http-proxy=squid.caching.svc.cluster.local:3128
3+
no-proxy=brew.registry.redhat.io,docker.io,gcr.io,ghcr.io,images.paas.redhat.com,mirror.gcr.io,nvcr.io,quay.io,registry-proxy.engineering.redhat.com,registry.access.redhat.com,registry.ci.openshift.org,registry.fedoraproject.org,registry.redhat.io,registry.stage.redhat.io,vault.habana.ai

components/konflux-info/production/kflux-osp-p01/kustomization.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ configMapGenerator:
1313
- name: konflux-banner-configmap
1414
files:
1515
- banner-content.yaml
16+
- name: cluster-config
17+
envs:
18+
- cluster-config.env
1619

1720
namespace: konflux-info
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
allow-cache-proxy=true
2+
http-proxy=squid.caching.svc.cluster.local:3128
3+
no-proxy=brew.registry.redhat.io,docker.io,gcr.io,ghcr.io,images.paas.redhat.com,mirror.gcr.io,nvcr.io,quay.io,registry-proxy.engineering.redhat.com,registry.access.redhat.com,registry.ci.openshift.org,registry.fedoraproject.org,registry.redhat.io,registry.stage.redhat.io,vault.habana.ai

components/konflux-info/production/kflux-prd-rh02/kustomization.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ configMapGenerator:
1313
- name: konflux-banner-configmap
1414
files:
1515
- banner-content.yaml
16+
- name: cluster-config
17+
envs:
18+
- cluster-config.env
1619

1720
namespace: konflux-info
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
allow-cache-proxy=true
2+
http-proxy=squid.caching.svc.cluster.local:3128
3+
no-proxy=brew.registry.redhat.io,docker.io,gcr.io,ghcr.io,images.paas.redhat.com,mirror.gcr.io,nvcr.io,quay.io,registry-proxy.engineering.redhat.com,registry.access.redhat.com,registry.ci.openshift.org,registry.fedoraproject.org,registry.redhat.io,registry.stage.redhat.io,vault.habana.ai

components/konflux-info/production/kflux-prd-rh03/kustomization.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ configMapGenerator:
1313
- name: konflux-banner-configmap
1414
files:
1515
- banner-content.yaml
16+
- name: cluster-config
17+
envs:
18+
- cluster-config.env
1619

1720
namespace: konflux-info
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
allow-cache-proxy=true
2+
http-proxy=squid.caching.svc.cluster.local:3128
3+
no-proxy=brew.registry.redhat.io,docker.io,gcr.io,ghcr.io,images.paas.redhat.com,mirror.gcr.io,nvcr.io,quay.io,registry-proxy.engineering.redhat.com,registry.access.redhat.com,registry.ci.openshift.org,registry.fedoraproject.org,registry.redhat.io,registry.stage.redhat.io,vault.habana.ai

0 commit comments

Comments
 (0)