Files
argo-cd/gitops-engine/pkg/diff/testdata/ssd-deploy-composite-key-predicted-live.json
2025-10-02 13:29:12 -04:00

264 lines
7.5 KiB
JSON

{
"apiVersion": "apps/v1",
"kind": "Deployment",
"metadata": {
"name": "test-container-ports",
"namespace": "default",
"labels": {
"app": "test-app"
},
"uid": "84ec73f0-7144-4fd6-9fb1-40485f47b185",
"resourceVersion": "2137313",
"generation": 3,
"creationTimestamp": "2025-09-19T19:23:03Z",
"annotations": {
"deployment.kubernetes.io/revision": "1"
},
"managedFields": [
{
"apiVersion": "apps/v1",
"fieldsType": "FieldsV1",
"fieldsV1": {
"f:metadata": {
"f:labels": {
"f:app": {}
}
},
"f:spec": {
"f:replicas": {},
"f:selector": {},
"f:template": {
"f:metadata": {
"f:labels": {
"f:app": {}
}
},
"f:spec": {
"f:containers": {
"k:{\"name\":\"nginx\"}": {
".": {},
"f:image": {},
"f:name": {},
"f:ports": {
"k:{\"containerPort\":80,\"protocol\":\"TCP\"}": {
".": {},
"f:containerPort": {},
"f:name": {}
},
"k:{\"containerPort\":443,\"protocol\":\"TCP\"}": {
".": {},
"f:containerPort": {},
"f:name": {}
},
"k:{\"containerPort\":8080,\"protocol\":\"TCP\"}": {
".": {},
"f:containerPort": {},
"f:name": {}
}
}
},
"k:{\"name\":\"sidecar\"}": {
".": {},
"f:command": {},
"f:image": {},
"f:name": {},
"f:ports": {
"k:{\"containerPort\":9090,\"protocol\":\"TCP\"}": {
".": {},
"f:containerPort": {},
"f:name": {}
}
}
}
}
}
}
}
},
"manager": "argocd-controller",
"operation": "Apply",
"time": "2025-09-30T17:52:41Z"
},
{
"apiVersion": "apps/v1",
"fieldsType": "FieldsV1",
"fieldsV1": {
"f:spec": {
"f:template": {
"f:spec": {
"f:containers": {
"k:{\"name\":\"nginx\"}": {
"f:ports": {
"k:{\"containerPort\":80,\"protocol\":\"TCP\"}": {
"f:protocol": {}
},
"k:{\"containerPort\":443,\"protocol\":\"TCP\"}": {
"f:protocol": {}
},
"k:{\"containerPort\":8080,\"protocol\":\"TCP\"}": {
"f:protocol": {}
}
}
},
"k:{\"name\":\"sidecar\"}": {
"f:ports": {
"k:{\"containerPort\":9090,\"protocol\":\"TCP\"}": {
"f:protocol": {}
}
}
}
}
}
}
}
},
"manager": "mutation-webhook",
"operation": "Apply",
"time": "2025-09-30T17:52:42Z"
},
{
"apiVersion": "apps/v1",
"fieldsType": "FieldsV1",
"fieldsV1": {
"f:metadata": {
"f:annotations": {
"f:deployment.kubernetes.io/revision": {}
}
},
"f:status": {
"f:availableReplicas": {},
"f:conditions": {
".": {},
"k:{\"type\":\"Available\"}": {
".": {},
"f:lastTransitionTime": {},
"f:lastUpdateTime": {},
"f:message": {},
"f:reason": {},
"f:status": {},
"f:type": {}
},
"k:{\"type\":\"Progressing\"}": {
".": {},
"f:lastTransitionTime": {},
"f:lastUpdateTime": {},
"f:message": {},
"f:reason": {},
"f:status": {},
"f:type": {}
}
},
"f:observedGeneration": {},
"f:readyReplicas": {},
"f:replicas": {},
"f:updatedReplicas": {}
}
},
"manager": "kube-controller-manager",
"operation": "Update",
"subresource": "status",
"time": "2025-09-30T17:49:16Z"
}
]
},
"spec": {
"progressDeadlineSeconds": 600,
"replicas": 1,
"revisionHistoryLimit": 10,
"selector": {
"matchLabels": {
"app": "test-app"
}
},
"strategy": {
"type": "RollingUpdate",
"rollingUpdate": {
"maxSurge": "25%",
"maxUnavailable": "25%"
}
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"app": "test-app"
}
},
"spec": {
"containers": [
{
"name": "nginx",
"image": "nginx:1.21",
"ports": [
{
"containerPort": 80,
"name": "http",
"protocol": "TCP"
},
{
"containerPort": 443,
"name": "https",
"protocol": "TCP"
},
{
"containerPort": 8080,
"name": "metrics",
"protocol": "TCP"
}
],
"resources": {},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "IfNotPresent"
},
{
"name": "sidecar",
"image": "busybox:1.35",
"command": ["sleep", "3600"],
"ports": [
{
"containerPort": 9090,
"name": "sidecar-port",
"protocol": "TCP"
}
],
"resources": {},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "IfNotPresent"
}
],
"dnsPolicy": "ClusterFirst",
"restartPolicy": "Always",
"schedulerName": "default-scheduler",
"securityContext": {},
"terminationGracePeriodSeconds": 30
}
}
},
"status": {
"availableReplicas": 1,
"conditions": [
{
"type": "Progressing",
"status": "True",
"lastUpdateTime": "2025-09-19T19:23:04Z",
"lastTransitionTime": "2025-09-19T19:23:03Z",
"reason": "NewReplicaSetAvailable",
"message": "ReplicaSet \"test-container-ports-7bd6dc57d5\" has successfully progressed."
},
{
"type": "Available",
"status": "True",
"lastUpdateTime": "2025-09-30T17:49:16Z",
"lastTransitionTime": "2025-09-30T17:49:16Z",
"reason": "MinimumReplicasAvailable",
"message": "Deployment has minimum availability."
}
],
"observedGeneration": 2,
"readyReplicas": 1,
"replicas": 1,
"updatedReplicas": 1
}
}