๐ง Google GKE Cluster Network policy is disabled. - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/google/gke/cluster-network-policy/prod.logic.yaml - Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
Test Results ๐ขโ
Generated at: 2025-10-25T12:02:45.481198592Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| ๐ข | 001 | โ๏ธ 99 | โ๏ธ isDisappeared(CA10G1__disappearanceTime__c) | โ๏ธ null |
| ๐ข | 002 | โ๏ธ 199 | โ๏ธ extract('CA10G1__networkPolicy__c').isEmpty() && extract('CA10G1__addonsNetworkPolicyConfig__c').isEmpty() | โ๏ธ null |
| ๐ข | 003 | โ๏ธ 399 | โ๏ธ extract('CA10G1__networkPolicy__c') == 'Enabled' || extract('CA10G1__addonsNetworkPolicyConfig__c') == 'Enabled' | โ๏ธ null |
| ๐ข | 004 | โ๏ธ 299 | โ๏ธ extract('CA10G1__networkPolicy__c') == 'Disabled' || extract('CA10G1__addonsNetworkPolicyConfig__c') == 'Disabled' | โ๏ธ null |
Generation Bundleโ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/google/gke/cluster-network-policy/policy.yaml | 219C60D9877A8F12E485DB73C2189BEC |
| Open | /ce/ca/google/gke/cluster-network-policy/prod.logic.yaml | 9AB52307E07FB6684A022E85DE2CD66C |
| Open | /ce/ca/google/gke/cluster-network-policy/test-data.json | B5A12E61AE237B64CDB064C115F13330 |
| Open | /types/CA10G1__CaGoogleGkeCluster__c/object.extracts.yaml | 27F9CD44BA08A855B08C82AB034505CA |
Available Commandsโ
repo-manager policies generate FULL /ce/ca/google/gke/cluster-network-policy/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/google/gke/cluster-network-policy/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/google/gke/cluster-network-policy/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/google/gke/cluster-network-policy/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/google/gke/cluster-network-policy/prod.logic.yaml
Contentโ
---
inputType: "CA10G1__CaGoogleGkeCluster__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10G1__CaGoogleGkeCluster__c/object.extracts.yaml"
conditions:
- status: "UNDETERMINED"
currentStateMessage: "The Cluster Network policy state is indeterminate."
check:
AND:
args:
- IS_EMPTY:
arg:
EXTRACT: "CA10G1__networkPolicy__c"
- IS_EMPTY:
arg:
EXTRACT: "CA10G1__addonsNetworkPolicyConfig__c"
- status: "INCOMPLIANT"
currentStateMessage: "The Cluster Network policy is disabled."
remediationMessage: "Enable the Cluster Network policy"
check:
OR:
args:
- IS_EQUAL:
left:
EXTRACT: "CA10G1__networkPolicy__c"
right:
TEXT: "Disabled"
- IS_EQUAL:
left:
EXTRACT: "CA10G1__addonsNetworkPolicyConfig__c"
right:
TEXT: "Disabled"
- status: "COMPLIANT"
currentStateMessage: "The Cluster Network policy is enabled."
check:
OR:
args:
- IS_EQUAL:
left:
EXTRACT: "CA10G1__networkPolicy__c"
right:
TEXT: "Enabled"
- IS_EQUAL:
left:
EXTRACT: "CA10G1__addonsNetworkPolicyConfig__c"
right:
TEXT: "Enabled"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the fields."