Skip to content

Commit

Permalink
chore: fix int tests (terraform-google-modules#1697)
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathkkb authored Jul 24, 2023
1 parent ca484fc commit c5c9317
Showing 1 changed file with 55 additions and 37 deletions.
92 changes: 55 additions & 37 deletions test/integration/beta_cluster/testdata/TestBetaCluster.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,34 +34,37 @@
"clusterTelemetry": {
"type": "SYSTEM_ONLY"
},
"createTime": "2022-11-30T07:08:52+00:00",
"currentMasterVersion": "1.23.12-gke.100",
"createTime": "2023-07-24T18:08:07+00:00",
"currentMasterVersion": "1.26.5-gke.1200",
"currentNodeCount": 1,
"currentNodeVersion": "1.23.12-gke.100",
"currentNodeVersion": "1.26.5-gke.1200",
"databaseEncryption": {
"keyName": "projects/PROJECT_ID/locations/us-central1/keyRings/beta-cluster-iys0-db/cryptoKeys/beta-cluster-iys0",
"keyName": "projects/PROJECT_ID/locations/us-central1/keyRings/beta-cluster-qwc4-db/cryptoKeys/beta-cluster-qwc4",
"state": "ENCRYPTED"
},
"defaultMaxPodsConstraint": {
"maxPodsPerNode": "110"
},
"endpoint": "34.121.7.243",
"id": "3a280e0c1c894ae583265a8c84826078118ca6ccaa464d6aa01b6567a49e6110",
"endpoint": "34.133.21.111",
"etag": "dfaffac4-9224-4ab9-8663-e7a8330b327b",
"id": "ba40bc1efcd84b749fd0529166f38456658d6e64c6184385a9d7514627db4abd",
"identityServiceConfig": {
"enabled": true
},
"initialClusterVersion": "1.23.12-gke.100",
"initialClusterVersion": "1.26.5-gke.1200",
"instanceGroupUrls": [
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/us-central1-a/instanceGroupManagers/gke-simple-regional-beta-default-pool-c821392c-grp",
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/us-central1-a/instanceGroupManagers/gke-simple-regional-beta-clus-pool-01-c20b427a-grp"
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/us-central1-a/instanceGroupManagers/gke-simple-regional-beta-default-pool-b371bd52-grp",
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/us-central1-a/instanceGroupManagers/gke-simple-regional-beta-clus-pool-01-2e515432-grp"
],
"ipAllocationPolicy": {
"clusterIpv4Cidr": "192.168.0.0/18",
"clusterIpv4CidrBlock": "192.168.0.0/18",
"clusterSecondaryRangeName": "cft-gke-test-pods-iys0",
"clusterSecondaryRangeName": "cft-gke-test-pods-qwc4",
"defaultPodIpv4RangeUtilization": 0.0156,
"podCidrOverprovisionConfig": {},
"servicesIpv4Cidr": "192.168.64.0/18",
"servicesIpv4CidrBlock": "192.168.64.0/18",
"servicesSecondaryRangeName": "cft-gke-test-services-iys0",
"servicesSecondaryRangeName": "cft-gke-test-services-qwc4",
"stackType": "IPV4",
"useIpAliases": true
},
Expand Down Expand Up @@ -90,12 +93,15 @@
},
"master": {},
"masterAuth": {
"clusterCaCertificate": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVMVENDQXBXZ0F3SUJBZ0lSQUlkMExrQmROMStVeW91NUZqN041Zk13RFFZSktvWklodmNOQVFFTEJRQXcKTHpFdE1Dc0dBMVVFQXhNa1pUYzRNek01WXpBdE9UVTJOQzAwT0RjNExUbGlNamN0TVRVeFlqTmtOalJsWVdVMgpNQ0FYRFRJeU1URXpNREEyTURnMU0xb1lEekl3TlRJeE1USXlNRGN3T0RVeldqQXZNUzB3S3dZRFZRUURFeVJsCk56Z3pNemxqTUMwNU5UWTBMVFE0TnpndE9XSXlOeTB4TlRGaU0yUTJOR1ZoWlRZd2dnR2lNQTBHQ1NxR1NJYjMKRFFFQkFRVUFBNElCandBd2dnR0tBb0lCZ1FEZTVLV01VMXBOZXdUaDRMNUtNZFpEeVNEaUpHUnBzVXJHWEcrWApCSStzL2hlTmNLS3Y2d1ZnQzRIbWt2dHBWbkFidkNUVzAwYlZLOE5mQ0pCT1pvWjlEL1RoYjQ2ZWpydG5kUmg0CmFDSVRsZHNVMjlES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V2ozVm43SE82NGhOWWdRTWJwbGJBQk1MV3dkNWRuTHVaQXRSMDNZTGk5TDB6TVQ4WgpVemM0U3ZvQnNsNy9XaVlmSk9aWWZQWHNJRyswZDlnRGZNUzJNM2lOVGRsV2E4UnB0ZnI1cTNrR0o4R2l3TnR0CjQva256WHZWemhQeE9PNUwrK3J1U1FMd05qQndtcTdvZTJNdWZIVjlrWFFOdmtrWEV2UUc4VUUxTWYwSGpUZzYKN0F2RHhEL2h1QllsNFRvL1p3Q2paT0E9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K"
},
"masterAuthorizedNetworksConfig": {
"gcpPublicCidrsAccessEnabled": true
},
"monitoringConfig": {
"advancedDatapathObservabilityConfig": {
"relayMode": "DISABLED"
},
"componentConfig": {
"enableComponents": [
"SYSTEM_COMPONENTS"
Expand All @@ -104,17 +110,17 @@
},
"monitoringService": "monitoring.googleapis.com/kubernetes",
"name": "CLUSTER_NAME",
"network": "cft-gke-test-iys0",
"network": "cft-gke-test-qwc4",
"networkConfig": {
"datapathProvider": "ADVANCED_DATAPATH",
"defaultSnatStatus": {},
"network": "projects/PROJECT_ID/global/networks/cft-gke-test-iys0",
"network": "projects/PROJECT_ID/global/networks/cft-gke-test-qwc4",
"serviceExternalIpsConfig": {},
"subnetwork": "projects/PROJECT_ID/regions/us-central1/subnetworks/cft-gke-test-iys0"
"subnetwork": "projects/PROJECT_ID/regions/us-central1/subnetworks/cft-gke-test-qwc4"
},
"nodeConfig": {
"diskSizeGb": 100,
"diskType": "pd-standard",
"diskType": "pd-balanced",
"imageType": "COS_CONTAINERD",
"loggingConfig": {
"variantConfig": {
Expand All @@ -126,17 +132,18 @@
"disable-legacy-endpoints": "true"
},
"oauthScopes": [
"https://www.googleapis.com/auth/logging.write",
"https://www.googleapis.com/auth/monitoring"
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/cloud-platform"
],
"serviceAccount": "tf-gke-simple-regional-wxvn@PROJECT_ID.iam.gserviceaccount.com",
"serviceAccount": "tf-gke-simple-regional-b853@PROJECT_ID.iam.gserviceaccount.com",
"shieldedInstanceConfig": {
"enableIntegrityMonitoring": true
},
"tags": [
"gke-CLUSTER_NAME",
"gke-CLUSTER_NAME-default-pool"
]
],
"windowsNodeConfig": {}
},
"nodePoolAutoConfig": {},
"nodePoolDefaults": {
Expand All @@ -152,7 +159,7 @@
{
"config": {
"diskSizeGb": 100,
"diskType": "pd-standard",
"diskType": "pd-balanced",
"imageType": "COS_CONTAINERD",
"loggingConfig": {
"variantConfig": {
Expand All @@ -164,20 +171,22 @@
"disable-legacy-endpoints": "true"
},
"oauthScopes": [
"https://www.googleapis.com/auth/logging.write",
"https://www.googleapis.com/auth/monitoring"
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/cloud-platform"
],
"serviceAccount": "tf-gke-simple-regional-wxvn@PROJECT_ID.iam.gserviceaccount.com",
"serviceAccount": "tf-gke-simple-regional-b853@PROJECT_ID.iam.gserviceaccount.com",
"shieldedInstanceConfig": {
"enableIntegrityMonitoring": true
},
"tags": [
"gke-CLUSTER_NAME",
"gke-CLUSTER_NAME-default-pool"
]
],
"windowsNodeConfig": {}
},
"etag": "e2da0224-50d1-46ba-9268-b18c1ac8111f",
"instanceGroupUrls": [
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/us-central1-a/instanceGroupManagers/gke-simple-regional-beta-default-pool-c821392c-grp"
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/us-central1-a/instanceGroupManagers/gke-simple-regional-beta-default-pool-b371bd52-grp"
],
"locations": [
"us-central1-a"
Expand All @@ -193,7 +202,8 @@
"networkConfig": {
"enablePrivateNodes": false,
"podIpv4CidrBlock": "192.168.0.0/18",
"podRange": "cft-gke-test-pods-iys0"
"podIpv4RangeUtilization": 0.0156,
"podRange": "cft-gke-test-pods-qwc4"
},
"podIpv4CidrSize": 24,
"selfLink": "https://container.googleapis.com/v1beta1/projects/PROJECT_ID/locations/us-central1/clusters/CLUSTER_NAME/nodePools/default-pool",
Expand All @@ -202,11 +212,12 @@
"maxSurge": 1,
"strategy": "SURGE"
},
"version": "1.23.12-gke.100"
"version": "1.26.5-gke.1200"
},
{
"autoscaling": {
"enabled": true,
"locationPolicy": "BALANCED",
"maxNodeCount": 2,
"minNodeCount": 1
},
Expand All @@ -232,18 +243,20 @@
"oauthScopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"serviceAccount": "tf-gke-simple-regional-wxvn@PROJECT_ID.iam.gserviceaccount.com",
"serviceAccount": "tf-gke-simple-regional-b853@PROJECT_ID.iam.gserviceaccount.com",
"shieldedInstanceConfig": {
"enableIntegrityMonitoring": true
},
"tags": [
"gke-CLUSTER_NAME",
"gke-CLUSTER_NAME-pool-01"
]
],
"windowsNodeConfig": {}
},
"etag": "892ecc41-bb0a-46c1-99b0-0b5de31b6fa3",
"initialNodeCount": 1,
"instanceGroupUrls": [
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/us-central1-a/instanceGroupManagers/gke-simple-regional-beta-clus-pool-01-c20b427a-grp"
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/us-central1-a/instanceGroupManagers/gke-simple-regional-beta-clus-pool-01-2e515432-grp"
],
"locations": [
"us-central1-a"
Expand All @@ -259,7 +272,8 @@
"networkConfig": {
"enablePrivateNodes": false,
"podIpv4CidrBlock": "192.168.0.0/18",
"podRange": "cft-gke-test-pods-iys0"
"podIpv4RangeUtilization": 0.0156,
"podRange": "cft-gke-test-pods-qwc4"
},
"placementPolicy": {
"type": "COMPACT"
Expand All @@ -271,7 +285,7 @@
"maxSurge": 1,
"strategy": "SURGE"
},
"version": "1.23.12-gke.100"
"version": "1.26.5-gke.1200"
}
],
"notificationConfig": {
Expand All @@ -280,24 +294,28 @@
"privateCluster": true,
"privateClusterConfig": {
"privateEndpoint": "10.0.0.2",
"publicEndpoint": "34.121.7.243"
"publicEndpoint": "34.133.21.111"
},
"protectConfig": {
"workloadConfig": {
"auditMode": "MODE_UNSPECIFIED"
"auditMode": "DISABLED"
},
"workloadVulnerabilityMode": "WORKLOAD_VULNERABILITY_MODE_UNSPECIFIED"
},
"releaseChannel": {
"channel": "REGULAR"
},
"securityPostureConfig": {
"mode": "DISABLED",
"vulnerabilityMode": "VULNERABILITY_MODE_UNSPECIFIED"
},
"selfLink": "https://container.googleapis.com/v1beta1/projects/PROJECT_ID/locations/us-central1/clusters/CLUSTER_NAME",
"servicesIpv4Cidr": "192.168.64.0/18",
"shieldedNodes": {
"enabled": true
},
"status": "RUNNING",
"subnetwork": "cft-gke-test-iys0",
"subnetwork": "cft-gke-test-qwc4",
"verticalPodAutoscaling": {},
"zone": "us-central1"
}
}

0 comments on commit c5c9317

Please sign in to comment.