Skip to content

Commit 5798335

Browse files
committed
wip
1 parent 95c55da commit 5798335

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

charts/gitops-runtime/README.md.gotmpl

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,64 @@ See [Use OCI-based registries](https://helm.sh/docs/topics/registries/)
1515
## Codefresh official documentation:
1616
Prior to running the installation please see the official documentation at: https://codefresh.io/docs/docs/installation/gitops/hybrid-gitops-helm-installation/
1717

18+
To achieve this, configure your Runtimes to run in namespaced mode, which uses Roles instead of ClusterRoles. See the values.yaml example below:
19+
20+
## Multi Runtime Installation
21+
You can install multiple Codefresh GitOps Runtimes in the same cluster, as long as each Runtime is deployed in its own namespace and manages only the applications in that namespace.
22+
To achieve this, configure your Runtimes to run in namespaced mode by setting `global.runtime.singleNamespace=true`. See the values.yaml example below:
23+
```yaml
24+
global:
25+
runtime:
26+
singleNamespace: true
27+
sealed-secrets:
28+
enabled: false
29+
argo-cd:
30+
createClusterRoles: false
31+
crds:
32+
install: false
33+
configs:
34+
params:
35+
application.namespaces: ''
36+
argo-events:
37+
controller:
38+
rbac:
39+
namespaced: true
40+
argo-workflows:
41+
crds:
42+
install: false
43+
singleNamespace: true
44+
createAggregateRoles: false
45+
controller:
46+
clusterWorkflowTemplates:
47+
enabled: false
48+
server:
49+
clusterWorkflowTemplates:
50+
enabled: false
51+
argo-rollouts:
52+
enabled: false
53+
tunnel-client:
54+
enabled: false
55+
```
56+
57+
Note that for the first runtime in the cluster, you have to configure it to install the CRDs, with setting these values:
58+
```yaml
59+
global:
60+
runtime:
61+
isConfigurationRuntime: true
62+
argo-cd:
63+
crds:
64+
install: true
65+
argo-workflows:
66+
crds:
67+
install: true
68+
argo-rollouts:
69+
installCRDs: true
70+
gitops-operator:
71+
crds:
72+
install: true
73+
```
74+
75+
1876
## Argo-workflows artifact and log storage
1977
Codefresh provides a SaaS object storage based solution for Argo workflows logs storage. The chart deploys a configmap named `codefresh-workflows-log-store` with the repository configuration.
2078
If you want to utilize the Codefresh SaaS solution for log storage for all workflows in the runtime please set the following values:

charts/gitops-runtime/templates/_components/cf-argocd-extras/event-reporter/_rbac.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
{{/* Remove nonResourceURLs when RBAC is namespaced */}}
1515
{{- $rules := $context.Values.rbac.rules }}
16+
{{- $_ := set $context.Values.rbac "namespaced" (get .Values.global.runtime "singleNamespace") }}
1617
{{- if $context.Values.rbac.namespaced }}
1718
{{- $rules = list }}
1819
{{- range $context.Values.rbac.rules }}

charts/gitops-runtime/templates/_components/cf-argocd-extras/sources-server/_rbac.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
{{/* Workaround to NOT change label selectors from previous runtime release when sources-server was part of cf-argocd-extras Subchart */}}
1212
{{- $_ := set $context.Values "nameOverride" "cf-argocd-extras" }}
13+
{{- $_ := set $context.Values.rbac "namespaced" (get .Values.global.runtime "singleNamespace") }}
1314

1415
{{- $templateName := printf "cf-common-%s.rbac" (index .Subcharts "cf-common").Chart.Version }}
1516
{{- include $templateName $context }}

0 commit comments

Comments
 (0)