Skip to main content

๐Ÿง  Google GKE Cluster Private Google Access is not enabled. - prod.logic.yaml๐ŸŸข

Usesโ€‹

Test Results ๐ŸŸขโ€‹

Generated at: 2025-10-25T12:02:45.332020056Z Open

ResultIdCondition IndexCondition TextRuntime Error
๐ŸŸข001โœ”๏ธ 299โœ”๏ธ extract('CA10G1__subnetwork__r.CA10__privateGoogleAccess__c') == 'Enabled'โœ”๏ธ null
๐ŸŸข002โœ”๏ธ 300โœ”๏ธ otherwiseโœ”๏ธ null

Generation Bundleโ€‹

FileMD5
Open/ce/ca/google/gke/cluster-private-access/policy.yaml98B398FC23087362CB90D68438BC640B
Open/ce/ca/google/gke/cluster-private-access/prod.logic.yamlAF610E3ECCC7FCD9D7F352F35F221844
Open/ce/ca/google/gke/cluster-private-access/test-data.json72DB81D77B658842CF05B6EEB2C2D438
Open/types/CA10G1__CaGoogleGkeCluster__c/object.extracts.yaml27F9CD44BA08A855B08C82AB034505CA
Open/types/CA10__CaGoogleGceSubnetwork__c/object.extracts.yaml65153110FC179823DA5BE13AA3694874

Available Commandsโ€‹

repo-manager policies generate FULL /ce/ca/google/gke/cluster-private-access/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/google/gke/cluster-private-access/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/google/gke/cluster-private-access/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/google/gke/cluster-private-access/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/google/gke/cluster-private-access/prod.logic.yaml

Contentโ€‹

Open File

---

inputType: "CA10G1__CaGoogleGkeCluster__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10G1__CaGoogleGkeCluster__c/object.extracts.yaml"
- file: "/types/CA10__CaGoogleGceSubnetwork__c/object.extracts.yaml"
conditions:
- status: "UNDETERMINED"
currentStateMessage: "The subnetwork for this GKE cluster could not be found in the CMDB."
check:
IS_EMPTY_LOOKUP: "CA10G1__subnetwork__r"
- status: "COMPLIANT"
currentStateMessage: "Private Google Access is enabled for the cluster's subnetwork."
check:
IS_EQUAL:
left:
EXTRACT: "CA10G1__subnetwork__r.CA10__privateGoogleAccess__c"
right:
TEXT: "Enabled"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "Private Google Access is not enabled for the cluster's subnetwork."
remediationMessage: "Enable Private Google Access on the subnetwork used by the GKE cluster."