Skip to main content

๐Ÿง  Google GKE Cluster Node Pool uses default Service account - prod.logic.yaml๐ŸŸข

Usesโ€‹

Test Results ๐ŸŸขโ€‹

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

ResultIdCondition IndexCondition TextRuntime Error
๐ŸŸข001โœ”๏ธ 299โœ”๏ธ extract('CA10G1__nodeConfigServiceAccount__c') == 'default'โœ”๏ธ null
๐ŸŸข002โœ”๏ธ 300โœ”๏ธ otherwiseโœ”๏ธ null

Generation Bundleโ€‹

FileMD5
Open/ce/ca/google/gke/node-pool-service-account/policy.yaml7EA59B2CD5290C28C61855ECE840493F
Open/ce/ca/google/gke/node-pool-service-account/prod.logic.yamlE6442BA900DF30332CEFA9DE243FA573
Open/ce/ca/google/gke/node-pool-service-account/test-data.jsonFCF583F78005A182C9010F5318211A92
Open/types/CA10G1__CaGoogleGkeClusterNodePool__c/object.extracts.yaml0A652ABADAA95854B5E133EB8B5BBD45

Available Commandsโ€‹

repo-manager policies generate FULL /ce/ca/google/gke/node-pool-service-account/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/google/gke/node-pool-service-account/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/google/gke/node-pool-service-account/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/google/gke/node-pool-service-account/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/google/gke/node-pool-service-account/prod.logic.yaml

Contentโ€‹

Open File

---

inputType: "CA10G1__CaGoogleGkeClusterNodePool__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10G1__CaGoogleGkeClusterNodePool__c/object.extracts.yaml
conditions:
- status: "UNDETERMINED"
currentStateMessage: "Node Pool Service account config is empty."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10G1__nodeConfigServiceAccount__c"
- status: "INCOMPLIANT"
currentStateMessage: "Node Pool use default Service account."
remediationMessage: "Create a minimally privileged Service account."
check:
IS_EQUAL:
left:
EXTRACT: "CA10G1__nodeConfigServiceAccount__c"
right:
TEXT: "default"
otherwise:
status: "COMPLIANT"
currentStateMessage: "Node Pool don't use default Service account."