๐ง Google GKE Cluster Node Pool uses default Service account - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/google/gke/node-pool-service-account/prod.logic.yaml - Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
- ๐ Google GKE Cluster Node Pool
- ๐ Google GKE Cluster Node Pool - object.extracts.yaml
- ๐งช test-data.json
Test Results ๐ขโ
Generated at: 2025-10-25T12:02:45.907493392Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| ๐ข | 001 | โ๏ธ 299 | โ๏ธ extract('CA10G1__nodeConfigServiceAccount__c') == 'default' | โ๏ธ null |
| ๐ข | 002 | โ๏ธ 300 | โ๏ธ otherwise | โ๏ธ null |
Generation Bundleโ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/google/gke/node-pool-service-account/policy.yaml | 7EA59B2CD5290C28C61855ECE840493F |
| Open | /ce/ca/google/gke/node-pool-service-account/prod.logic.yaml | E6442BA900DF30332CEFA9DE243FA573 |
| Open | /ce/ca/google/gke/node-pool-service-account/test-data.json | FCF583F78005A182C9010F5318211A92 |
| Open | /types/CA10G1__CaGoogleGkeClusterNodePool__c/object.extracts.yaml | 0A652ABADAA95854B5E133EB8B5BBD45 |
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โ
---
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."