๐ง Google GKE Cluster Control Plane Authorized Networks are disabled - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/google/gke/cluster-authorized-networks/prod.logic.yaml - Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
Test Results ๐ขโ
Generated at: 2025-10-25T12:02:44.643224622Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| ๐ข | 001 | โ๏ธ 199 | โ๏ธ extract('CA10G1__masterAuthorizedNetworks__c') == 'ENABLED' | โ๏ธ null |
| ๐ข | 002 | โ๏ธ 200 | โ๏ธ otherwise | โ๏ธ null |
Generation Bundleโ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/google/gke/cluster-authorized-networks/policy.yaml | CBCB20892AEB201B779C47E8A083A413 |
| Open | /ce/ca/google/gke/cluster-authorized-networks/prod.logic.yaml | 723620E7A3A35F4C64F22179B07E42AB |
| Open | /ce/ca/google/gke/cluster-authorized-networks/test-data.json | 0E9DB4777CE8178D972B060AE7785925 |
| Open | /types/CA10G1__CaGoogleGkeCluster__c/object.extracts.yaml | 27F9CD44BA08A855B08C82AB034505CA |
Available Commandsโ
repo-manager policies generate FULL /ce/ca/google/gke/cluster-authorized-networks/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/google/gke/cluster-authorized-networks/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/google/gke/cluster-authorized-networks/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/google/gke/cluster-authorized-networks/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/google/gke/cluster-authorized-networks/prod.logic.yaml
Contentโ
---
inputType: "CA10G1__CaGoogleGkeCluster__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10G1__CaGoogleGkeCluster__c/object.extracts.yaml"
conditions:
- status: "COMPLIANT"
currentStateMessage: "Cluster Control Plane Authorized Networks are enabled."
check:
IS_EQUAL:
left:
EXTRACT: "CA10G1__masterAuthorizedNetworks__c"
right:
TEXT: "ENABLED"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "Cluster Control Plane Authorized Networks are disabled."
remediationMessage: "Enable Control Plane Authorized Networks."