{
  "apiVersion": "apps/v1",
  "kind": "Deployment",
  "metadata": {
    "name": "nested-test-deployment",
    "namespace": "default",
    "labels": {
      "app": "nested-test",
      "applications.argoproj.io/app-name": "nested-app"
    },
    "annotations": {
      "deployment.kubernetes.io/revision": "2"
    },
    "managedFields": [
      {
        "apiVersion": "apps/v1",
        "fieldsType": "FieldsV1",
        "fieldsV1": {
          "f:metadata": {
            "f:labels": {
              "f:app": {},
              "f:applications.argoproj.io/app-name": {}
            }
          },
          "f:spec": {
            "f:replicas": {},
            "f:selector": {},
            "f:template": {
              "f:metadata": {
                "f:labels": {
                  "f:app": {}
                }
              },
              "f:spec": {
                "f:containers": {
                  "k:{\"name\":\"main-container\"}": {
                    ".": {},
                    "f:image": {},
                    "f:name": {},
                    "f:ports": {
                      ".": {},
                      "k:{\"containerPort\":80,\"protocol\":\"TCP\"}": {
                        ".": {},
                        "f:containerPort": {},
                        "f:name": {},
                        "f:protocol": {}
                      },
                      "k:{\"containerPort\":443,\"protocol\":\"TCP\"}": {
                        ".": {},
                        "f:containerPort": {},
                        "f:name": {},
                        "f:protocol": {}
                      }
                    },
                    "f:env": {
                      ".": {},
                      "k:{\"name\":\"ENV_VAR1\"}": {
                        ".": {},
                        "f:name": {},
                        "f:value": {}
                      },
                      "k:{\"name\":\"ENV_VAR2\"}": {
                        ".": {},
                        "f:name": {},
                        "f:value": {}
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "manager": "argocd-controller",
        "operation": "Apply",
        "time": "2023-12-19T00:00:00Z"
      }
    ]
  },
  "spec": {
    "replicas": 1,
    "selector": {
      "matchLabels": {
        "app": "nested-test"
      }
    },
    "template": {
      "metadata": {
        "labels": {
          "app": "nested-test"
        }
      },
      "spec": {
        "automountServiceAccountToken": false,
        "containers": [
          {
            "name": "main-container",
            "image": "nginx:latest",
            "ports": [
              {
                "containerPort": 80,
                "name": "http",
                "protocol": "TCP"
              },
              {
                "containerPort": 443,
                "name": "https",
                "protocol": "TCP"
              }
            ],
            "env": [
              {
                "name": "ENV_VAR1",
                "value": "value1"
              },
              {
                "name": "ENV_VAR2",
                "value": "value2"
              }
            ],
            "resources": {
              "limits": {
                "memory": "100Mi"
              }
            }
          }
        ]
      }
    }
  }
}