nutanix-cloud-native / cluster-api-runtime-extensions-nutanix

https://nutanix-cloud-native.github.io/cluster-api-runtime-extensions-nutanix/
Apache License 2.0
7 stars 4 forks source link

test: validate CA status ConfigMap #868

Closed dkoshkin closed 3 weeks ago

dkoshkin commented 3 weeks ago

What problem does this PR solve?: Expecting the new e2e test to fail without https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pull/867

Which issue(s) this PR fixes: Fixes #

How Has This Been Tested?:

Special notes for your reviewer:

dkoshkin commented 3 weeks ago

Test using CRS failed as expected https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/actions/runs/10413836013/job/28841982082?pr=868#step:7:564

  [FAILED] Timed out after 600.000s.
  ConfigMap kube-system/cluster-autoscaler-status failed to get expected data:

  ConfigMap:
  {
    "metadata": {
      "name": "cluster-autoscaler-status",
      "namespace": "kube-system",
      "uid": "e82eea8f-f758-4115-824f-a024019bce81",
      "resourceVersion": "2887",
      "creationTimestamp": "2024-08-16T03:03:08Z",
      "annotations": {
        "cluster-autoscaler.kubernetes.io/last-updated": "2024-08-16 03:03:08.51137572 +0000 UTC"
      },
      "managedFields": [
        {
          "manager": "cluster-autoscaler",
          "operation": "Update",
          "apiVersion": "v1",
          "time": "2024-08-16T03:03:08Z",
          "fieldsType": "FieldsV1",
          "fieldsV1": {
            "f:data": {
              ".": {},
              "f:status": {}
            },
            "f:metadata": {
              "f:annotations": {
                ".": {},
                "f:cluster-autoscaler.kubernetes.io/last-updated": {}
              }
            }
          }
        }
      ]
    },
    "data": {
      "status": "time: 2024-08-16 03:03:08.51137572 +0000 UTC\nautoscalerStatus: Initializing\n"
    }
  }