π§ Azure AKS Cluster Should Have Breeze Agent Installed - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/breeze/coverage/azure-aks-cluster/prod.logic.yaml
- Located in: π Azure AKS Cluster Should Have Breeze Agent Installed π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π Azure AKS Cluster | CA10Z1__CaAzureAksCluster__c | 1 | 1 | 1 |
Usesβ
Test Results π’β
Generated at: 2025-04-24T23:46:39.358635552Z Open
Result | Id | Condition Index | Condition Text | Runtime 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β
File | MD5 | |
---|---|---|
Open | /ce/ca/breeze/coverage/azure-aks-cluster/policy.yaml | 5119258507848B2D564C5C2D06F32F7F |
Open | /ce/ca/breeze/coverage/azure-aks-cluster/prod.logic.yaml | AB2CEB630C99ED0FF3301F8D0C368542 |
Open | /types/CA10Z1__CaAzureAksCluster__c/breeze.extracts.yaml | 211FE47E47B2E8DEB1767ECA18ED8C28 |
Open | /ce/ca/breeze/coverage/test-data-ca10z1.json | 18CBEB77F58B4301E78898FEEB0BCCB0 |
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β
---
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