argo-cd/pkg/diff/testdata/ssd-service-predicted-live.json

75 lines
2.1 KiB
JSON
Raw Normal View History

feat: Implement Server-Side Diffs (#522) * feat: Implement Server-Side Diffs Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * trigger build Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * chore: remove unused function Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * make HasAnnotationOption more generic Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * add server-side-diff printer option Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * remove managedFields during server-side-diff Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * add ignore mutation webhook logic Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * fix configSet Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * Fix comparison Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * merge typedconfig in typedpredictedlive Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * handle webhook diff conflicts Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * Fix webhook normalization logic Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * address review comments 1/2 Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * address review comments 2/2 Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * fix lint Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * remove kubectl getter from cluster-cache Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * fix query param verifier instantiation Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> * Add server-side-diff unit tests Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> --------- Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
2023-12-18 19:45:13 +00:00
{
"apiVersion": "v1",
"kind": "Service",
"metadata": {
"creationTimestamp": "2023-12-18T00:34:22Z",
"labels": {
"event": "FROM-MUTATION-WEBHOOK"
},
"managedFields": [
{
"apiVersion": "v1",
"fieldsType": "FieldsV1",
"fieldsV1": {
"f:spec": {
"f:ports": {
"k:{\"port\":333,\"protocol\":\"TCP\"}": {
".": {},
"f:name": {},
"f:port": {}
},
"k:{\"port\":7777,\"protocol\":\"TCP\"}": {
".": {},
"f:name": {},
"f:port": {},
"f:targetPort": {}
}
},
"f:selector": {}
}
},
"manager": "argocd-controller",
"operation": "Apply",
"time": "2023-12-18T00:38:28Z"
}
],
"name": "httpbin-svc",
"namespace": "httpbin",
"resourceVersion": "2836",
"uid": "0e898e6f-c275-476d-9b4f-5e96072cc129"
},
"spec": {
"clusterIP": "10.43.223.115",
"clusterIPs": [
"10.43.223.115"
],
"internalTrafficPolicy": "Cluster",
"ipFamilies": [
"IPv4"
],
"ipFamilyPolicy": "SingleStack",
"ports": [
{
"name": "http-port",
"port": 7777,
"protocol": "TCP",
"targetPort": 80
},
{
"name": "test",
"port": 333,
"protocol": "TCP",
"targetPort": 333
}
],
"selector": {
"app": "httpbin"
},
"sessionAffinity": "None",
"type": "ClusterIP"
},
"status": {
"loadBalancer": {}
}
}