resource.customizations.ignoreDifferences doesn't save configuration
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- go, kubernetes
- Bereich
- devops, infrastructure
Rechercherichtung
Es wird keine Datei, kein Test und kein Einstiegspunkt in den Code genannt; beginne damit nachzuverfolgen, wie resourceIgnoreDifferences in resource.customizations.ignoreDifferences serialisiert wird und wie die daraus resultierende Argo CD-Anpassung verwendet wird. Als abgeschlossen gilt die Aufgabe, wenn managedFieldManagers erhalten bleiben und die ConfigMap für die gezeigten Konfigurationen den Status „in sync“ meldet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Go
- Sterne
- 188
- Forks
- 359
- Ø Merge
- 4 T. 6 Std.
- Gemergte PRs (30 T.)
- 27
Entwicklungsumgebung
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus redhat-developer/gitops-operator
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 86/100
redhat-developer/gitops-operator#1287 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
redhat-developer/gitops-operator#1311 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Harden OpenShift manual-install SCC troubleshooting guidanceEvtl. vergeben @olivergondza hat das vor 13 Tagen übernommen. Offen
redhat-developer/gitops-operator#1295 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 52/100
redhat-developer/gitops-operator#1139 ·
Maintainer antworten meist innerhalb von 1 Tag
-
triage:required
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
redhat-developer/gitops-operator#572 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in redhat-developer/gitops-operator
Ähnliche Issues
-
Remove CAAPFOffenkind/chore kind/cleanup needs-area
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
rancher/turtles#2848 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 1 Tag
-
priority: low 🌱 type: enhancement 💅🏼
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 84/100
nebari-dev/llm-serving-pack#199 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
kedacore/keda#8225 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag