๐ง Google GKE Cluster Monitoring is not enabled - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/google/gke/cluster-monitoring/prod.logic.yaml - Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
Test Results ๐ขโ
Generated at: 2025-10-25T12:02:45.188082815Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| ๐ข | 001 | โ๏ธ 199 | โ๏ธ extract('CA10G1__monitoringService__c') == 'monitoring.googleapis.com/kubernetes' | โ๏ธ null |
| ๐ข | 002 | โ๏ธ 300 | โ๏ธ otherwise | โ๏ธ null |
| ๐ข | 003 | โ๏ธ 299 | โ๏ธ extract('CA10G1__monitoringService__c') == 'monitoring.googleapis.com' | โ๏ธ null |
Generation Bundleโ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/google/gke/cluster-monitoring/policy.yaml | BF15807263032B9872B75B731A9C2E92 |
| Open | /ce/ca/google/gke/cluster-monitoring/prod.logic.yaml | E2DEC58763E1EE465AE30CE3C7664F1F |
| Open | /ce/ca/google/gke/cluster-monitoring/test-data.json | 95154B861D69354827B103459575BF32 |
| Open | /types/CA10G1__CaGoogleGkeCluster__c/object.extracts.yaml | 27F9CD44BA08A855B08C82AB034505CA |
Available Commandsโ
repo-manager policies generate FULL /ce/ca/google/gke/cluster-monitoring/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/google/gke/cluster-monitoring/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/google/gke/cluster-monitoring/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/google/gke/cluster-monitoring/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/google/gke/cluster-monitoring/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: "The Cluster Cloud Monitoring enabled."
check:
IS_EQUAL:
left:
EXTRACT: "CA10G1__monitoringService__c"
right:
TEXT: "monitoring.googleapis.com/kubernetes"
- status: "INCOMPLIANT"
currentStateMessage: "The Cluster uses legacy monitoring."
check:
IS_EQUAL:
left:
EXTRACT: "CA10G1__monitoringService__c"
right:
TEXT: "monitoring.googleapis.com"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "The Cluster Cloud Monitoring disabled."
remediationMessage: "Enable the Cluster Cloud Monitoring."