Skip to content

Commit b685b67

Browse files
committed
feat(argocd): enhance resource customization and comparison options in resource.yaml
1 parent 20656ba commit b685b67

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

argocd/prod/resource.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ configs:
55
- url: https://grafana.naturalselectionlabs.com/d/WjNUQy94z/5-7c-general-logs?orgId=1&from=now-5m&to=now&timezone=Asia%2FShanghai&var-datasource=d755e44f-61a2-4c4f-932d-f53cda0ab31e&var-namespace={{.resource.metadata.namespace}}&var-app={{.resource.metadata.name}}&var-component=$__all&var-pod=$__all&var-container=$__all&var-query0=
66
title: 5-7c General Logs
77
if: resource.kind == "Deployment"
8+
resource.customizations.ignoreDifferences.apps_Deployment: |
9+
jqPathExpressions:
10+
- .spec.template.spec.initContainers[].resources
11+
resource.customizations.ignoreDifferences.ServiceAccount: |
12+
jqPathExpressions:
13+
- .imagePullSecrets
14+
resource.compareoptions: |
15+
# disables status field diffing in specified resource types
16+
# 'crd' - CustomResourceDefinitions (default)
17+
# 'all' - all resources
18+
# 'none' - disabled
19+
ignoreResourceStatusField: crd
820
resource.exclusions: |
921
### Network resources created by the Kubernetes control plane and excluded to reduce the number of watched events and UI clutter
1022
- apiGroups:

argocd/prod/values.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -276,15 +276,6 @@ configs:
276276
# - kube-controller-manager
277277
# jqPathExpressions:
278278
# - .spec.replicas
279-
resource.customizations.ignoreDifferences.apps_Deployment: |
280-
jqPathExpressions:
281-
- .spec.template.spec.initContainers[].resources
282-
resource.compareoptions: |
283-
# disables status field diffing in specified resource types
284-
# 'crd' - CustomResourceDefinitions (default)
285-
# 'all' - all resources
286-
# 'none' - disabled
287-
ignoreResourceStatusField: crd
288279
params:
289280
server.insecure: true
290281
reposerver.enable.git.submodule: false

0 commit comments

Comments
 (0)