Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions argocd/argocd/operator/argocd.ftl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
enabled: true
resources:
limits:
cpu: '2'
cpu: 500m
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should keep these limits?

memory: 1Gi
requests:
cpu: 250m
Expand Down Expand Up @@ -39,7 +39,7 @@ spec:
controller:
resources:
limits:
cpu: "2000m"
cpu: "500m"
memory: "2048Mi"
requests:
cpu: "250m"
Expand Down
2 changes: 1 addition & 1 deletion argocd/cluster-resources/argocd/misc.ftl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
project: <#if config.multiTenant.useDedicatedInstance>${tenantName}<#else>cluster-resources</#if>
destination:
server: https://kubernetes.default.svc
namespace: <#if config.multiTenant.useDedicatedInstance>argocd<#else>${config.application.namePrefix}argocd</#if>
namespace: <#if config.multiTenant.useDedicatedInstance>${config.multiTenant.centralArgocdNamespace}<#else>${config.application.namePrefix}argocd</#if>
source:
path: misc/
<#if config.multiTenant.useDedicatedInstance>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class PrometheusStack extends Feature implements FeatureWithImage {
}

private String findValidOpenShiftUid() {
String uidRange = k8sClient.getAnnotation('namespace', 'monitoring', 'openshift.io/sa.scc.uid-range')
String uidRange = k8sClient.getAnnotation('namespace', namespace, 'openshift.io/sa.scc.uid-range')

if (uidRange) {
log.debug("found UID=${uidRange}")
Expand Down
8 changes: 6 additions & 2 deletions templates/kubernetes/rbac/argocd-role.ftl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,13 @@ rules:
resources: ["roles", "rolebindings"]
verbs: ["create", "delete", "get", "list", "patch", "update", "watch"]

<#if config.features.secrets.active == true>
- apiGroups: ["external-secrets.io"]
resources: ["secretstores", "externalsecrets"]
verbs: ["create", "delete", "get", "list", "patch", "update", "watch"]

</#if>

<#if config.features.monitoring.active == true>
- apiGroups: [ "monitoring.coreos.com" ]
resources: [
"alertmanagers",
Expand All @@ -74,4 +77,5 @@ rules:
"podmonitors",
"probes"
]
verbs: [ "create", "delete", "get", "list", "patch", "update", "watch" ]
verbs: [ "create", "delete", "get", "list", "patch", "update", "watch" ]
</#if>