Skip to main content

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

Usesโ€‹

Test Results ๐ŸŸขโ€‹

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

ResultIdCondition IndexCondition TextRuntime Error
๐ŸŸข001โœ”๏ธ 199โœ”๏ธ extract('CA10G1__loggingService__c') == 'logging.googleapis.com/kubernetes'โœ”๏ธ null
๐ŸŸข002โœ”๏ธ 300โœ”๏ธ otherwiseโœ”๏ธ null
๐ŸŸข003โœ”๏ธ 299โœ”๏ธ extract('CA10G1__loggingService__c') == 'logging.googleapis.com'โœ”๏ธ null

Generation Bundleโ€‹

FileMD5
Open/ce/ca/google/gke/cluster-logging/policy.yamlE84B6239F4F3F9C48347DBE24A253212
Open/ce/ca/google/gke/cluster-logging/prod.logic.yaml9FE25438D7B258EEF5D256B178CB3799
Open/ce/ca/google/gke/cluster-logging/test-data.jsonB0D768283E46C6567D648654467C5F8F
Open/types/CA10G1__CaGoogleGkeCluster__c/object.extracts.yaml27F9CD44BA08A855B08C82AB034505CA

Available Commandsโ€‹

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

Contentโ€‹

Open File

---

inputType: "CA10G1__CaGoogleGkeCluster__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10G1__CaGoogleGkeCluster__c/object.extracts.yaml"
conditions:
- status: "COMPLIANT"
currentStateMessage: "The Cluster logging enabled."
check:
IS_EQUAL:
left:
EXTRACT: "CA10G1__loggingService__c"
right:
TEXT: "logging.googleapis.com/kubernetes"
- status: "INCOMPLIANT"
currentStateMessage: "The Cluster uses legacy logging."
check:
IS_EQUAL:
left:
EXTRACT: "CA10G1__loggingService__c"
right:
TEXT: "logging.googleapis.com"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "The Cluster logging disabled."
remediationMessage: "Enable the Cluster logging."