๐ง Google GKE Cluster Private Google Access is not enabled. - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/google/gke/cluster-private-access/prod.logic.yaml - Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
- ๐ Google GKE Cluster
- ๐ Google GKE Cluster - object.extracts.yaml
- ๐ Google GCE Subnetwork - object.extracts.yaml
- ๐งช test-data.json
Test Results ๐ขโ
Generated at: 2025-10-25T12:02:45.332020056Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| ๐ข | 001 | โ๏ธ 299 | โ๏ธ extract('CA10G1__subnetwork__r.CA10__privateGoogleAccess__c') == 'Enabled' | โ๏ธ null |
| ๐ข | 002 | โ๏ธ 300 | โ๏ธ otherwise | โ๏ธ null |
Generation Bundleโ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/google/gke/cluster-private-access/policy.yaml | 98B398FC23087362CB90D68438BC640B |
| Open | /ce/ca/google/gke/cluster-private-access/prod.logic.yaml | AF610E3ECCC7FCD9D7F352F35F221844 |
| Open | /ce/ca/google/gke/cluster-private-access/test-data.json | 72DB81D77B658842CF05B6EEB2C2D438 |
| Open | /types/CA10G1__CaGoogleGkeCluster__c/object.extracts.yaml | 27F9CD44BA08A855B08C82AB034505CA |
| Open | /types/CA10__CaGoogleGceSubnetwork__c/object.extracts.yaml | 65153110FC179823DA5BE13AA3694874 |
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โ
---
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."