github.com/verrazzano/verrazzano@v1.7.0/application-operator/controllers/webhooks/testdata/hello-conf_update_request.json (about)

     1  {
     2      "request": {
     3          "uid": "c3d62ca9-772c-48e7-87aa-debeea9f31b7",
     4          "kind": {
     5              "group": "core.oam.dev",
     6              "version": "v1alpha2",
     7              "kind": "ApplicationConfiguration"
     8          },
     9          "resource": {
    10              "group": "core.oam.dev",
    11              "version": "v1alpha2",
    12              "resource": "applicationconfigurations"
    13          },
    14          "requestKind": {
    15              "group": "core.oam.dev",
    16              "version": "v1alpha2",
    17              "kind": "ApplicationConfiguration"
    18          },
    19          "requestResource": {
    20              "group": "core.oam.dev",
    21              "version": "v1alpha2",
    22              "resource": "applicationconfigurations"
    23          },
    24          "name": "hello-app",
    25          "namespace": "default",
    26          "operation": "UPDATE",
    27          "userInfo": {
    28              "username": "kubernetes-admin",
    29              "groups": [
    30                  "system:masters",
    31                  "system:authenticated"
    32              ]
    33          },
    34          "object": {
    35              "apiVersion": "core.oam.dev/v1alpha2",
    36              "kind": "ApplicationConfiguration",
    37              "metadata": {
    38                  "annotations": {
    39                      "description": "Hello application",
    40                      "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"core.oam.dev/v1alpha2\",\"kind\":\"ApplicationConfiguration\",\"metadata\":{\"annotations\":{\"description\":\"Hello application\",\"version\":\"v1.0.0\"},\"name\":\"hello-app\",\"namespace\":\"default\"},\"spec\":{\"components\":[{\"componentName\":\"hello-component\"}]}}\n",
    41                      "version": "v1.0.0"
    42                  },
    43                  "creationTimestamp": "2020-12-18T15:27:10Z",
    44                  "generation": 1,
    45                  "name": "hello-app",
    46                  "namespace": "default",
    47                  "resourceVersion": "117278",
    48                  "uid": "8eb29535-819b-4d2e-8a61-037610df18be"
    49              },
    50              "spec": {
    51                  "components": [
    52                      {
    53                          "componentName": "hello-component"
    54                      }
    55                  ]
    56              },
    57              "status": {
    58                  "conditions": [
    59                      {
    60                          "lastTransitionTime": "2020-12-18T15:27:11Z",
    61                          "reason": "ReconcileSuccess",
    62                          "status": "True",
    63                          "type": "Synced"
    64                      }
    65                  ],
    66                  "dependency": {},
    67                  "observedGeneration": 1,
    68                  "workloads": [
    69                      {
    70                          "componentName": "hello-component",
    71                          "componentRevisionName": "hello-component-v1",
    72                          "traits": [
    73                              {
    74                                  "traitRef": {
    75                                      "apiVersion": "oam.verrazzano.io/v1alpha1",
    76                                      "kind": "MetricsTrait",
    77                                      "name": "hello-component-metricstraits-656cfbdb97"
    78                                  }
    79                              }
    80                          ],
    81                          "workloadRef": {
    82                              "apiVersion": "core.oam.dev/v1alpha2",
    83                              "kind": "ContainerizedWorkload",
    84                              "name": "hello-workload"
    85                          }
    86                      }
    87                  ]
    88              }
    89          },
    90          "oldObject": {
    91              "apiVersion": "core.oam.dev/v1alpha2",
    92              "kind": "ApplicationConfiguration",
    93              "metadata": {
    94                  "annotations": {
    95                      "description": "Hello application",
    96                      "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"core.oam.dev/v1alpha2\",\"kind\":\"ApplicationConfiguration\",\"metadata\":{\"annotations\":{\"description\":\"Hello application\",\"version\":\"v1.0.0\"},\"name\":\"hello-app\",\"namespace\":\"default\"},\"spec\":{\"components\":[{\"componentName\":\"hello-component\"}]}}\n",
    97                      "version": "v1.0.0"
    98                  },
    99                  "creationTimestamp": "2020-12-18T15:27:10Z",
   100                  "generation": 1,
   101                  "name": "hello-app",
   102                  "namespace": "default",
   103                  "resourceVersion": "117278",
   104                  "uid": "8eb29535-819b-4d2e-8a61-037610df18be"
   105              },
   106              "spec": {
   107                  "components": [
   108                      {
   109                          "componentName": "hello-component",
   110                          "traits": [
   111                              {
   112                                  "trait": {
   113                                      "apiVersion": "oam.verrazzano.io/v1alpha1",
   114                                      "kind": "MetricsTrait"
   115                                  }
   116                              }
   117                          ]
   118                      }
   119                  ]
   120              },
   121              "status": {
   122                  "conditions": [
   123                      {
   124                          "lastTransitionTime": "2020-12-18T15:27:11Z",
   125                          "reason": "ReconcileSuccess",
   126                          "status": "True",
   127                          "type": "Synced"
   128                      }
   129                  ],
   130                  "dependency": {},
   131                  "observedGeneration": 1,
   132                  "workloads": [
   133                      {
   134                          "componentName": "hello-component",
   135                          "componentRevisionName": "hello-component-v1",
   136                          "traits": [
   137                              {
   138                                  "traitRef": {
   139                                      "apiVersion": "oam.verrazzano.io/v1alpha1",
   140                                      "kind": "MetricsTrait",
   141                                      "name": "hello-component-metricstraits-656cfbdb97"
   142                                  }
   143                              }
   144                          ],
   145                          "workloadRef": {
   146                              "apiVersion": "core.oam.dev/v1alpha2",
   147                              "kind": "ContainerizedWorkload",
   148                              "name": "hello-workload"
   149                          }
   150                      }
   151                  ]
   152              }
   153          },
   154          "dryRun": false,
   155          "options": {
   156              "kind": "UpdateOptions",
   157              "apiVersion": "meta.k8s.io/v1"
   158          }
   159      }
   160  }