Argo CD 显示 linkerd(由 Helm 安装)中的两个项目不同步。这些警告是由
preserveUnknownFields: false
部分中的可选 spec
引起的:
trafficsplits.split.smi-spec.io
serviceprofiles.linkerd.io
但我无法弄清楚如何在
ignoreDifferences
清单中使用 Application
来忽略差异。 /spec/preserveUnknownFields
json 路径不起作用。是因为左侧版本中没有保留UnknownFields字段吗?
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: linkerd
namespace: argocd
spec:
destination:
namespace: linkerd
server: https://kubernetes.default.svc
project: default
source:
chart: linkerd2
repoURL: https://helm.linkerd.io/stable
targetRevision: 2.10.1
syncPolicy:
automated: {}
ignoreDifferences:
- group: apiextensions.k8s.io/v1
name: trafficsplits.split.smi-spec.io
kind: CustomResourceDefinition
jsonPointers:
- /spec/preserveUnknownFields
- group: apiextensions.k8s.io/v1
name: trafficsplits.split.smi-spec.io
kind: CustomResourceDefinition
jsonPointers:
- /spec/preserveUnknownFields