Skip to main content

🧠 Azure AKS Cluster Should Have Breeze Agent Installed - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• Azure AKS ClusterCA10Z1__CaAzureAksCluster__c111

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-04-24T23:46:39.358635552Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10Z1__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('breezeLastUpdate').isEmpty()βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('breezeLastUpdate').beyondLastDays(1)βœ”οΈ null
🟒test4βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null

Generation​

FileMD5
Open/ce/ca/breeze/coverage/azure-aks-cluster/policy.yaml5119258507848B2D564C5C2D06F32F7F
Open/ce/ca/breeze/coverage/azure-aks-cluster/prod.logic.yamlAB2CEB630C99ED0FF3301F8D0C368542
Open/types/CA10Z1__CaAzureAksCluster__c/breeze.extracts.yaml211FE47E47B2E8DEB1767ECA18ED8C28
Open/ce/ca/breeze/coverage/test-data-ca10z1.json18CBEB77F58B4301E78898FEEB0BCCB0

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/breeze/coverage/azure-aks-cluster/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/breeze/coverage/azure-aks-cluster/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/breeze/coverage/azure-aks-cluster/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/breeze/coverage/azure-aks-cluster/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/breeze/coverage/azure-aks-cluster/prod.logic.yaml

Content​

Open File

---
inputType: CA10Z1__CaAzureAksCluster__c
importExtracts:
- file: /types/CA10Z1__CaAzureAksCluster__c/breeze.extracts.yaml
testData:
- file: ../test-data-ca10z1.json
conditions:
- status: INCOMPLIANT
currentStateMessage: Cluster never had breeze agent installed
remediationMessage: Install breeze agent on the cluster
check:
IS_EMPTY:
arg:
EXTRACT: breezeLastUpdate
- status: INCOMPLIANT
currentStateMessage: Cluster latest breeze report was more than a day ago
remediationMessage: Re-install breeze agent on the cluster and make sure it is reporting
check:
IS_BEYOND_LAST_DAYS:
offsetDays: 1
arg:
EXTRACT: breezeLastUpdate
otherwise:
status: COMPLIANT
currentStateMessage: Cluster has breeze agent installed and has a recent report