resource.customizations.ignoreDifferences doesn't save configuration
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- go, kubernetes
- Lĩnh vực
- devops, infrastructure
Hướng nghiên cứu
Không có tệp, bài kiểm thử hoặc điểm truy cập mã nào được nêu; hãy bắt đầu bằng cách lần theo cách resourceIgnoreDifferences được tuần tự hóa vào resource.customizations.ignoreDifferences và cách tùy chỉnh Argo CD tạo ra được sử dụng. Hoàn tất khi managedFieldManagers được giữ nguyên và ConfigMap báo cáo in sync đối với các cấu hình được hiển thị.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
I have an argocd application that contains a following configmap:
kind: ConfigMap
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: >
{"apiVersion":"v1","data":{},"kind":"ConfigMap","metadata":{"annotations":{},"labels":{"app.kubernetes.io/instance":"kubecost","config.openshift.io/inject-trusted-cabundle":"true"},"name":"ca-inject","namespace":"kubecost"}}
creationTimestamp: '2023-12-16T02:24:01Z'
labels:
app.kubernetes.io/instance: kubecost
config.openshift.io/inject-trusted-cabundle: 'true'
managedFields:
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
'f:data':
'f:ca-bundle.crt': {}
manager: cluster-network-operator/configmap_ca
operation: Apply
time: '2023-12-16T02:24:01Z'
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
'f:metadata':
'f:annotations':
.: {}
'f:kubectl.kubernetes.io/last-applied-configuration': {}
'f:labels':
.: {}
'f:app.kubernetes.io/instance': {}
'f:config.openshift.io/inject-trusted-cabundle': {}
manager: argocd-controller
operation: Update
time: '2023-12-16T02:24:01Z'
name: ca-inject
namespace: kubecost
resourceVersion: '351766'
uid: 0955b2d6-daf1-4544-b392-926fc14b960b
As you can see cluster-network-operator/configmap_ca is managing that data field and inject openshift ca-bundle content there. Since that field is different from desired it is always out of sync. I tried to add a configuration to my ArgoCD CDR instance in these ways, but that configmap still out of sync. Also I've spotted that ArgoCD doesn't save a piece of the configuration:
# input:
resourceIgnoreDifferences:
all:
managedFieldsManagers:
- cluster-network-operator/configmap_ca
- cluster-network-operator
- configmap_ca
# saved
resourceIgnoreDifferences:
all:
managedFieldsManagers:
- cluster-network-operator/configmap_ca
- cluster-network-operator
- configmap_ca
# in configmap
resource.customizations.ignoreDifferences.all: |
jqpathexpressions: []
jsonpointers: []
managedfieldsmanagers:
- cluster-network-operator/configmap_ca
- cluster-network-operator
- configmap_ca
# input
resourceIgnoreDifferences:
resourceIdentifiers:
- group: ''
kind: configmaps
customization:
managedFieldManagers:
- cluster-network-operator/configmap_ca
- cluster-network-operator
- configmap_ca
# saved
resourceIgnoreDifferences:
resourceIdentifiers:
- customization: {}
group: ''
kind: configmaps
# configmap
resource.customizations.ignoreDifferences.configmaps: |
jqpathexpressions: []
jsonpointers: []
managedfieldsmanagers: []
# input
resourceIgnoreDifferences:
resourceIdentifiers:
- group: ''
kind: configmaps
customization:
jsonpointers:
- /data
managedFieldManagers:
- cluster-network-operator/configmap_ca
- cluster-network-operator
- configmap_ca
# saved
resourceIgnoreDifferences:
resourceIdentifiers:
- customization:
jsonPointers:
- /data
group: ''
kind: configmaps
# configmap
resource.customizations.ignoreDifferences.configmaps: |
jqpathexpressions: []
jsonpointers:
- /data
managedfieldsmanagers: []
# input
resourceIgnoreDifferences:
resourceIdentifiers:
- group: ''
kind: configmaps
customization:
jqPathExpressions:
- .data
managedFieldManagers:
- cluster-network-operator/configmap_ca
- cluster-network-operator
- configmap_ca
# saved
resourceIgnoreDifferences:
resourceIdentifiers:
- customization:
jqPathExpressions:
- .data
group: ''
kind: configmaps
# configmap
resource.customizations.ignoreDifferences.configmaps: |
jqpathexpressions:
- .data
jsonpointers: []
managedfieldsmanagers: []
Expected behavior
Configmap is in sync
- Ngôn ngữ chính
- Go
- Star
- 188
- Fork
- 362
- Merge trung bình
- 5 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 27
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của redhat-developer/gitops-operator
-
bug(repo-server): update-ca-certificates init container does not inherit spec.repo.resourcesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
redhat-developer/gitops-operator#1350 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
redhat-developer/gitops-operator#1287 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Secret-looking text in log output, ci logs redactedCó thể đã có người làm @olivergondza đã nhận 6 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
redhat-developer/gitops-operator#1311 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Harden OpenShift manual-install SCC troubleshooting guidanceCó thể đã có người làm @olivergondza đã nhận 25 ngày trước. Đang mở
redhat-developer/gitops-operator#1295 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
NodePlacement or Toleration/NodeSelector not workingCó thể đã có người làm @Pratik-Redhat-Tech đã nhận 35 ngày trước. Đang mởtriage:required
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
redhat-developer/gitops-operator#572 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của redhat-developer/gitops-operator
Issue tương tự
-
bug go
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
genkit-ai/genkit#6761 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug(backend): `make test-update` in backend/src/v2 fails because the --update flag was removedĐang mởready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 92/100
kubeflow/pipelines#14784 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug frontend good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
trust: update-propagation-directive requires developer mode while add and remove do notCó thể đã có người làm @bhuvan-somisetty đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
oalders/clodhopper#133 ·